gpt4 book ai didi

python - 删除顶行 2 行并将成绩单放在下面

转载 作者:行者123 更新时间:2023-12-01 06:40:48 25 4
gpt4 key购买 nike

处理大型数据集。我卡在数据清理阶段

这是我到目前为止所拥有的..我只想删除看起来像前两行的“问题组和反馈”

                                    Feedback
Out[39]: Issuegroup
Accessories Nope, just make a longer charging cord :),Everything was very helpful and nice handled,Nope, you guys are doing great,From the customer's side, th...
Connectivity no suggestions. Chat experience was great!,Jane was wonderful and would recommend her to a friend, she helped me get through some troubleshooting...


and output of below and if i can view the entire content of Accessories or Connectivity since i have 4,200 comments underneath


Out[39]: transcript
Accessories Nope, just make a longer charging cord :),Everything was very helpful and nice handled,Nope, you guys are doing great,From the customer's side, th...
Connectivity no suggestions. Chat experience was great!,Jane was wonderful and would recommend her to a friend, she helped me get through some troubleshooting...

最佳答案

IIUC 使用:

df = df.rename_axis(None).rename(columns={'Feedback':'transcript'})

列名称在DataFrame中始终是必需的,因此可以将其重命名为空字符串 - 但这确实是一个糟糕的技巧,不要使用它。

关于python - 删除顶行 2 行并将成绩单放在下面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59464851/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com