jorisvandenbossche / pydata-amsterdam-pandas-sprint

1 stars 3 forks source link

Add a concrete example of the alternative for the deprecated DataFrame.last / first #3

Closed jorisvandenbossche closed 6 months ago

jorisvandenbossche commented 1 year ago

https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.last.html is deprecated. The deprecation message says:

Please create a mask and filter using .loc instead

It would be nice to give an actual example of this to illustrate.

Hestaron commented 1 year ago

take