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

建议将时间的.astype(str)去掉 #4792

Closed
liyqxtu opened this issue Apr 25, 2024 · 1 comment
Closed

建议将时间的.astype(str)去掉 #4792

liyqxtu opened this issue Apr 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@liyqxtu
Copy link

liyqxtu commented Apr 25, 2024

建议所有接口中的
temp_df["时间"] = pd.to_datetime(temp_df["时间"]).astype(str)
改为
temp_df["时间"] = pd.to_datetime(temp_df["时间"])

@liyqxtu liyqxtu added the bug Something isn't working label Apr 25, 2024
@albertandking
Copy link
Collaborator

建议所有接口中的 temp_df["时间"] = pd.to_datetime(temp_df["时间"]).astype(str) 改为 temp_df["时间"] = pd.to_datetime(temp_df["时间"])

astype 主要是为了考虑兼容性

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants