Skip to content

Incorrect parsing of time domain in long format #909

@danielhuppmann

Description

@danielhuppmann

As noticed by @dc-almeida in IAMconsortium/nomenclature#487 (comment), casting a dataframe in long format with inconsistent time-domain vs. column name is not automatically corrected.

Expected behavior:

  • if all values in a 'time' column are integer, the column should be renamed to 'year'
  • if (at least) some values in a 'year' column are datetime-castable, the column should be renamed to 'time'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions