Posts by Marcos Lima • 1 point
1 post
-
0
votes2
answers48
viewsA: How do I delete a line that contains letters in a dataframe?
You can find the lines that only have numbers by taking out the spaces and testing if it’s numerical df=df[ df["Dimensões"].apply( lambda x: x.replace(" ", "").isnumeric() ) ]…