예측 변수 인사이트 그래프 그리기

Python으로 배우는 예측 분석 입문

Nele Verbiest, Ph.D

Data Scientist @PythonPredictions

예측 변수 인사이트 그래프

Python으로 배우는 예측 분석 입문

목표 발생률 그리기

import matplotlib.pyplot as plt
import numpy as np

# Plot the graph pig_table["Incidence"].plot()
# Show the group names plt.xticks(np.arange(len(pig_table)), pig_table["income"])
# Center the groups names width = 0.5 plt.xlim([-width, len(pig_table)-width])
plt.ylabel("Incidence", rotation = 0, rotation_mode="anchor", ha = "right") plt.xlabel("Income") plt.show()

Python으로 배우는 예측 분석 입문

크기 그리기

import matplotlib.pyplot as plt
import numpy as np
# Plot the graph

plt.ylabel("Size", rotation = 0,rotation_mode="anchor", ha = "right" )
pig_table["Incidence"].plot(secondary_y = True)
pig_table["Size"].plot(kind='bar', width = 0.5, color = "lightgray", edgecolor = "none") ## Add bars
# Show the group names plt.xticks(np.arange(len(pig_table)), pig_table["income"]) # Center the groups names plt.xlim([-0.5, len(pt)-0.5]) plt.ylabel("Incidence", rotation = 0, rotation_mode="anchor", ha = "right" plt.xlabel("Income") plt.show()
Python으로 배우는 예측 분석 입문

크기 그리기

Python으로 배우는 예측 분석 입문

연습해 봅시다!

Python으로 배우는 예측 분석 입문

Preparing Video For Download...