28 April 2018 4 7K Report

I have a text file which shows the daily temperature of a specific location in 20 years. Therefore, there are total 365x20=7300 data. What should I do in python if I want to print only the largest 18 value per each 365 data? Therefore, the output file should have 18x20= 360 data. As I am new to python, I appreciate it if a suggestion of a possible code including how to import and output the file could be provided.

Thank you very much and the text file is attached below.

More Li Andy's questions See All
Similar questions and discussions