[Python] Why is pandas not formatting dates with date_format?

Discussão em 'Python' iniciado por Stack, Julho 31, 2025.

  1. Stack

    Stack Membro Participativo

    Why is pandas not formatting dates with date_format argument of to_csv?

    pandas.DataFrame([datetime.datetime.now().date()]).to_csv(date_format="%Y %b")
    ',0\n0,2025-07-31\n'

    Continue reading...

Compartilhe esta Página