Skip to content

Display Pure "Date"s Without Time #5696

@cancan101

Description

@cancan101

I have a Series of "dates" (actually datetimes all at midnight), Is there any way to get this Series or column to render as just the date without the time string of "00:00:00"?

In [248]:
pd.Series([datetime(2013,1,1),datetime(2013,2,1)])

Out[248]:
0   2013-01-01 00:00:00
1   2013-02-01 00:00:00
dtype: datetime64[ns]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Duplicate ReportDuplicate issue or pull requestOutput-Formatting__repr__ of pandas objects, to_string

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions