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

set_stadata_coords种sta["time"] = sta["time"].astype(np.datetime64)的作用? #155

Open
xiangyang1989 opened this issue Nov 23, 2023 · 0 comments

Comments

@xiangyang1989
Copy link

set_stadata_coords种当len==1时的作用?为1为什么要再次做转换?运行astype(np.datetime64)总是报错Casting to unit-less dtype 'datetime64' is not supported. Pass e.g. 'datetime64[ns]' instead.
if len(sta.index) ==1:
sta["time"] = sta["time"].astype(np.datetime64)

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

No branches or pull requests

1 participant