python - pandas groupby access last group -


i have pandas dataframe looking this:

date      info                   x         y  b         z b         x c         y 

i want know last date. in case c.

i thought can grouping , sorting date column:

 df.groupby('date', sort=true) 

... , accessing last group. however, there no way of accessing last group one-liner? there better way this?

i think over-complicating things. c should enough:

df['date'].max() 

Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -