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

Long-dataframe with time column #384

Merged
merged 7 commits into from
Jan 10, 2024
Merged

Long-dataframe with time column #384

merged 7 commits into from
Jan 10, 2024

Conversation

ecomodeller
Copy link
Member

Instead of index

@ecomodeller ecomodeller marked this pull request as ready for review January 8, 2024 15:59
Copy link
Member

@jsmariegaard jsmariegaard left a comment

Choose a reason for hiding this comment

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

Great!

Some minor comments that you can take or leave:

  • attrs columns are no longer category, but object
  • I think it is better to drop z before converting to dataframe instead of after
  • the order of columns is not the best (but I guess it doesn't matter)
  • In the ComparerCollection, I have seen that the "observation" col becomes "object" (Gridded_NetCDF... notebook). See screenshot at bottom.
    • quantity also becomes "object" (Multi_Variable... notebook)

Before we had:

    cat_cols = res.select_dtypes(include=["object"]).columns
    res[cat_cols] = res[cat_cols].astype("category")

image

image

@ecomodeller ecomodeller merged commit a6c1ca0 into main Jan 10, 2024
10 checks passed
@ecomodeller ecomodeller deleted the long-dataframe branch January 10, 2024 08:40
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.

2 participants