match.py - lotteph/tweedejaarsproject GitHub Wiki
The functions in this file call the Weather test and the scrape file to obtain data about solar panels and the weather at the location of these solar panels.
add_month
Adds a row of corresponding months to a panda file containing weather. It takes the weather file and the year of this weather as input and returns a new weather panda with a column containing the months.
solar_csv
Cleans solar data. Takes a panda containing solar data and returns a panda containing the cleaned panda.
weather_csv
Creates a weather panda matched to the solar data panda. Takes solar panel data and weather data both in pandas. Returns a matched weather panda.
match_data
Matches weather and solar panel data of one year of a certain postal code. Takes a postal code, a year, the sid and the id of the website where the information comes from. Returns two matches cdv's.