# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
import pandas as pd
import numpy as np
import os

data_path = os.path.join(os.path.pardir, 'data/raw/')
train_path = data_path + 'train.csv'
test_path = data_path + 'test.csv'
#train_df = pd.read_csv(train_path, index_col='PassengerId')
#test_df = pd.read_csv(test_path, index_col='PassengerId')

#test_df['Survived'] = -1
#df = pd.concat((train_df, test_df))


processed_data_path = os.path.join(os.path.pardir, 'data/processed/')
p_train_path = processed_data_path + 'train.csv'
p_test_path = processed_data_path + 'test.csv'

train_df = pd.read_csv(p_train_path, index_col='PassengerId')
test_df = pd.read_csv(p_test_path, index_col='PassengerId')

test_df['Survived'] = -1
df = pd.concat((train_df, test_df))

# -

import matplotlib.pyplot as plt
# %matplotlib inline

plt.hist(df.Age)

f, (p1, p2) = plt.subplots(1,2, figsize=(14,3))
p1.hist(df.Fare)
p2.hist(df.Age)



StarcoderdataJupyterScriptsDedupFiltered