3 ms·
Oh yes, stringsAsFactors...just seeing that almost conjures up flashbacks. Data frames in Pandas have no such implicit stupidity. The rough equivalent, IIRC, i
by jackmaney 11y ago
Oh yes, stringsAsFactors...just seeing that almost conjures up flashbacks.
Data frames in Pandas have no such implicit stupidity. The rough equivalent, IIRC, is setting up one or more columns as an index (or multi-index, respectively), and that's mostly done explicitly (with the exception of importing or exporting CSVs; the first column is imported as the index by default, and the index values are written out by default).