Skip to content

Commit 7fcb0ba

Browse files
committed
escape curly braces in pandas.core.generics.convert_dtypes docstring
1 parent 0be9e10 commit 7fcb0ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6693,8 +6693,8 @@ def infer_objects(self, copy: bool_t | None = None) -> Self:
66936693
res = self._constructor_from_mgr(new_mgr, axes=new_mgr.axes)
66946694
return res.__finalize__(self, method="infer_objects")
66956695

6696-
@doc(dtype_backend_options=_shared_docs["dtype_backend_options"])
66976696
@final
6697+
@doc(dtype_backend_options=_shared_docs["dtype_backend_options"])
66986698
def convert_dtypes(
66996699
self,
67006700
infer_objects: bool_t = True,
@@ -6770,14 +6770,14 @@ def convert_dtypes(
67706770
Examples
67716771
--------
67726772
>>> df = pd.DataFrame(
6773-
... {
6773+
... {{
67746774
... "a": pd.Series([1, 2, 3], dtype=np.dtype("int32")),
67756775
... "b": pd.Series(["x", "y", "z"], dtype=np.dtype("O")),
67766776
... "c": pd.Series([True, False, np.nan], dtype=np.dtype("O")),
67776777
... "d": pd.Series(["h", "i", np.nan], dtype=np.dtype("O")),
67786778
... "e": pd.Series([10, np.nan, 20], dtype=np.dtype("float")),
67796779
... "f": pd.Series([np.nan, 100.5, 200], dtype=np.dtype("float")),
6780-
... }
6780+
... }}
67816781
... )
67826782
67836783
Start with a DataFrame with default dtypes.

0 commit comments

Comments
 (0)