image_output_1.png
import matplotlib.pyplot as plt

import matplotlib.pyplot as plt

import numpy as np

import numpy as np # linear algebra

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

haberman = pd.read_csv('../input/haberman.csv')

import matplotlib.pyplot as plt

import seaborn as sns
plt.close()

#3D scattered plot.
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt

fig=plt.figure()
ax=fig.add_subplot(111, projection='3d')

x=haberman["age"]
y=haberman["operation_year"]
z=haberman["axil_nodes"]

ax.scatter(x,y,z,marker='o', c='r');

ax.set_xlabel('age')
ax.set_ylabel('operation_year')
ax.set_zlabel('')

plt.show()

import numpy as np
plt.plot(haberman['axil_nodes'], np.zeros_like(haberman['axil_nodes']), 'o')
plt.show()