|
227 | 227 | Note that the entire file is read into a single DataFrame regardless,
|
228 | 228 | use the `chunksize` or `iterator` parameter to return the data in chunks.
|
229 | 229 | (Only valid with C parser)
|
| 230 | +buffer_lines : int, default None |
| 231 | + DEPRECATED: this argument will be removed in a future version because its |
| 232 | + value is not respected by the parser |
| 233 | +
|
| 234 | + If low_memory is True, specify the number of rows to be read for each |
| 235 | + chunk. (Only valid with C parser) |
230 | 236 | compact_ints : boolean, default False
|
231 | 237 | DEPRECATED: this argument will be removed in a future version
|
232 | 238 |
|
233 | 239 | If compact_ints is True, then for any column that is of integer dtype,
|
234 | 240 | the parser will attempt to cast it as the smallest integer dtype possible,
|
235 | 241 | either signed or unsigned depending on the specification from the
|
236 | 242 | `use_unsigned` parameter.
|
237 |
| -
|
238 | 243 | use_unsigned : boolean, default False
|
239 | 244 | DEPRECATED: this argument will be removed in a future version
|
240 | 245 |
|
@@ -448,6 +453,7 @@ def _read(filepath_or_buffer, kwds):
|
448 | 453 | 'float_precision',
|
449 | 454 | ])
|
450 | 455 | _deprecated_args = set([
|
| 456 | + 'buffer_lines', |
451 | 457 | 'compact_ints',
|
452 | 458 | 'use_unsigned',
|
453 | 459 | ])
|
@@ -806,7 +812,8 @@ def _clean_options(self, options, engine):
|
806 | 812 | _validate_header_arg(options['header'])
|
807 | 813 |
|
808 | 814 | for arg in _deprecated_args:
|
809 |
| - if result[arg] != _c_parser_defaults[arg]: |
| 815 | + parser_default = _c_parser_defaults[arg] |
| 816 | + if result.get(arg, parser_default) != parser_default: |
810 | 817 | warnings.warn("The '{arg}' argument has been deprecated "
|
811 | 818 | "and will be removed in a future version"
|
812 | 819 | .format(arg=arg), FutureWarning, stacklevel=2)
|
|
0 commit comments