-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
docs: update freq
description for pd.Timedelta.ceil
to match DatetimeIndex.ceil
's freq
description
#59902
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
Comments
I can work on this |
Thanks for the report! @natmokval & @MarcoGorelli - I believe you've been doing a lot of work here. It looks like |
Thanks for the ping, will take a look |
I think the docs need updated, I just tried going back to pandas 1.5.3 and it looks like
|
@robert-nash where does it say this? looking at the docs, I see
and the list shows the offset aliases https://pandas.pydata.org/docs/user_guide/timeseries.html#timeseries-offset-aliases |
@MarcoGorelli The documentation for pandas.Timedelta.ceil I linked to looks like this to me. Do let me know if I missing something! https://pandas.pydata.org/docs/reference/api/pandas.Timedelta.ceil.html#pandas.Timedelta.ceil |
ah thanks @robert-nash , the |
freq
description for pd.Timedelta.ceil
to match DatetimeIndex.ceil
's freq
description
@MarcoGorelli - I think it's currently the case that But now using Please keep in mind I'm quite unfamiliar with this area of pandas 😆 |
take |
take |
Even I have been trying to edit the documentation, but I am facing issue in
I also tried to remove my changes and build it again, but the error persists. |
Hi, I am looking for this issue for my university assignment. Can this issue be assigned to me? Please let me know. Thanks. |
take |
maybe..will think about this EDIT: I can't commit to driving / reviewing this right now, but I won't block it either |
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Calling td.ceil("m") causes the error:
Expected Behavior
td.ceil("m") should behave the same as td.ceil("min")
The documentation for pandas.Timedelta.ceil states that the freq parameter uses the same units as class constructor Timedelta.
The documentation for pandas.Timedelta lists (‘minutes’, ‘minute’, ‘min’, or ‘m’) as one of the possible value lines. This suggests to me that "min" and "m" are equivalent.
It seems that either the documentation could be clearer or there is a bug?
Installed Versions
INSTALLED VERSIONS
commit : 0691c5c
python : 3.12.4
python-bits : 64
OS : Windows
OS-release : 11
Version : 10.0.22631
machine : AMD64
processor : Intel64 Family 6 Model 154 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : English_United Kingdom.1252
pandas : 2.2.3
numpy : 2.0.1
pytz : 2024.2
dateutil : 2.9.0.post0
pip : 24.1
Cython : None
sphinx : None
IPython : None
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : None
blosc : None
bottleneck : None
dataframe-api-compat : None
fastparquet : None
fsspec : None
html5lib : None
hypothesis : None
gcsfs : None
jinja2 : 3.1.4
lxml.etree : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
psycopg2 : None
pymysql : None
pyarrow : None
pyreadstat : None
pytest : None
python-calamine : None
pyxlsb : None
s3fs : None
scipy : 1.14.0
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlsxwriter : None
zstandard : None
tzdata : 2024.2
qtpy : None
pyqt5 : None
The text was updated successfully, but these errors were encountered: