9
9
10
10
class PerformanceWarning (Warning ):
11
11
"""
12
- Warning raised when there is a possible
13
- performance impact.
12
+ Warning raised when there is a possible performance impact.
14
13
"""
15
14
15
+
16
16
class UnsupportedFunctionCall (ValueError ):
17
17
"""
18
18
Exception raised when attempting to call a numpy function
19
19
on a pandas object, but that function is not supported by
20
20
the object e.g. ``np.cumsum(groupby_object)``.
21
21
"""
22
22
23
+
23
24
class UnsortedIndexError (KeyError ):
24
25
"""
25
26
Error raised when attempting to get a slice of a MultiIndex,
@@ -31,9 +32,15 @@ class UnsortedIndexError(KeyError):
31
32
32
33
class ParserError (ValueError ):
33
34
"""
34
- Exception that is raised by an error encountered in `pd.read_csv`.
35
+ Exception that is raised by an error encountered in parsing file contents.
36
+
37
+ This is a generic error raised for errors encountered when functions like
38
+ `read_csv` or `read_html` are parsing contents of a file.
35
39
36
- e.g. HTML Parsing will raise this error.
40
+ See Also
41
+ --------
42
+ read_csv : Read CSV (comma-separated) file into a DataFrame.
43
+ read_html : Read HTML table into a DataFrame.
37
44
"""
38
45
39
46
@@ -182,4 +189,4 @@ def __str__(self):
182
189
else :
183
190
name = self .class_instance .__class__ .__name__
184
191
msg = "This {methodtype} must be defined in the concrete class {name}"
185
- return ( msg .format (methodtype = self .methodtype , name = name ) )
192
+ return msg .format (methodtype = self .methodtype , name = name )
0 commit comments