[Python] DataFrame.dtypes doesn't work after astype() in pandas [duplicate]

Discussão em 'Python' iniciado por Stack, Setembro 25, 2024.

  1. Stack

    Stack Membro Participativo

    I've transformed OrderDate column from its existing object data type into a 'datetime64[ns]' with astype method.

    But after dtypes() I saw it didn't work.

    Why?

    Thanks.

    `df_raw.OrderDate.astype('datetime64[ns]'),

    `astype done

    df_raw.dtypes

    dtypes not changed

    Continue reading...

Compartilhe esta Página