Saving Filtered List to .CSV file in Python
I have a CSV file containing measurements of sample objects. I’ve been able to filter the list using Pandas and the Python statistics module. I’m trying to then exclude objects that are either less than 2 standard deviations or greater than 2 standard deviations from the mean and then save the final list to a new csv file. Printouts to the shell confirm the filtering and statistical calculations are working as expected. However, the new CSV file still contains all of the original objects.