mirror of
https://github.com/wahyd4/code-sandbox.git
synced 2026-08-09 05:07:03 +10:00
move python code snippets to python folder
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user