11am – 4pm, 7:30pm – 11:30pm (Mon-Sun)------(this is opening and closing time of restaurant) [i have this kind of format in my TIME column and this is not converting into datetime format...so how to prepare the data so that i can apply linear regression???]
ValueError: ('未知的字符串格式:', '11am – 4pm, 7:30pm – 11:30pm (Mon-Sun)')
最佳答案
根据我的理解,日期时间格式需要 24 小时格式,或者 - 00:00:00 因此,现在不是晚上 7:30,而是 19:30:00。
关于python - 如何在jupyter笔记本中设置日期时间列的格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59703260/