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

利用DataFrameLoader匯入外部資料,然後執行run_pipeline,結果全是na #21

Closed
Ricky05250525 opened this issue Mar 28, 2024 · 0 comments
Labels
Pipeline QA for run pipline

Comments

@Ricky05250525
Copy link
Collaborator

Description of Issue:

利用DataFrameLoader匯入外部資料,然後執行run_pipeline,結果全是na

未命名

Solution:

原因是匯入DataFrameLoader的dataframe,其index格式為datetime64[ns],但pipeline內部merge資料時必須要是datetime64[ns, UTC]

未命名

所以加入transform_data.index=transform_data.index.tz_localize('UTC')進行轉換就可以了。

未命名

Example:

範例

@Ricky05250525 Ricky05250525 changed the title run_pipeline的結果皆為na 利用DataFrameLoader匯入外部資料,然後執行run_pipeline,結果全是na Mar 28, 2024
@Ricky05250525 Ricky05250525 added the Pipeline QA for run pipline label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pipeline QA for run pipline
Projects
None yet
Development

No branches or pull requests

1 participant