Answers for "how to take only two columns from a 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 two columns from a dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language