Answers for "how to select only certain coloumns from a data frame with different index-col"

6

python: select specific columns in a data frame

df = df[["Column_Name1", "Column_Name2"]]
Posted by: Guest on June-24-2020
0

how to fetch only the columns from a datframe which has a particular datatype

# this will whow the columns of a dataframe which have datatype as int and float
df.select_dtypes(include=['int64', 'float64'])
Posted by: Guest on January-06-2022

Code answers related to "how to select only certain coloumns from a data frame with different index-col"

Python Answers by Framework

Browse Popular Code Answers by Language