Skip to content

Commit 15a52fd

Browse files
committed
Add comma
1 parent 255b16c commit 15a52fd

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

pandas/core/generic.py

+12-4
Original file line numberDiff line numberDiff line change
@@ -9694,10 +9694,18 @@ def resample(
96949694
96959695
>>> days = pd.date_range("1/1/2000", periods=4, freq="D")
96969696
>>> df2 = pd.DataFrame(
9697-
... [[10, 50],
9698-
... [11, 60], [9, 40], [13, 100], [14, 50], [18, 100], [17, 40], [19, 50]],
9699-
... columns=["price", "volume"]
9700-
... index=pd.MultiIndex.from_product([days, ["morning", "afternoon"]])
9697+
... [
9698+
... [10, 50],
9699+
... [11, 60],
9700+
... [9, 40],
9701+
... [13, 100],
9702+
... [14, 50],
9703+
... [18, 100],
9704+
... [17, 40],
9705+
... [19, 50],
9706+
... ],
9707+
... columns=["price", "volume"],
9708+
... index=pd.MultiIndex.from_product([days, ["morning", "afternoon"]]),
97019709
... )
97029710
>>> df2
97039711
price volume

0 commit comments

Comments
 (0)