Ich versuche, die Null-Werte in einem DataFrame zu finden. Obwohl ich den folgenden Beitrag von Stackoverflow gelesen habe, in dem der Prozess zum Ermitteln der Nullwerte beschrieben wird, fällt es mir schwer, das Gleiche für mein Dataset zu tun.Python Dataframe erhalten null Wert zählt
How to count the Nan values in the column in Panda Data frame
Arbeitscode:
import pandas as pd
a = ['america','britain','brazil','','china','jamaica'] #I deliberately introduce a NULL value
a = pd.DataFrame(a)
a.isnull()
#Output:
False
1 False
2 False
3 False
4 False
5 False
a.isnull().sum()
#Output
#0 0
#dtype: int64
Was mache ich falsch?
Danke. Löste mein Problem :) –