Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import matplotlib.pyplot as plt
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('M').mean().values[:, col])
plt.title(df.columns[col] + ' data resample over month for mean', y=0.75, loc='left')
i += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment