I have a huge data frame, and I want to calculate the correlation between some columns. The problem is those columns contain strings here and there, which prevents me from such a calculation. How can I delete the rows that contain strings, just in a certain column? Note: I don't know what the strings look like, there are many, and I need just a line of code that deletes them all together.
This is what I tried, didn't work for some reason:
df= df[df['column_name'].apply(lambda x: str(x).isdigit())]