After I finished the Pandas tutorials last class, Mr. Navkal e-mailed me about next steps, linking me to a GitHub repository containing example code to fetch data from Energize's API. (Here's my fork, which has been updated past this point) The data is vast and contains detailed sensor-based information about various environmental factors of the facilities at Andover High (and some overall information about the other schools in the district).
After forking the repository and setting everything up on my computer, I started looking at the data. One file that stood out to me was ahs_power.py, which retrieved the amount of energy in kilowatts that each section of the school was using. The example code just printed out the sections in alphabetical order with their respective energy usages. Therefore, I decided to try and sort them in ascending order of how much energy they used. Not having yet made the connection that I could write to a new CSV file, I read in the data and started working on a way to sort and print the results with a two-dimensional list. At the end of this class, this sorting was still a work in progress. Comments are closed.
|
AuthorI'm a high school senior and programming enthusiast. Archives
March 2022
Categories |