1、时间转换
时间转换是指字符型的时间格式数据,转换成为时间型数据的过程。
一般从csv导入过来的文件,时间都保存为字符型格式的,需要转换。
时间转换函数:
datatime=pandas.to_datetime(dataString,format)
2、时间格式化
时间格式化是指将时间型数据,按照指定格式,转为字符型数据。
时间格式化函数:
dateTimeFormat=datetime.dt.strftime(format)
format有哪些:
时间转换是指字符型的时间格式数据,转换成为时间型数据的过程。
一般从csv导入过来的文件,时间都保存为字符型格式的,需要转换。
时间转换函数:
datatime=pandas.to_datetime(dataString,format)
时间格式化是指将时间型数据,按照指定格式,转为字符型数据。
时间格式化函数:
dateTimeFormat=datetime.dt.strftime(format)
format有哪些: