@@ -107,9 +107,10 @@ index_col : int, str, sequence of int / str, or False, optional, default ``None`
107
107
string name or column index. If a sequence of int / str is given, a
108
108
MultiIndex is used.
109
109
110
- Note: ``index_col=False `` can be used to force pandas to *not * use the first
111
- column as the index, e.g. when you have a malformed file with delimiters at
112
- the end of each line.
110
+ .. note ::
111
+ ``index_col=False `` can be used to force pandas to *not * use the first
112
+ column as the index, e.g. when you have a malformed file with delimiters at
113
+ the end of each line.
113
114
114
115
The default value of ``None `` instructs pandas to guess. If the number of
115
116
fields in the column header row is equal to the number of fields in the body
@@ -182,15 +183,16 @@ General parsing configuration
182
183
+++++++++++++++++++++++++++++
183
184
184
185
dtype : Type name or dict of column -> type, default ``None ``
185
- Data type for data or columns. E.g. ``{'a': np.float64, 'b': np.int32} ``
186
- (unsupported with ``engine='python' ``). Use ``str `` or ``object `` together
187
- with suitable ``na_values `` settings to preserve and
188
- not interpret dtype.
186
+ Data type for data or columns. E.g. ``{'a': np.float64, 'b': np.int32, 'c': 'Int64'} ``
187
+ Use ``str `` or ``object `` together with suitable ``na_values `` settings to preserve
188
+ and not interpret dtype. If converters are specified, they will be applied INSTEAD
189
+ of dtype conversion.
190
+
189
191
.. versionadded :: 1.5.0
190
192
191
- Support for defaultdict was added. Specify a defaultdict as input where
192
- the default determines the dtype of the columns which are not explicitly
193
- listed.
193
+ Support for defaultdict was added. Specify a defaultdict as input where
194
+ the default determines the dtype of the columns which are not explicitly
195
+ listed.
194
196
engine : {``'c' ``, ``'python' ``, ``'pyarrow' ``}
195
197
Parser engine to use. The C and pyarrow engines are faster, while the python engine
196
198
is currently more feature-complete. Multithreading is currently only supported by
@@ -283,7 +285,9 @@ parse_dates : boolean or list of ints or names or list of lists or dict, default
283
285
* If ``[[1, 3]] `` -> combine columns 1 and 3 and parse as a single date
284
286
column.
285
287
* If ``{'foo': [1, 3]} `` -> parse columns 1, 3 as date and call result 'foo'.
286
- A fast-path exists for iso8601-formatted dates.
288
+
289
+ .. note ::
290
+ A fast-path exists for iso8601-formatted dates.
287
291
infer_datetime_format : boolean, default ``False ``
288
292
If ``True `` and parse_dates is enabled for a column, attempt to infer the
289
293
datetime format to speed up the processing.
@@ -1593,8 +1597,10 @@ of multi-columns indices.
1593
1597
1594
1598
pd.read_csv(" mi2.csv" , header = [0 , 1 ], index_col = 0 )
1595
1599
1596
- Note: If an ``index_col `` is not specified (e.g. you don't have an index, or wrote it
1597
- with ``df.to_csv(..., index=False) ``, then any ``names `` on the columns index will be *lost *.
1600
+ .. note ::
1601
+ If an ``index_col `` is not specified (e.g. you don't have an index, or wrote it
1602
+ with ``df.to_csv(..., index=False) ``, then any ``names `` on the columns index will
1603
+ be *lost *.
1598
1604
1599
1605
.. ipython :: python
1600
1606
:suppress:
0 commit comments