-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Closed
Labels
EnhancementNeeds TriageIssue that has not been reviewed by a pandas team memberIssue that has not been reviewed by a pandas team member
Description
Feature Type
-
Adding new functionality to pandas
-
Changing existing functionality in pandas
-
Removing existing functionality in pandas
Problem Description
Currently ceil and floor is achieved by codes like:
df = df.mask(df > 0, 0)
this can be slow in terms of performance compared to native methods like np.ceil
and np.floor
Feature Description
Add new .ceil
and .floor
method, possibly using np.ceil
and np.floor
Alternative Solutions
df = pd.DataFrame(np.ceil(df.values, 0), index=df.index, columns=df.columns)
Additional Context
No response
Metadata
Metadata
Assignees
Labels
EnhancementNeeds TriageIssue that has not been reviewed by a pandas team memberIssue that has not been reviewed by a pandas team member