Unable to select subset of columns #464
-
I have a Data Frame with a bunch of columns. I need to create a new Data Frame with just a subset of the columns from the orig Data Frame. Whenever i try to do that, i only get the last column specified. I specify the subset like : my_df["col_1","col2","col_n"] ... I end up with a new Data Frame with just col_n Is that a known bug or am i doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should use the loc function instead. See https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.loc |
Beta Was this translation helpful? Give feedback.
You should use the loc function instead. See https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.loc