pandas / 1.4.0 / reference / api / pandas.dataframe.first_valid_index.html /

pandas.DataFrame.first_valid_index

DataFrame. first_valid_index ( ) [source]

Return index for first non-NA value or None, if no NA value is found.

Returns
scalar :type of index

Notes

If all elements are non-NA/null, returns None. Also returns None for empty Series/DataFrame.

© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.4.0/reference/api/pandas.DataFrame.first_valid_index.html