Python Dataframes: Describing a single column
Just add column name in square braquets:
df['column_name'].describe()
Example:
To get a single column:
df['1']
To get several columns:
df[['1','2']]
To get a single row by name:
df.loc['B']
or by index:
df.iloc[o]
To get a specific field:
df['1']['C']
import pandas as pd
data=pd.read_csv('data.csv')
data[['column1', 'column2', 'column3']].describe()