-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Period.now() does not accept kwarg "freq" but doc and typing say otherwise #53369
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
Hi, The issue is with the passing of
This is a bug on our end, and it looks like the fix is to set the I'll try to submit a patch in the next few days. |
As far as my limited understanding goes, the default for |
Sadly, that's a Cython 3 only change. We are on one of the 0.29 releases. |
I can see, that the associated PR is hanging. Any chances this can be fixed in the next release? |
I've hit a Cython bug I think This is probably going to take a while. |
Thank you for your quick reply. Helps me, to take a decision. |
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
The method call
Period.now(freq="D")
raises a "TypeError: Period.now() takes no keyword arguments" but this behavior deviates from Pandas 1.5.X and is in contradiction to type annotations and not documented.Expected Behavior
The kwarg "freq" should work or it should be documented accordingly in type annotations and as breaking change.
Installed Versions
INSTALLED VERSIONS
commit : 37ea63d
python : 3.11.3.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.14393
machine : AMD64
processor : Intel64 Family 6 Model 85 Stepping 0, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : de_DE.cp1252
pandas : 2.0.1
numpy : 1.24.3
pytz : 2023.3
dateutil : 2.8.2
setuptools : 67.8.0
pip : 23.1.2
Cython : None
pytest : 7.3.1
hypothesis : 6.75.3
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.9.6
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : 4.12.2
bottleneck : None
brotli : None
fastparquet : None
fsspec : None
gcsfs : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 10.0.1
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : None
snappy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : 2023.3
qtpy : None
pyqt5 : None
The text was updated successfully, but these errors were encountered: