Skip to content

Updated deprecated pandas features: offset aliases and ffill.#63

Open
BraydenJamesE wants to merge 1 commit into
TorchSpatiotemporal:mainfrom
BraydenJamesE:fix-pandas-offset-aliases
Open

Updated deprecated pandas features: offset aliases and ffill.#63
BraydenJamesE wants to merge 1 commit into
TorchSpatiotemporal:mainfrom
BraydenJamesE:fix-pandas-offset-aliases

Conversation

@BraydenJamesE

Copy link
Copy Markdown

Pandas no longer supports the 'T' offset alias and the method='ffill' argument for fillna(). Fixed by changing all instances of 'T' to 'min' and the one instance of "fillna(method='ffill')" to just "ffill".

Tested the code after and it fixed the error I encountered when trying to download the PemsBay dataset with Pandas 3. I did downgrade my pandas and made sure that these changes also worked with Pandas 2 and they did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant