import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#Print you can execute arbitrary python code
train = pd.read_csv("../input/train.csv", dtype={"Age": np.float64}, )
test = pd.read_csv("../input/test.csv", dtype={"Age": np.float64}, )

#Print to standard output, and see the results in the "log" section below after running your script
print("\n\nTop of the training data:")
print(train.head())

print("\n\nSummary statistics of training data")
print(train.describe())

survived_sex=train[train["Survived"]==1]["Sex"].count()
dead_sex=train[train["Survived"]==0]["Sex"].count()
print(survived_sex)
#plot the survived male , female and dead male,female
frame=pd.DataFrame([survived_sex,dead_sex])
print(frame)
frame.plot();
#Any files you save will be available in the output tab below
#train.to_csv('copy_of_the_training_data.csv', index=False)