Skip to content
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

add support for pandas timestamp #276

Merged
merged 3 commits into from
Jan 29, 2025
Merged

add support for pandas timestamp #276

merged 3 commits into from
Jan 29, 2025

Conversation

Theophile-Varnier
Copy link
Collaborator

@Theophile-Varnier Theophile-Varnier commented Jan 24, 2025

-Allows user to use pandas Timestamp in subset and open
-Add dev packages to pyproject.toml
-This solution is not generic and may be reevaluated

Fix #261 and CMT-195


📚 Documentation preview 📚: https://copernicusmarine--276.org.readthedocs.build/en/276/

@@ -3,6 +3,7 @@
from typing import List, Optional, Union

import xarray
from pandas import Timestamp
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that for the other files we do import pandas maybe we can uniformise this (actually I think the best would be to have import pandas as pd in the whole repo

Copy link
Collaborator

@uriii3 uriii3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect to me!

@Theophile-Varnier Theophile-Varnier merged commit 916e077 into main Jan 29, 2025
8 checks passed
@Theophile-Varnier Theophile-Varnier deleted the pandas-timespan branch January 29, 2025 09:26
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.

tz-naive pandas timestamps do not work anymore with copernicusmarine v2
3 participants