【发布时间】:2022-12-09 21:51:38
【问题描述】:
为什么我的数据框返回两列?我只想要一栏。我做了几件事,但结果仍然相同。 有一些类似的问题,但我没有找到任何可以帮助我的问题。
for i in Vagas:
on_click = i.get('onclick')
temp.append(on_click)
texto = str(temp)
b = {'amp;': '', 'Cadastro': 'https://extranet.ecopatio.com.br/agendamento/Cadastro'}
for x,y in b.items():
texto = texto.replace(x, y)
achado2 = texto.split('\'')[1::6]
df = pd.DataFrame(achado2)
df.to_csv('testa.csv', mode='a', header=False, index=False)```
【问题讨论】:
-
告诉我们你得到了什么额外的专栏......没有数据就像没有问题地解决问题
标签: python pandas dataframe selenium web