#导入warnings包,利用过滤器来实现忽略警告语句。import os
import warnings
warnings.filterwarnings('ignore')import missingno as msno
import pandas as pd
from pandas import DataFrame, Series
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
#实现多输出结果的打印from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity ='all'
C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\axes\_axes.py:6462: UserWarning: The 'normed' kwarg is deprecated, and has been replaced by the 'density' kwarg.
warnings.warn("The 'normed' kwarg is deprecated, and has been "
<matplotlib.axes._subplots.AxesSubplot at 0x23711445e10>
Skewness: 0.871005
Kurtosis: -1.009573
(id 0.000000
label 0.871005
dtype: float64, id -1.200000
label -1.009573
dtype: float64)
C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\axes\_axes.py:6462: UserWarning: The 'normed' kwarg is deprecated, and has been replaced by the 'density' kwarg.
warnings.warn("The 'normed' kwarg is deprecated, and has been "
<matplotlib.axes._subplots.AxesSubplot at 0x23711445e10>
## 3) 查看预测值的具体频数
plt.hist(Train_data['label'], orientation ='vertical',histtype ='bar', color ='red')
plt.show()
#导入warnings包,利用过滤器来实现忽略警告语句。import osimport warningswarnings.filterwarnings('ignore')import missingno as msnoimport pandas as pdfrom pandas import DataFrame, Seriesimport matplotlib.pyplot as plt import seaborn as snsimport numpy as np#实现多输出结果的打印