sorting moduleΒΆ

This script functions as a sorting and filtering program for Excel files containing s-tilde and vector data. Usage at command line: py sorting.py filename.csv output_filename.csv Make sure to include the file extensions at both parts.

The program uses pandas to read in a .csv file as a dataframe. It then sorts the dataframe by absolute value of s-tilde, maintaining the sign of s-tilde. At the end it outputs a new .csv file with the desired number of s-tilde values.