move python code snippets to python folder

This commit is contained in:
2019-06-22 22:50:39 +10:00
parent b76f2e25bd
commit 2c8848211b
13 changed files with 0 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn
import time
seaborn.set()
rainfall = pd.read_csv(
"https://raw.githubusercontent.com/jakevdp/PythonDataScienceHandbook/master/notebooks/data/Seattle2014.csv"
)["TMAX"].values
print(rainfall)
# inches = rainfall / 254.0 # 1/10mm -> inches
rainfall.shape
plt.hist(rainfall, 40)
plt.show(block=True)