To select multiple columns in a Python Pandas dataframe, we can use df.loc
.
For instance, we write
df.loc[:, 'C':'E']
to select all columns between 'C'
and 'E'
inclusive.
To select multiple columns in a Python Pandas dataframe, we can use df.loc
.
For instance, we write
df.loc[:, 'C':'E']
to select all columns between 'C'
and 'E'
inclusive.