我正在使用zipline中的csvdir捆绑加载csv文件。它给出一个“ ValueError:解析日期时间字符串“ A.csv”在位置0时出错”错误。该如何解决?
当我直接使用熊猫加载它时,它加载得很好:
override fun onClick(v: View) {
when (v.id) {
R.id.likeView -> {
motionLayout.setTransition(R.id.start_first_set,R.id.end_first_set)
motionLayout.transitionToEnd() // start first anime
}
}
motionLayout.setTransitionListener(object : MotionLayout.TransitionListener{
// .....
override fun onTransitionCompleted(p0: MotionLayout?, id: Int) {
when (id) {
R.id.end_first_set -> {
motionLayout.setTransition(R.id.start_second_set,R.id.end_secons_set)
motionLayout.transitionToEnd() // start second anime
}
}
})
这是代码的错误:
>>> Acsv = pd.read_csv("D:/work/tmp/hData/bundles/data/NYSE_dat/A.csv", parse_dates=[0], infer_datetime_format=True, index_col=0)
>>> Acsv.head()
open high low close volume dividend split
date
2014-06-18 58.86 59.32 58.53 59.27 1114700 0.0 1.0
2014-06-19 59.20 59.54 58.15 58.62 3149500 0.0 1.0
2014-06-20 57.95 59.06 57.84 58.77 2027500 0.0 1.0
2014-06-23 58.71 58.86 57.97 58.11 1435600 0.0 1.0
2014-06-24 58.03 58.49 57.58 57.65 1125800 0.0 1.0