@@ -33,8 +33,9 @@ class ParserWarning(Warning):
33
33
34
34
Parameters
35
35
----------
36
- filepath_or_buffer : string or file handle / StringIO. The string could be
37
- a URL. Valid URL schemes include http, ftp, s3, and file. For file URLs, a
36
+ filepath_or_buffer : string or file handle / StringIO
37
+ The string could be a URL. Valid URL schemes include
38
+ http, ftp, s3, and file. For file URLs, a
38
39
host is expected. For instance, a local file could be
39
40
file ://localhost/path/to/table.csv
40
41
%s
@@ -59,7 +60,8 @@ class ParserWarning(Warning):
59
60
dialect : string or csv.Dialect instance, default None
60
61
If None defaults to Excel dialect. Ignored if sep longer than 1 char
61
62
See csv.Dialect documentation for more details
62
- header : int row number(s) to use as the column names, and the start of the
63
+ header : int, list of ints
64
+ Row number(s) to use as the column names, and the start of the
63
65
data. Defaults to 0 if no ``names`` passed, otherwise ``None``. Explicitly
64
66
pass ``header=0`` to be able to replace existing names. The header can be
65
67
a list of integers that specify row locations for a multi-index on the
@@ -78,7 +80,7 @@ class ParserWarning(Warning):
78
80
names : array-like
79
81
List of column names to use. If file contains no header row, then you
80
82
should explicitly pass header=None
81
- prefix : string or None (default)
83
+ prefix : string, default None
82
84
Prefix to add to column numbers when no header, e.g 'X' for X0, X1, ...
83
85
na_values : list-like or dict, default None
84
86
Additional strings to recognize as NA/NaN. If dict passed, specific
@@ -113,7 +115,7 @@ class ParserWarning(Warning):
113
115
must be a single character. Like empty lines (as long as ``skip_blank_lines=True``),
114
116
fully commented lines are ignored by the parameter `header`
115
117
but not by `skiprows`. For example, if comment='#', parsing
116
- '#empty\n 1,2,3 \n a,b,c' with `header=0` will result in '1,2,3 ' being
118
+ '#empty\\ na,b,c\\ n1,2,3 ' with `header=0` will result in 'a,b,c ' being
117
119
treated as the header.
118
120
decimal : str, default '.'
119
121
Character to recognize as decimal point. E.g. use ',' for European data
0 commit comments