Answers for "how to take only 2 columns from a dataframe and make a new dataframe"

0

df only take 2 columns

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

Code answers related to "how to take only 2 columns from a dataframe and make a new dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language