Impove _get_handle docstring · pandas-dev/pandas@101a344 (original) (raw)

Original file line number Diff line number Diff line change
@@ -279,6 +279,22 @@ def _get_handle(path_or_buf, mode, encoding=None, compression=None,
279 279 memory_map=False):
280 280 """
281 281 Get file handle for given path/buffer and mode.
282 +
283 + Parameters
284 + ----------
285 + path_or_buf :
286 + a path (str) or buffer
287 + mode : str
288 + mode to open path_or_buf with
289 + encoding : str or None
290 + compression : str or None
291 + Supported compression protocols are gzip, bz2, zip, and xz
292 + memory_map : boolean, default False
293 + See parsers._parser_params for more information.
294 +
295 + Returns
296 + -------
297 + A file like object.
282 298 """
283 299
284 300 f = path_or_buf