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
Copy file name to clipboardExpand all lines: episodes/data-visualisation.md
+10-15
Original file line number
Diff line number
Diff line change
@@ -47,15 +47,10 @@ df_long.head()
47
47
48
48
Ok! We are now ready to plot our data. Since this data is monthly data, we can plot the circulation data over time.
49
49
50
-
::::::::::::::::::::::::::::::::::::: instructor
51
-
## Instructor note: Pandas 2.2.* bug
52
-
There is a bug in the latest release of Pandas that is causing certain plots to display in a garbled manner. This is a [known issue](https://github.com/pandas-dev/pandas/issues/59960) that the Pandas team plans to address. In the meantime, learners and instructors can user older versions of pandas *or* add `.sort_index()` before any instance of `.plot()`. For example, use `albany['circulation'].sort_index().plot()` instead of `albany['circulation'].plot()`.
53
-
:::::::::::::::::::::::::::::::::::::::::::::::::
54
-
55
-
At first, let’s focus on a specific branch. We can select the rows for the Albany Park branch:
50
+
At first, let’s focus on a specific branch. We can select the rows for the Albany Park branch and then use `.sort_index()` to be explicit that we want our data to be sorted in the order of the date index.
0 commit comments