Open clausmichele opened 11 months ago
Thanks for the PR @clausmichele. See some discussion here: https://github.com/gjoseph92/stackstac/issues/213#issuecomment-1693869558.
Would you mind either adding pandas>=2.0.0
(pdm add pandas>=2
) to the dependencies, or making this conditional on the pandas version, like
PANDAS_2 = importlib.metadata.version('pandas')[0] == "2" # hacky
...
pd.to_datetime(
...
**({"infer_datetime_format": True} if not PANDAS_2 else {})
)
@gjoseph92 alright I will try to make it conditional as you suggested! I missed the other issue mentioning it.
Hi! Almost created an issue but I saw this pull request @clausmichele and @gjoseph92 any idea when this will be merged?
I won't have time to work on this until mid November unfortunately.
@clausmichele I can take this over in that case then, if you'd like?
@gjoseph92 sure, thanks a lot for the effort you put in this project.
FYI, requiring pandas 2 seems to be the best way forward: https://github.com/gjoseph92/stackstac/issues/235#issuecomment-1858906028
hi - i was thinking to make a PR to get rid of the warning and saw this. any plans to merge this in or is there a discussion elsewhere that is stopping this from going through?
Removing the deprecated argument 'infer_datetime_format'. This is the deprecation warning by Pandas: