-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Add 'color' and 'size' to arguments #44856
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
Changes from 3 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
2f54813
Rename 'c' to 'color' and 's' to 'size'
mosc9575 3feaabc
Rework after comments
mosc9575 68f2551
remove whitespace
mosc9575 390fc86
Add Tests
865b7ac
Split test into two
1f30d45
t
543c64e
Revert 't'
d1fd7bc
delete trailling whitespaces
eda1fbc
delete default_colors
1caf4dc
accept suggestions
021aadd
Update pandas/tests/plotting/frame/test_frame_color.py
mosc9575 5e94951
add docstring
05a26c8
remove c for bar and hbar
f7b833c
make changes minimal
f99424e
add release notes
abf377e
add changes to _whatsnew_150
33c1ca5
Revert 'add changes to _whatsnew_150'
f131fe4
Merge branch 'main' into patch-1
mosc9575 e6ac538
Update v1.4.1.rst
mosc9575 c9d6043
Update v1.4.1.rst
mosc9575 757f292
update v1.5.0.rst
53503ce
update issue number
mosc9575 73e3fb1
add alias do docstring like in read_csv
e17db52
Merge branch 'main' into patch-1
MarcoGorelli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can deprecate but not rename as that is a breaking change
these are matpotlib names but not objecting to the change per se
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see your point but I need some help to solve it. What is best practice in this situation and how does a deprication warning work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mosc9575 check some other PRs which deprecate arguments for examples https://github.com/pandas-dev/pandas/pulls?q=is%3Apr+depr+is%3Amerged+
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jreback I used the wrong word. I did not "rename", I added
size
andcolor
to avoid braking code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't keep both in the signature, that'd be confusing
I'd suggest:
color
andsize
in the signaturecolor
isNone
, takec
fromkwargs
(likewise forsize
ands
)color
andc
color
andsize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarcoGorelli Thank you. I go with your suggestions. I will edit my PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks - will also need tests to cover the new behaviour