pandas -在列中查找第一个非空值 [英] Pandas - find first non-null value in column

查看:116
本文介绍了 pandas -在列中查找第一个非空值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有一个序列为NULL或一些非空值.我如何找到第一行的值不为NULL,以便可以将数据类型报告给用户.如果该值非空,则该系列中的所有值都是相同的数据类型.

If I have a series that has either NULL or some non-null value. How can I find the 1st row where the value is not NULL so I can report back the datatype to the user. If the value is non-null all values are the same datatype in that series.

谢谢

推荐答案

您可以使用 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆