We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ec8ede + 84813c8 commit 0837162Copy full SHA for 0837162
src/bokeh_sampledata/cycling.py
@@ -30,7 +30,7 @@
30
31
32
def _read_data() -> pd.DataFrame:
33
- df = package_csv("cycling.csv")
+ df = package_csv("cycling.csv", index_col=0)
34
df["time"] = pd.to_timedelta(df["time"])
35
return df
36
tests/unit/bokeh_sampledata/test_cycling.py
@@ -21,3 +21,14 @@ def test_cycling() -> None:
21
assert isinstance(c.cycling, pd.DataFrame)
22
23
assert len(c.cycling) == 4391
24
+ expected_columns = {
25
+ "position_lat",
26
+ "position_long",
27
+ "altitude",
28
+ "power",
29
+ "cadence",
+ "distance",
+ "speed",
+ "time",
+ }
+ assert set(c.cycling.columns) == expected_columns
0 commit comments