pvlib Google GroupΒΆ

Count of members in the pvlib google group over time.

Updated 2021-06-29
import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('../../data/pvlib_google_group.csv', parse_dates=['Join Date'])
s = df.set_index('Join Date').assign(n=1)['n'].cumsum().resample('d').max().ffill()

fig, axes = plt.subplots(2, 1, sharex=True)

s.plot(ax=axes[0])
axes[0].set_ylabel('Google group user count')
axes[0].set_ylim(0, 600)
axes[0].grid()

growth = 100 * (s - s.shift(365)) / s.shift(365)
growth.plot(ax=axes[1])
axes[1].set_ylabel('Year-over-year growth [%]')
axes[1].set_ylim(0, 150)
axes[1].grid()

axes[0].set_title(f"Updated {df['Join Date'].max().strftime('%Y-%m-%d')}")
plt.show()

Total running time of the script: ( 0 minutes 0.561 seconds)

Gallery generated by Sphinx-Gallery