CodePudding user response:
The import pandas as pd
The import numpy as np
Df=pd DataFrame ({' state ': [1, 2, 3, None, 4]})
Print (np) where (df [' state '] isnull ()))
Don't need to use numpy
The import pandas as pd
Df=pd DataFrame ({' state ': [1, 2, 3, None, 4]})
Print (list (df [df [' state '] isnull ()]. The index))
CodePudding user response:
Thank you, ok.