import pandas as pd
# 读取CSV文件df = pd.read_csv('blca_log3.csv')
# 使用T函数转置DataFramedf_transposed = df.T
# 将结果保存到CSV文件df_transposed.to_csv('blca_log3.csv', index=False)
posted on 2023-06-30 19:57 Cunlenter 阅读(10) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 Cunlenter Powered by .NET 9.0 on Kubernetes