You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would propose to use the to_series() method as this allows for method-chaining (instead of encapsulating in the pd.Series constructor), thus increasing readability
The text was updated successfully, but these errors were encountered:
Yes, to_series is better here (I think our first version of the course predates this method :))
Sidenote: pandas should maybe just add a diff() method to Index as well.
I would propose to use the
to_series()
method as this allows for method-chaining (instead of encapsulating in the pd.Series constructor), thus increasing readabilityThe text was updated successfully, but these errors were encountered: