Skip to content

Commit f88d66a

Browse files
committed
corrections
1 parent afc277b commit f88d66a

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

pandas/errors/__init__.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,34 @@ class UnsupportedFunctionCall(ValueError):
2121

2222

2323
class UnsortedIndexError(KeyError):
24-
""" Error raised when attempting to get a slice of a MultiIndex
24+
"""
25+
Error raised when attempting to get a slice of a MultiIndex
2526
and the index has not been lexsorted. Subclass of `KeyError`.
2627
2728
.. versionadded:: 0.20.0
2829
2930
"""
30-
pass
3131

3232

3333
class ParserError(ValueError):
3434
"""
3535
Exception that is thrown by an error is encountered in `pd.read_csv`
3636
"""
37-
pass
3837

3938

4039
class DtypeWarning(Warning):
4140
"""
42-
Warning that is raised whenever `pd.read_csv` encounters non-
41+
Warning that is raised for a dtype incompatiblity. This is
42+
can happen whenever `pd.read_csv` encounters non-
4343
uniform dtypes in a column(s) of a given CSV file
4444
"""
45-
pass
4645

4746

4847
class EmptyDataError(ValueError):
4948
"""
5049
Exception that is thrown in `pd.read_csv` (by both the C and
5150
Python engines) when empty data or header is encountered
5251
"""
53-
pass
5452

5553

5654
class ParserWarning(Warning):
@@ -60,4 +58,3 @@ class ParserWarning(Warning):
6058
one specified by the user due to lack of support or functionality for
6159
parsing particular attributes of a CSV file with the requsted engine
6260
"""
63-
pass

pandas/tslib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
import warnings
44
warnings.warn("The pandas.tslib module is deprecated and will be "
55
"removed in a future version. Please import from "
6-
"the pandas or pandas.api.exceptions instead", FutureWarning, stacklevel=2)
6+
"the pandas or pandas.errors instead", FutureWarning, stacklevel=2)
77
from pandas._libs.tslib import (Timestamp, Timedelta,
88
NaT, OutOfBoundsDatetime)

0 commit comments

Comments
 (0)