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? |
Replies: 1 comment 1 reply
You should use the loc function instead. See https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.loc |
You should use the loc function instead. See https://danfo.jsdata.org/api-reference/dataframe/danfo.dataframe.loc