to_datetime(*args, **kwargs)

http://pandas.pydata.org/pandas-docs/stable/generated/pandas.to_datetime.html#pandas.to_datetime

pandas.to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False, utc=None, box=True, format=None, exact=True, unit=None, infer_datetime_format=False, origin='unix')
参数
arg : integer, float, string, datetime, list, tuple, 1-d array, Series 传入类型
errors : {‘ignore’, ‘raise’, ‘coerce’}, default ‘raise’ ignore保存原本 raise报错coerce强制转换成naT
dayfirst : boolean, default False
yearfirst : boolean, default False
utc : boolean, default None
box : boolean, default True
format : string, default None “%d/%m/%Y”
exact : boolean, True by default
unit : string, default ‘ns’ 时间的最小单位(D,s,ms,us,ns)
infer_datetime_format : boolean, default False
origin : scalar, default is ‘unix’ 设置最开始的时间,然后传入时间间隔和单位

你可能感兴趣的:(pandas)