@@ -397,13 +397,13 @@ class SpecificationError(Exception):
397
397
>>> df = pd.DataFrame({'A': [1, 1, 1, 2, 2],
398
398
... 'B': range(5),
399
399
... 'C': range(5)})
400
- >>> df.groupby('A').B.agg({'foo': 'count'}) # doctest: +SKIP
400
+ >>> df.groupby('A').B.agg({'foo': 'count'}) # doctest: +SKIP
401
401
... # SpecificationError: nested renamer is not supported
402
402
403
- >>> df.groupby('A').agg({'B': {'foo': ['sum', 'max']}}) # doctest: +SKIP
403
+ >>> df.groupby('A').agg({'B': {'foo': ['sum', 'max']}}) # doctest: +SKIP
404
404
... # SpecificationError: nested renamer is not supported
405
405
406
- >>> df.groupby('A').agg(['min', 'min']) # doctest: +SKIP
406
+ >>> df.groupby('A').agg(['min', 'min']) # doctest: +SKIP
407
407
... # SpecificationError: nested renamer is not supported
408
408
"""
409
409
@@ -447,7 +447,7 @@ class SettingWithCopyWarning(Warning):
447
447
Examples
448
448
--------
449
449
>>> df = pd.DataFrame({'A': [1, 1, 1, 2, 2]}, columns=['A'])
450
- >>> df.loc[0:3]['A'] = 'a' # doctest: +SKIP
450
+ >>> df.loc[0:3]['A'] = 'a' # doctest: +SKIP
451
451
... # SettingWithCopyWarning: A value is trying to be set on a copy of a...
452
452
"""
453
453
@@ -578,11 +578,11 @@ class UndefinedVariableError(NameError):
578
578
Examples
579
579
--------
580
580
>>> df = pd.DataFrame({'A': [1, 1, 1]})
581
- >>> df.query("A > x") # doctest: +SKIP
581
+ >>> df.query("A > x") # doctest: +SKIP
582
582
... # UndefinedVariableError: name 'x' is not defined
583
- >>> df.query("A > @y") # doctest: +SKIP
583
+ >>> df.query("A > @y") # doctest: +SKIP
584
584
... # UndefinedVariableError: local variable 'y' is not defined
585
- >>> pd.eval('x + 1') # doctest: +SKIP
585
+ >>> pd.eval('x + 1') # doctest: +SKIP
586
586
... # UndefinedVariableError: name 'x' is not defined
587
587
"""
588
588
0 commit comments