Answers for "how to take subset of dataframe without includin specific columns ~"

3

python - subset specific columns name in a dataframe

columns = ['b', 'c']
df1 = pd.DataFrame(df, columns=columns)
Posted by: Guest on October-20-2020
0

select columns to include in new dataframe in python

new = old[['A', 'C', 'D']].copy()
Posted by: Guest on March-02-2020

Code answers related to "how to take subset of dataframe without includin specific columns ~"

Python Answers by Framework

Browse Popular Code Answers by Language