From 5c83d0c6cfff5a9dff0fcbaa6ab2b502965b8070 Mon Sep 17 00:00:00 2001 From: Jake VanderPlas Date: Sun, 2 Feb 2020 06:35:06 -0800 Subject: [PATCH] Fix docstring for to_markdown buf parameter --- pandas/core/generic.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 3b1d7e4c50be5..3bb584d4d34e8 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1922,10 +1922,8 @@ def _repr_data_resource_(self): Parameters ---------- - buf : writable buffer, defaults to sys.stdout - Where to send the output. By default, the output is printed to - sys.stdout. Pass a writable buffer if you need to further process - the output. + buf : str, Path or StringIO-like, optional, default None + Buffer to write to. If None, the output is returned as a string. mode : str, optional Mode in which file is opened. **kwargs