Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Answer by quasi-human for Pandas dataframe, get the row and index for a column meeting certain conditions

You can also use a np.where method as follows:

import numpy as npempty_status_idx = np.where(df.Status.isnull())[0].tolist()

[0, 2]

Viewing latest article 1
Browse Latest Browse All 3

Trending Articles