Python Forum
Does a pandas have a date without a time?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does a pandas have a date without a time?
#1
When I create a series object, I specify the type without time: 'datetime64[D]'. But when I look at the data type of this series in the debugger, I see the presence of time: 'datetime64[ns]'.

Things get even worse when I start plotting: the empty time is reflected in the chart as zeros: 2020-04-05 00:00:00 Angry

How to get rid of the time and leave only the date?
Reply


Messages In This Thread
Does a pandas have a date without a time? - by AlekseyPython - Feb-03-2021, 01:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] Load date/time from .txt to 'datetime64' type. water 4 574 Mar-01-2024, 11:16 PM
Last Post: Gribouillis
  Parsing and summing time deltas (duration) onto bar + pie charts using pandas - - DRY Drone4four 2 583 Feb-10-2024, 06:04 PM
Last Post: Drone4four
  Pandas read csv file in 'date/time' chunks MorganSamage 4 1,698 Feb-13-2023, 11:24 AM
Last Post: MorganSamage
  Pandas - compute means per category and time rama27 7 3,498 Nov-13-2020, 08:55 AM
Last Post: PsyPy
  replace nan values by mean group by date.year, date.month wissam1974 5 8,454 Feb-19-2020, 06:25 PM
Last Post: AnkitGupta
  Obtaining Correct Date In Pandas DataFrame eddywinch82 14 5,984 Feb-17-2020, 11:45 AM
Last Post: eddywinch82
  Trying to Pass date to pandas search from input prompt curranjohn46 1 2,105 Oct-10-2019, 10:01 AM
Last Post: curranjohn46
  Need help passing date to pandas query curranjohn46 1 5,463 Oct-10-2019, 09:59 AM
Last Post: curranjohn46
  create 10 yearly blocks from time series using pandas Staph 1 1,962 Jul-23-2019, 12:01 PM
Last Post: Malt
  Pandas converting date to epoch randor 2 3,911 Jul-16-2019, 02:41 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020