4 ms·
> The reason is that data-frames are intended for dealing > with heterogeneous data. The proper way to loop over > observations is to convert the variables to
by nzjrs 10y ago
> The reason is that data-frames are intended for dealing
> with heterogeneous data. The proper way to loop over
> observations is to convert the variables to a common data
> type, e.g. logical or numeric, then you have a matrix and
> then you can loop over rows.
Pandas saves its users the 'proper' step of 'converting the variables to a common data type', and lets me iterate over rows to get the observations. That seems like a win to me, no?