Remove the lines in Dataframe satisfying the condition
📁 Advanced Python Topics, pandas, jupyter
How to remove the lines in Pandas Dataframe, in which the values in the column stp == 1005092
Details:
I am engaged in data processing in Jupyter Notebook: normal distribution, spectrograms, histograms, etc. I have 1,500 thousand indexed arrays inside one file (index "STP"). There are 2 arrays that are not suitable according to the indications (clearly stand out from the remaining 1498 values), but undergo a normal distribution test, which is why they are not filtered by the program. I tried the commands data.Stp.remove(1005072), where a seven-digit number is an array index, but everything is in vain.
Code:
Cols = [' No answers yet.
Log in to leave an answer