How does pandas clean data elements whose values are strings in a column?

clipboard.png the value in the figure is "pass"

After

pandas reads the csv file, I want to delete the data line whose value is a string in the "kscj" column. What should I do?

Mar.05,2021

df["kscj"] = df["kscj"].astype(str)
result = df[df.kscj.str.isdigit()]
Menu