Skip to content

Instantly share code, notes, and snippets.

@Muhammad-Yunus
Last active April 19, 2020 09:09
Show Gist options
  • Save Muhammad-Yunus/d81f2e70f6d80ce9ae6c8a8da40c802a to your computer and use it in GitHub Desktop.
Save Muhammad-Yunus/d81f2e70f6d80ce9ae6c8a8da40c802a to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
fig, axes = plt.subplots(nrows=len(Month_list), ncols=1)
fig.subplots_adjust(hspace=0.5)
CO_TS = CO_TS[['tanggal', 'co']]
CO_TS.index = pd.to_datetime(CO_TS.tanggal)
CO_TS.drop(["tanggal"], axis=1, inplace=True)
for i in range(len(Month_list)):
CO_TS.loc[CO_TS.index.month == (i+ 1), ['co']] \
.plot(title='Bulan ke-' + str(i + 1) ,
figsize=(18, 25),
ax=axes[i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment