Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
df2=pd.DataFrame(df.groupby(['hour','VehicleRef'])['RecordedAtTime'].max())
df2.reset_index(inplace=True)
df2.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment