Skip to content

Instantly share code, notes, and snippets.

@jarasandh
jarasandh / titanic.py
Created December 2, 2016 16:41
Titanic: Machine Learning from Disaster
# Import the Pandas library
import pandas as pd
# Load the train and test datasets to create two DataFrames
train_url = "train.csv"
train = pd.read_csv(train_url)
test_url = "test.csv"
test = pd.read_csv(test_url)
#Print the `head` of the train and test dataframes
print(train.head())