df = pd.DataFrame(np.random.choice(pd.date_range('2019-10-01', '2022-10-31'), 15),
columns=['Date'])
df['NUM'] = np.random.randint(1, 600, df.shape[0])
df.groupby(pd.Grouper(key='Date', axis=0, freq='Q-DEC')).sum()
df_test = df.groupby(pd.Grouper(key='Date', axis=0, freq='Q-DEC')).sum()
df_test.iloc[-1]
So I can assign the groupby to a variable making another dataframe and then access any one entry of the groupby...in this instance the last entry. My question is can I avoid creating df_test altogether to access the last entry (or any entry I care to access)?