Skip to content

Commit 4a5aec4

Browse files
committed
DOC: doc-string for infer_compression
1 parent 3761448 commit 4a5aec4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pandas/io/common.py

+16
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,22 @@ def file_path_to_url(path):
247247

248248
def _infer_compression(filepath_or_buffer, compression):
249249
"""
250+
Get file handle for given path/buffer and mode.
251+
252+
Parameters
253+
----------
254+
filepath_or_buf :
255+
a path (str) or buffer
256+
compression : str, or None
257+
258+
Returns
259+
-------
260+
string compression method, None
261+
262+
Raises
263+
------
264+
ValueError on invalid compression specified
265+
250266
If compression='infer', infer compression. If compression
251267
"""
252268

0 commit comments

Comments
 (0)