Answers for "python get columns from dataframe"

1

how to find columns of a dataframe

list(my_dataframe.columns.values)
Posted by: Guest on June-23-2020
0

df only take 2 columns

df1 = df[['a', 'b']]
Posted by: Guest on August-06-2020

Code answers related to "python get columns from dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language