Skip to content

Bug46381 - Add storage_option parameter to to_excel method in Styler #46491

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

Merged
merged 33 commits into from
Jul 9, 2022

Conversation

eshirvana
Copy link
Contributor

@eshirvana eshirvana commented Mar 24, 2022

@eshirvana eshirvana marked this pull request as ready for review March 24, 2022 01:49
@eshirvana eshirvana changed the title Bug4638144642 Bug46381 - remove storage_option from doc string for to_excel method in Styler Mar 24, 2022
@eshirvana eshirvana changed the title Bug46381 - remove storage_option from doc string for to_excel method in Styler Bug46381 - remove storage_option parameter from doc string for to_excel method in Styler Mar 24, 2022
@eshirvana eshirvana changed the title Bug46381 - remove storage_option parameter from doc string for to_excel method in Styler Bug46381 - Add storage_option parameter to_excel method in Styler Mar 24, 2022
@eshirvana eshirvana changed the title Bug46381 - Add storage_option parameter to_excel method in Styler Bug46381 - Add storage_option parameter to to_excel method in Styler Mar 24, 2022
@eshirvana eshirvana force-pushed the bug4638144642 branch 2 times, most recently from 72f6ad0 to 481ed71 Compare March 28, 2022 13:33
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs some sort of testing (even though its effectivevly passed thru).

see how we do this for read_csv and would need to do the same on specific types of storage backends.

@jreback jreback added IO Excel read_excel, to_excel Styler conditional formatting using DataFrame.style labels Mar 29, 2022
@eshirvana eshirvana requested a review from rhshadrach April 19, 2022 03:21
@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label May 21, 2022
@rhshadrach
Copy link
Member

@eshirvana - are you interested in continuing here? I believe this is fairly close, just fixing the docs and a small improvement to the test.

@eshirvana
Copy link
Contributor Author

eshirvana commented May 24, 2022

@rhshadrach

i would love to , but I'm not sure how to fix the document part . any help is appreciated

@rhshadrach
Copy link
Member

@eshirvana - the easiest way I see to implement is in #46491 (comment). I think we should go ahead and do that to get the version added correct.

@rhshadrach
Copy link
Member

Thanks @eshirvana - the docstring change looks good. Some CI failures:

_____________________ ERROR at setup of test_styler_to_s3 ______________________
[gw1] linux -- Python 3.8.13 /usr/share/miniconda/envs/test/bin/python
file /home/runner/work/pandas/pandas/pandas/tests/io/excel/test_style.py, line 214
  def test_styler_to_s3(self, s3_resource, s3so):
E       fixture 'self' not found

Offhand it looks related but rerunning the jobs in case something was flakey. If they fail again, can you have a look.

Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, cc @jreback

@rhshadrach rhshadrach removed the Stale label Jun 20, 2022
@rhshadrach
Copy link
Member

@eshirvana - can you merge main; I think that will fix the CI issues.

@eshirvana
Copy link
Contributor Author

@rhshadrach
Not sure what's the issue. Would you please take look and let me know what's the issue and If I can fix it.
Thank you

@jreback jreback added this to the 1.5 milestone Jul 8, 2022
@rhshadrach rhshadrach merged commit f74a186 into pandas-dev:main Jul 9, 2022
@rhshadrach
Copy link
Member

rhshadrach commented Jul 9, 2022

Thanks @eshirvana!

@rhshadrach Not sure what's the issue. Would you please take look and let me know what's the issue and If I can fix it. Thank you

When there are CI failures in a PR, but recent PRs into main are green, it is likely the failure is unrelated and caused by an issue that has since been fixed. By merging in main into the PR as @jreback did, the CI runs again and we can double check this is the case.

We also like to merge main before merging a PR to run the tests again because it could be that there are other changes that have happened since the tests were last run that would identify issues.

@eshirvana eshirvana deleted the bug4638144642 branch July 9, 2022 17:19
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Excel read_excel, to_excel Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: pandas.io.formats.style.Styler.to_excel doesn't support storage_options as its documented
4 participants