100个numpy问题68-100

  1. 如何将numpy的datetime64对象转换为datetime的datetime对象,比如:

方法一:使用np.datetime64()tolist()函数

# -*- coding: utf-8 -*-
"""
Created on Sat Nov  7 13:10:04 2020

@author: 15025
"""

import numpy as np
import datetime


class NumpyStudy:
    @staticmethod
    def swapDate64ToDatetime():
        date64 

猜你喜欢

转载自blog.csdn.net/u011699626/article/details/109705652
今日推荐