import seaborn as sns
import pandas as pd

df = sns.load_dataset('iris')

df.head()
df.info()
df.describe()

df['sepal_length']

df[['sepal_length', 'sepal_width']]

df.iloc[0:5]

df[df['species'] == 'setosa']

df['sepal_ratio'] = df['sepal_length'] / df['sepal_width']
df

df = df.drop(columns='sepal_ratio')
df

new_row = pd.DataFrame([df.iloc[0].copy()])
new_row.at[0, 'species'] = 'new_species'
df_extended = pd.concat([df, new_row], ignore_index=True)

df_extended

df_reshaped = df_extended.set_index('species')
df_reshaped

sns.scatterplot(data=df, x='sepal_length', y='sepal_width', hue='species')

sns.boxplot(data=df, x='species', y='petal_length') 