We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3761448 commit 4a5aec4Copy full SHA for 4a5aec4
pandas/io/common.py
@@ -247,6 +247,22 @@ def file_path_to_url(path):
247
248
def _infer_compression(filepath_or_buffer, compression):
249
"""
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
266
If compression='infer', infer compression. If compression
267
268
0 commit comments