使用gspread-dataframe set_with_dataframe-尝试不包含标头

问题描述 投票:0回答:1

我正在使用https://github.com/robin900/gspread-dataframe中的set_with_dataframe将数据帧写入Google表格。

我正在迭代地写入工作表,并尝试不包括标题。但是,当include_column_header设置为False时,每次都包含标头。

set_with_dataframe(worksheet,df,row=next_available,col=1,include_index=False,include_column_header=False)

这意味着当我迭代编写时,列标题在每次迭代中都会重复。

如何在不包含标题的情况下从数据框中写入Google工作表?

python pandas google-sheets gspread
1个回答
0
投票

我刚刚在我这边对其进行了测试:

[set_with_dataframe(sheet,df,include_column_header=False)不会将标题写入工作表。

© www.soinside.com 2019 - 2024. All rights reserved.