15 lines
344 B
Python
15 lines
344 B
Python
from pylab import *
|
|
import pandas as pd
|
|
import matplotlib.pyplot as plot
|
|
|
|
datafile = pd.read_csv('E:\TensorFlow_eaxmple\dataset\某地降雨量.csv')
|
|
'''计算求和平均等数据属性'''
|
|
summary=datafile.describe()
|
|
print(summary)
|
|
|
|
array=datafile.iloc[:,1:13].values
|
|
boxplot(array)
|
|
print(array)
|
|
plot.xlabel("month")
|
|
plot.ylabel("rain")
|
|
show() |