我有一系列的id,我需要输入到谷歌表通过API。你知道吗
问题是:
系列
0 0000021
1 0000021
2 0000021
3 00df5461651
4 0000021
5 0077777777
Name: id, dtype: object
期望输出
string = "0000021, 0000021, 0000021, 00df5461651, 0000021, 0077777777"
代码
g_plat= cw.loc[cw.platform =="Google"]
g_plat = g_plat.id
insertRow = [ "Google", f"{year}/{month}/{day}" ,f"Google = {g_plat}
sheet.insert_row(insertRow, 2)
TypeError: Object of type Series is not JSON serializable
也许这样行得通?你知道吗
相关问题 更多 >
编程相关推荐