Learn practical skills, build real-world projects, and advance your career

Working with date and time in Numpy

most useful functions to work with data and time in numpy

Numpy is a python package which help to deal with single dimension as well as nulti-dimenional array. It has various useful function of linear algebra, statics etc. here I am explaining some of the numpy function that deals with date and time.

  • numpy.datetime64
  • numpy.timedelta64
  • numpy.busday_offset
  • numpy.busday_count
  • numpy.datetime_data
  • numpy.datetime_as_string

The recommended way to run this notebook is to click the "Run" button at the top of this page, and select "Run on Binder". This will run the notebook on mybinder.org, a free online service for running Jupyter notebooks.

!pip install jovian --upgrade -q
WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available. You should consider upgrading via the '/opt/conda/bin/python3.7 -m pip install --upgrade pip' command.
import jovian
jovian.commit(project='numpy-array-operations')
[jovian] Attempting to save notebook.. [jovian] Detected Kaggle notebook... [jovian] Uploading notebook to https://jovian.ml/ameya-shahu/numpy-array-operations

Let's begin by importing Numpy and listing out the functions covered in this notebook.