-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
STYLE: upgrade ruff #52974
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
STYLE: upgrade ruff #52974
Changes from 3 commits
87fa219
ef1a9fd
ad1480c
abb2080
fa83b60
6053928
daa10a9
8739dc1
fa94aa9
f092bff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Requirement already satisfied: pandas in /home/yusharthsingh/Desktop/pandas (0+untagged.32262.g3790452.dirty) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove this file |
||
Requirement already satisfied: python-dateutil>=2.8.2 in /home/yusharthsingh/mambaforge/envs/pandas-dev/lib/python3.10/site-packages (from pandas) (2.8.2) | ||
Requirement already satisfied: pytz>=2020.1 in /home/yusharthsingh/mambaforge/envs/pandas-dev/lib/python3.10/site-packages (from pandas) (2023.3) | ||
Requirement already satisfied: tzdata>=2022.1 in /home/yusharthsingh/mambaforge/envs/pandas-dev/lib/python3.10/site-packages (from pandas) (2023.3) | ||
Requirement already satisfied: numpy>=1.21.6 in /home/yusharthsingh/.local/lib/python3.10/site-packages (from pandas) (1.23.1) | ||
Requirement already satisfied: six>=1.5 in /home/yusharthsingh/mambaforge/envs/pandas-dev/lib/python3.10/site-packages (from python-dateutil>=2.8.2->pandas) (1.16.0) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5140,7 +5140,7 @@ def drop( | |
|
||
Drop columns and/or rows of MultiIndex DataFrame | ||
|
||
>>> midx = pd.MultiIndex(levels=[['lama', 'cow', 'falcon'], | ||
>>> midx = pd.MultiIndex(levels=[['llama', 'cow', 'falcon'], | ||
... ['speed', 'weight', 'length']], | ||
... codes=[[0, 0, 0, 1, 1, 1, 2, 2, 2], | ||
... [0, 1, 2, 0, 1, 2, 0, 1, 2]]) | ||
|
@@ -5150,7 +5150,7 @@ def drop( | |
... [1, 0.8], [0.3, 0.2]]) | ||
>>> df | ||
big small | ||
lama speed 45.0 30.0 | ||
llama speed 45.0 30.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these aren't aligned anymore I'd suggest either:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and this |
||
weight 200.0 100.0 | ||
length 1.5 1.0 | ||
cow speed 30.0 20.0 | ||
|
@@ -5166,7 +5166,7 @@ def drop( | |
|
||
>>> df.drop(index=('falcon', 'weight')) | ||
big small | ||
lama speed 45.0 30.0 | ||
llama speed 45.0 30.0 | ||
weight 200.0 100.0 | ||
length 1.5 1.0 | ||
cow speed 30.0 20.0 | ||
|
@@ -5177,7 +5177,7 @@ def drop( | |
|
||
>>> df.drop(index='cow', columns='small') | ||
big | ||
lama speed 45.0 | ||
llama speed 45.0 | ||
weight 200.0 | ||
length 1.5 | ||
falcon speed 320.0 | ||
|
@@ -5186,7 +5186,7 @@ def drop( | |
|
||
>>> df.drop(index='length', level=1) | ||
big small | ||
lama speed 45.0 30.0 | ||
llama speed 45.0 30.0 | ||
weight 200.0 100.0 | ||
cow speed 30.0 20.0 | ||
weight 250.0 150.0 | ||
|
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.
looks like pylint have pushed a new tag, but no new release. I'd suggest reverting this change for now
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.
ping on this