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

Investigate alternatives for pivotting dataframes #195

Open
Tracked by #192
Peter9192 opened this issue Jan 23, 2024 · 0 comments
Open
Tracked by #192

Investigate alternatives for pivotting dataframes #195

Peter9192 opened this issue Jan 23, 2024 · 0 comments

Comments

@Peter9192
Copy link
Collaborator

In our workflows, the target is always unique for each location/year. However, sometimes the predictors are timeseries for the same point/year. We need a way to represent time series as input features.

Currently, our approach is to pivot the dataframe, such that each day/month/entry in the timeseries is one column. This leads to many columns with complex names, such as

year geometry tmax|1 tmax|2 tmax|3 ... tmin|9 tmin|10 tmin|11 tmin|12

Alternatively, we could

  • Store time series as such in a single pandas cell
  • Switch to xarray or something similar to better represent multidimensional data
  • ...?
@Peter9192 Peter9192 mentioned this issue Jan 23, 2024
26 tasks
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