Python Forum
Newbie Help with Datetime formats and numPy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie Help with Datetime formats and numPy
#2
I'm new too and I ask much more than I answer at this point.

However, I was messing around with dates and datetimes today because my current project makes use of them.

Dates and datetimes are different. Whether you import datetime and/or date from datetime can make a difference. There's also timedelta, which may be imported (from datetime) and can be used to add/subtract dates to get resultant time intervals. You can change from datetime to integer by taking .day attribute of a datetime object, for example.

I would suggest playing around with all these things to find exactly what may suit your needs. I'm not sure parse_dates=parse_dates is enough to cover everything.
Reply


Messages In This Thread
RE: Newbie Help with Datetime formats and numPy - by Mark17 - Dec-24-2020, 08:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 776 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,692 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 3,036 Apr-09-2019, 04:54 PM
Last Post: PhysChem

Forum Jump:

User Panel Messages

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