File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -21,36 +21,34 @@ class UnsupportedFunctionCall(ValueError):
21
21
22
22
23
23
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
25
26
and the index has not been lexsorted. Subclass of `KeyError`.
26
27
27
28
.. versionadded:: 0.20.0
28
29
29
30
"""
30
- pass
31
31
32
32
33
33
class ParserError (ValueError ):
34
34
"""
35
35
Exception that is thrown by an error is encountered in `pd.read_csv`
36
36
"""
37
- pass
38
37
39
38
40
39
class DtypeWarning (Warning ):
41
40
"""
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-
43
43
uniform dtypes in a column(s) of a given CSV file
44
44
"""
45
- pass
46
45
47
46
48
47
class EmptyDataError (ValueError ):
49
48
"""
50
49
Exception that is thrown in `pd.read_csv` (by both the C and
51
50
Python engines) when empty data or header is encountered
52
51
"""
53
- pass
54
52
55
53
56
54
class ParserWarning (Warning ):
@@ -60,4 +58,3 @@ class ParserWarning(Warning):
60
58
one specified by the user due to lack of support or functionality for
61
59
parsing particular attributes of a CSV file with the requsted engine
62
60
"""
63
- pass
Original file line number Diff line number Diff line change 3
3
import warnings
4
4
warnings .warn ("The pandas.tslib module is deprecated and will be "
5
5
"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 )
7
7
from pandas ._libs .tslib import (Timestamp , Timedelta ,
8
8
NaT , OutOfBoundsDatetime )
You can’t perform that action at this time.
0 commit comments