hosseinmoein / DataFrame

C++ DataFrame for statistical, Financial, and ML analysis -- in modern C++ using native types and contiguous memory storage
https://hosseinmoein.github.io/DataFrame/
BSD 3-Clause "New" or "Revised" License
2.41k stars 306 forks source link

Does get_column return rows in index order or dataframe order? #231

Closed sierret closed 1 year ago

sierret commented 1 year ago

I'd like to know which orders the references to rows are returned in. Since, after for example a sort operation, the dataframe order may not match the index order.

hosseinmoein commented 1 year ago

If you sort the DataFrame, all columns including the index column will be sorted based on your criteria. Unless you opt not to sort the index column which is an option. The default is to sort the index column.

sierret commented 1 year ago

Thanks once again!