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.
ENH: fill_value argument for shift #15486 #24128
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
ENH: fill_value argument for shift #15486 #24128
Changes from 78 commits
c3e550c
9ab2d4d
6b4789d
57c087e
1852ea6
3461271
8b5cedb
27226fa
29b8a6e
cf6b2dd
9f9962c
4c7b762
b36ca43
a36e7c7
4c2ec2c
fbf3d73
bb722a6
1b1fdc2
c3f462c
e44b514
38f621c
d9d9fdb
cc6f370
3619410
ca5ba24
c195a13
af90a00
2f9b712
bbfe7f9
ef55afb
ce3d3c7
e6103a4
d18b6b7
931df66
83f9157
81c01bc
4ae4d0b
d4d43a3
1366161
2643aa5
c010413
689bf8e
463964b
b90b00f
18fab2f
cb03215
c8242f3
8e946cc
69e47f3
8765bee
9d10a6b
6f4078a
4227dda
ce721ae
c743004
03e3bd4
e4313da
85d2b16
da90e89
d71be8a
aca6c9c
20361c7
599ccb7
1ac273a
b2074a8
0fe2f95
7d33f21
578859b
a016df3
3947394
b266a50
fa808a4
71b8df1
31a844e
18cbd95
d068150
e665f7d
c5a95cb
b03a3fd
d9efb45
60595c9
7fc9900
e1a83e2
7b587c2
7bf6768
09f0fde
6d65cfa
2162c18
3f9b62b
8fa8a15
988507a
6c96108
eb48cfe
a72cffe
25b4661
d817d0c
0afad10
bb67905
f5aad59
025f0db
8ce460a
dce5aa1
d60632a
a0ab35d
fd23842
3503e86
674f15d
3c896ab
b9d335a
4fcca01
a24f5c8
a92ddfb
a03cbf5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
need a blank line here
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.
Capitalize
f
infor
.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.
done
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.
Capitalize.
Maybe replace dateline with "datetime, timedelta, or period data, ..."
change ``pandas.nat`` to :attr:`NaT`.
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.
And could you add that "For extension dtypes,
self.dtype.na_value
is used".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.
done
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.
use a fill_value=0, so these stay as ints
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.
blank line here
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.
use
if isna(fill_value)
, I think you have another occurrence of this as wellThere 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.
remove the print.
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.
removed