# merge_result is DataFrame
merge_result_tuples = [tuple(xi) for xi in merge_result.values]
# output: (datetime.date(2018, 11, 19), Timestamp('2018-11-19 07:37:31'), 1231, 89244241)
Python将DataFrame的每一行组成元组
最新推荐文章于 2024-04-12 04:39:44 发布