-
When trying to get 2 or more columns out of the DataFrame, only getting the last column To Reproduce const df = new dfd.DataFrame([{a:1,b:2,c:3},{a:11,b:22,c:33},{a:111,b:222,c:333}]
df['a','b'].print() Expected behavior df['a','b'] should return a,b columns |
Beta Was this translation helpful? Give feedback.
Answered by
risenW
Jun 10, 2021
Replies: 1 comment 1 reply
-
@levyitay If you need to access more than one column, use the loc function as demonstrated here: https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.loc |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
levyitay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@levyitay If you need to access more than one column, use the loc function as demonstrated here: https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.loc