-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: ExcelWriter constructor types #35505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The links in the issue are broken, you need to use
|
It's better to use bytes-like object instead of |
I fixed links |
I didn't understand how can I use bytes-like object as output for ExcelWriter. |
I mean it doesn't strictly require
|
Now I got your idea. |
I believe bytes like object means the same thing. It's more about having the expected interface (duck typing), rather than being a subclass of a certain class (which is the case in Java). |
I understand this. But now possibility of using bytes-likes objects isn't described in docs at all and also pycharm shows warnings. |
Sounds good, Would you like to submit a PR? |
take |
After I made changes to docstring I ran |
The current version has that warning anyway, so I guess you can ignore that. Worst case, you'll get a comment in code review on how to fix it. |
Location of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.ExcelWriter.html?highlight=excelwriter
or
pandas/pandas/io/excel/_base.py
Line 544 in d9fff27
Documentation problem
Parameter
path
has typestr
, but based on this feature https://github.com/pandas-dev/pandas/issues/7074 I can passio.BytesIO
.Suggested fix for documentation
Change type description to
str | io.BytesIO
.The text was updated successfully, but these errors were encountered: