gpt4 book ai didi

python - 如何从行中删除 df 中的 nan 而不会丢失整行?

转载 作者:行者123 更新时间:2023-12-01 10:54:46 26 4
gpt4 key购买 nike

G'day,如何在不丢失整行的情况下删除 nan 值?
这是我的df好像。

enter image description here

我试过 pandasdf = schule.dropna()但这删除了行中的所有内容。

但我必须保留这些值,因为最后,我希望它们向上。

enter image description here

最佳答案

它可能会有所帮助。你可以试试看 !!!!
enter image description here

关于python - 如何从行中删除 df 中的 nan 而不会丢失整行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60261229/

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