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.45k stars 310 forks source link

Dataframe length #243

Closed federicomartinlara1976 closed 1 year ago

federicomartinlara1976 commented 1 year ago

Is there a method to get the dataframe length?

Thanks.

hosseinmoein commented 1 year ago

I am not sure what you mean by length of the DataFrame. Each column in the DataFrame can be of different length but not longer than the index columns The documentation is here https://htmlpreview.github.io/?https://github.com/hosseinmoein/DataFrame/blob/master/docs/HTML/DataFrame.html. It is worth reading it. It is short and to the point

Also look at DataFrame member functions describe() and shape()

federicomartinlara1976 commented 1 year ago

Thanks.

I figured it out when using the indices column. The size is obtained from the associated vector. It has arisen because I am creating a CSV sheet with the following format:

Column_1_name,Column_2_name,...,Column_n_name Value_1_1,Value_1_2,...,Value_1_n ... Value_n_1,Value_n_2,...,Value_n_n