Delete rows in DataFrame satisfying condition
📁 python, pandas, jupyter
How to delete rows in Pandas DataFrame where values in column STP == 1005092?
Details:
I am processing data in Jupyter notebook: normal distribution, spectrograms, histograms, etc. I have 1500 thousand indexed arrays inside one file (Index ''STP''). There are 2 arrays that do not fit the readings (clearly stand out from the other 1498 values), but pass the normal distribution test, which is why they are not filtered by the program. I tried commands like data.STP.remove(1005072), where the seven-digit number is the array index, but all in vain.
Code:
cols = ['ttt','IK05','IK06' here is the most functional calculator:
print(""результат: "", eval(input(""Введите: "")))but it is very dangerous to use
Log in to leave an answer