@@ -425,7 +425,7 @@ class SettingWithCopyError(ValueError):
425
425
--------
426
426
>>> pd.options.mode.chained_assignment = 'raise'
427
427
>>> df = pd.DataFrame({'A': [1, 1, 1, 2, 2]}, columns=['A'])
428
- >>> df.loc[0:3]['A'] = 'a' # doctest: +SKIP
428
+ >>> df.loc[0:3]['A'] = 'a' # doctest: +SKIP
429
429
... # SettingWithCopyError: A value is trying to be set on a copy of a...
430
430
"""
431
431
@@ -665,8 +665,8 @@ class PossibleDataLossError(Exception):
665
665
666
666
Examples
667
667
--------
668
- >>> store = pd.HDFStore('my-store', 'a') # doctest: +SKIP
669
- >>> store.open("w") # doctest: +SKIP
668
+ >>> store = pd.HDFStore('my-store', 'a') # doctest: +SKIP
669
+ >>> store.open("w") # doctest: +SKIP
670
670
... # PossibleDataLossError: Re-opening the file [my-store] with mode [a]...
671
671
"""
672
672
@@ -734,7 +734,7 @@ class PossiblePrecisionLoss(Warning):
734
734
Examples
735
735
--------
736
736
>>> df = pd.DataFrame({"s": pd.Series([1, 2**53], dtype=np.int64)})
737
- >>> df.to_stata('test') # doctest: +SKIP
737
+ >>> df.to_stata('test') # doctest: +SKIP
738
738
... # PossiblePrecisionLoss: Column converted from int64 to float64...
739
739
"""
740
740
@@ -746,7 +746,7 @@ class ValueLabelTypeMismatch(Warning):
746
746
Examples
747
747
--------
748
748
>>> df = pd.DataFrame({"categories": pd.Series(["a", 2], dtype="category")})
749
- >>> df.to_stata('test') # doctest: +SKIP
749
+ >>> df.to_stata('test') # doctest: +SKIP
750
750
... # ValueLabelTypeMismatch: Stata value labels (pandas categories) must be str...
751
751
"""
752
752
0 commit comments