application_vnd.jupyter.stderr_output_1.png
import matplotlib.pyplot as plt

import matplotlib.pyplot as plt

import pandas as pd

dataset = pd.read_csv('../input/train.csv')

X = dataset.iloc[:, [4, 2, 6, 5]].values
y = dataset.iloc[:, 1].values

from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
fig.set_size_inches(98.5, 90.5)
ax = fig.add_subplot(999, projection='3d')
i = 0
for g, xs, ys, zs in X:
    c = y[i]
    i += 1
    if c == 1:
        cc = 'blue'
    else:
        cc = 'yellow'
    if g == 1:
        m = '^'
    else:
        m = 'v'
    ax.scatter(xs, ys, zs, c=cc, marker=m)
ax.set_xlabel('class')
ax.set_ylabel('sibsp')
ax.set_zlabel('age')
plt.show()