将列名转换为行值

时间:2019-04-18 08:23:24

标签: python pandas dataframe

我已经使用表格从pdf中读取了表格

from tabula import wrapper
df = wrapper.read_pdf('xyz.pdf')
df.columns = ["Start_time","End_time","Start_stop_name","End_stop_name"]

现在,如果我要为第一行覆盖的列分配名称。

Before adding column

After adding column

1 个答案:

答案 0 :(得分:0)

尝试通过 public static class Settings { .... public static readonly int maxCharactersEmail= 320; //Googled it .... } 传递pandas_options参数:

{'header': None}