How to access a dataframe row? #246
-
Hi all, I'm impressed with the performance improvements of the c++ library vs Python pandas, and I'm in looking to migrate over. One question I've had trouble answering is how to access a single row from a dataframe? In pandas you can do this, but this does not work on this library as the dataframe object is not subscriptable. I've had a look through the docs and while there seem to be a few ways to access columns, I can't find any to access rows. This makes me think it may be something obvious I am missing. How do you access an entire row in the dataframe? Best I've found out so far is to access an entire column, and then I can subscript with index. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, I still learn how to use it myself (and don't know anything of panda, anyway it's a good lib and it perform very well, thank hosseinmoein !). |
Beta Was this translation helpful? Give feedback.
-
There are a couple of ways to access data:
I also recommend going through the hello_world.cc file (https://github.com/hosseinmoein/DataFrame/blob/master/examples/hello_world.cc) in some details |
Beta Was this translation helpful? Give feedback.
There are a couple of ways to access data:
I also recommend going through the hello_world.cc file (https://github.com/hosseinmoein/DataFrame/blob/master/examples/hello_world.cc) in some details