Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 23, 2021 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/20575c91fc7ffe6e9654faf2d0a95c72 to your computer and use it in GitHub Desktop.
Save amankharwal/20575c91fc7ffe6e9654faf2d0a95c72 to your computer and use it in GitHub Desktop.
i = 1
cols=[0, 1, 3, 4, 5, 6]
plt.figure(figsize=(20, 10))
for col in cols:
plt.subplot(len(cols), 1, i)
plt.plot(df.resample('H').mean().values[:, col])
plt.title(df.columns[col] + ' data resample over hour for mean', y=0.75, loc='left')
i += 1
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment