Skip to content

How to access a dataframe row? #246

Answered by hosseinmoein
Oggy16 asked this question in Q&A
Discussion options

You must be logged in to vote

There are a couple of ways to access data:

  1. You can use the get_column method (https://htmlpreview.github.io/?https://github.com/hosseinmoein/DataFrame/blob/master/docs/HTML/get_column.html) which returns a reference to an STL vector. Once you have the reference, you can index through rows or do whatever you could do with an STL vector
  2. You can use the get_row method (https://htmlpreview.github.io/?https://github.com/hosseinmoein/DataFrame/blob/master/docs/HTML/get_row.html) which returns a heterogeneous vector. See the doc.

I also recommend going through the hello_world.cc file (https://github.com/hosseinmoein/DataFrame/blob/master/examples/hello_world.cc) in some details

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Oggy16
Comment options

@hosseinmoein
Comment options

@Oggy16
Comment options

Answer selected by Oggy16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants