This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
import numpy as np | |
def to_datetime(date): | |
""" | |
Converts a numpy datetime64 object to a python datetime object | |
Input: | |
date - a np.datetime64 object | |
Output: | |
DATE - a python datetime object |