python - 如何在jupyter笔记本中设置日期时间列的格式

标签 python machine-learning

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/

相关文章:

python - 具有一个热文本嵌入的 Keras LSTM 输入维度

machine-learning - 机器学习中的测试驱动开发

python - 尝试 PIP 卸载软件包以升级它时,DESCRIPTION.rst 文件的权限被拒绝

python - 我怎样才能让用户有可能编写脚本(以安全的方式)?

python - python 磁盘上的 LRU 缓存

python - Keras:将模型对象作为参数传递给损失函数

python - 迭代行并从另一列获取值

python - 将 .py 文件作为模块导入时,文档字符串未显示?

optimization - 在 "Black Box"系统中寻找最佳参数

machine-learning - 有 NEAT 上的 Encog 文档吗?