# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
# ---

df

df.describe()

# +
ages = df.Age

ages.mean()
# -

# ages of scentists older than mean of age
ages[ages > ages.mean()]

df[df.Age > df.Age.mean()]

df.Born.dtype

born = pd.to_datetime(df.Born, format='%Y-%m-%d')
born


died = pd.to_datetime(df.Died, format='%Y-%m-%d')
died

df['born_dt'] = born
df['died_dt'] = died
df

df.Age.to_pickle('age.series.pickle')

import seaborn as sns
sns.barplot(x=df.Age, y=df.Occupation)



import pandas as pd
df = pd.read_csv('data/scientists.csv')
df.info()

StarcoderdataJupyterScriptsDedupFiltered