Skip to content

Instantly share code, notes, and snippets.

@sananand007
Last active May 31, 2018 15:11
Show Gist options
  • Save sananand007/cb690a3e591526d4acd0bdbc8c015efe to your computer and use it in GitHub Desktop.
Save sananand007/cb690a3e591526d4acd0bdbc8c015efe to your computer and use it in GitHub Desktop.
Kaggle_titanic_dataset [medium-2]
# Get the Data and see the dataset
import os
import matplotlib.pyplot as plt
import pandas as pd
path=os.getcwd()
filepath=[]
for file in os.listdir(path):
if 'csv' in file:filepath.append(path+"\\"+file)
for path in filepath:
if "train" in path:df_train=pd.read_csv(path)
if "test" in path:df_test=pd.read_csv(path)
if "gender" in path:gender_sub=pd.read_csv(path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment