Skip to content

Commit 144caa8

Browse files
author
MomIsBestFriend
committed
Reverted change from fixing merge conflicts
1 parent a81897d commit 144caa8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/core/generic.py

+6
Original file line numberDiff line numberDiff line change
@@ -2182,6 +2182,12 @@ def to_json(
21822182
21832183
Examples
21842184
--------
2185+
>>> df = pd.DataFrame(
2186+
... [["a", "b"], ["c", "d"]],
2187+
... index=["row 1", "row 2"],
2188+
... columns=["col 1", "col 2"],
2189+
... )
2190+
21852191
>>> df.to_json(orient='split')
21862192
'{"columns":["col 1","col 2"],\
21872193
"index":["row 1","row 2"],\

0 commit comments

Comments
 (0)