マーケティングアナリティクス:Pythonで顧客解約を予測する
Mark Peterson
Director of Data Science, Infoblox
seaborn ライブラリで視覚的に優れたグラフを簡単に作成できます
matplotlib を基盤として構築されています
import matplotlib.pyplot as plt import seaborn as snssns.distplot(telco['Account_Length'])plt.show()

sns.boxplot(x = 'Churn',
y = 'Account_Length',
data = telco)
plt.show()

sns.boxplot(x = 'Churn',
y = 'Account_Length',
data = telco)
plt.show()

sns.boxplot(x = 'Churn',
y = 'Account_Length',
data = telco)
plt.show()

sns.boxplot(x = 'Churn',
y = 'Account_Length',
data = telco)
plt.show()

sns.boxplot(x = 'Churn',
y = 'Account_Length',
data = telco)
plt.show()

sns.boxplot(x = 'Churn',
y = 'Account_Length',
data = telco)
plt.show()

sns.boxplot(x = 'Churn',
y = 'Account_Length',
data = telco)
plt.show()

sns.boxplot(x = 'Churn',
y = 'Account_Length',
data = telco,
sym="")
plt.show()

sns.boxplot(x = 'Churn',
y = 'Account_Length',
data = telco,
hue = 'Intl_Plan')
plt.show()

マーケティングアナリティクス:Pythonで顧客解約を予測する