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