[Python]数据可视化错误汇总
TypeError: strptime() argument 0 must be str, not <class 'bytes'>
‘Festinatione facit vastum’
运行环境:
python3.6
ubuntu
pycharm
很绝望,照着教程再输入的时候报错了,然后百思不得其解,其实明白是类型错误,在分析了源码(1%,并且放弃后,就去https://stackoverflow.com旅行了),得出以下解决方法:
在python2.x中可直接使用:
strpdate2num()
而在python3.x中则要使用:
bytespdate2num()
以下原文:
The workaround of unutbu work perfectly fine. Meanwhile it seems that the issue has been addressed. Using bytespdate2num() instead of strpdate2num() works for me.