|
269 | 269 | tupleize_cols : bool, default False
|
270 | 270 | Leave a list of tuples on columns as is (default is to convert to
|
271 | 271 | a MultiIndex on the columns).
|
| 272 | +
|
272 | 273 | .. deprecated:: 0.21.0
|
273 | 274 | This argument will be removed and will always convert to MultiIndex
|
274 | 275 |
|
|
311 | 312 |
|
312 | 313 | See Also
|
313 | 314 | --------
|
| 315 | +to_csv : Write DataFrame to a comma-separated values (csv) file. |
314 | 316 | %s
|
315 | 317 |
|
316 | 318 | Examples
|
|
334 | 336 | Alias for sep.
|
335 | 337 | """
|
336 | 338 |
|
337 |
| -_see_also = ("to_csv : Write DataFrame to " |
338 |
| - "a comma-separated values (csv) file.") |
| 339 | +_see_also_csv_doc = ('read_csv : Read a comma-separated values ' |
| 340 | + '(csv) file into DataFrame.') |
| 341 | + |
| 342 | +_see_also_fwf_doc = ('read_fwf : Read a table of ' |
| 343 | + 'fixed-width formatted lines into DataFrame.') |
339 | 344 |
|
340 | 345 | _example_doc = "pd.{_api}('/tmp/data.csv')"
|
341 | 346 |
|
342 | 347 | _read_csv_doc = """
|
343 |
| -Read CSV (comma-separated) file into DataFrame. |
| 348 | +Read a comma-separated values (csv) file into DataFrame. |
344 | 349 |
|
345 | 350 | %s
|
346 |
| -""" % (_parser_params % (_sep_doc.format(default="','"), _engine_doc, |
347 |
| - _see_also, _example_doc.format(_api='read_csv'))) |
| 351 | +""" % (_parser_params % (_sep_doc.format(default="','"), |
| 352 | + _engine_doc, _see_also_fwf_doc, |
| 353 | + _example_doc.format(_api='read_csv'))) |
348 | 354 |
|
349 | 355 | _read_table_doc = """
|
350 | 356 | Read general delimited file into DataFrame.
|
|
354 | 360 |
|
355 | 361 | %s
|
356 | 362 | """ % (_parser_params % (_sep_doc.format(default="\\t (tab-stop)"),
|
357 |
| - _engine_doc, _see_also, |
| 363 | + _engine_doc, |
| 364 | + '{}\n{}'.format(_see_also_csv_doc, _see_also_fwf_doc), |
358 | 365 | _example_doc.format(_api='read_table')))
|
359 | 366 |
|
360 | 367 | _fwf_widths = """\
|
|
377 | 384 | Read a table of fixed-width formatted lines into DataFrame.
|
378 | 385 |
|
379 | 386 | %s
|
380 |
| -""" % (_parser_params % (_fwf_widths, '', _see_also, |
| 387 | +""" % (_parser_params % (_fwf_widths, '', |
| 388 | + _see_also_csv_doc, |
381 | 389 | _example_doc.format(_api='read_fwf')))
|
382 | 390 |
|
383 | 391 |
|
|
0 commit comments