Answers for "python pandas create a new dataframe from only certain columns"

4

python create new pandas dataframe with specific columns

# Basic syntax:
new_dataframe = old_dataframe.filter(['Columns','you','want'], axis=1)
Posted by: Guest on November-06-2020
0

create new dataframe from columns pandas

new_dataset = dataset[['A','D']]
Posted by: Guest on March-07-2021

Code answers related to "python pandas create a new dataframe from only certain columns"

Python Answers by Framework

Browse Popular Code Answers by Language