Skip to content

AIA datetime format #6

Description

@ManuelIndac0

The datetime format for December 31st, 2020 is timezone-naive, while all other dates are timezone-aware (see picture). As such, when creating a datetime object, an error occurs. The following example may be a way to fix the issue, as it ensures a desired time format for all dates.

transform_datetime = lambda x: pd.to_datetime(x, format='mixed').strftime('%Y-%m-%d %H:%M:%S') df_t_aia['Time'] = df_t_aia['Time'].apply(transform_datetime)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions