This Python script is designed for analyzing weather statistics from CSV files. It provides various functionalities to help you gain insights into your weather data. Whether you want to calculate basic statistics, generate charts for visual analysis, or simply list the raw data, this tool has you covered.
- Minimum, Maximum, and Average Calculation: Compute the minimum, maximum, or average value for a specified column in your weather data.
- Chart Generation: Generate charts to visualize the trends in your weather data. The script uses Matplotlib to create informative and visually appealing graphs.
- Raw Data Listing: Print the raw data for the specified column, giving you a detailed view of the weather statistics in your CSV file.
Python 3.x Matplotlib library
pip install matplotlib
- Clone the repository
git clone https://github.com/your-username/Weather-Stats-Analyzer.git
cd Weather-Stats-Analyzer
- Run the Script:
python weather_stats_analyzer.py [FILE] [COLUMN] [OPERATION]
Replace [FILE], [COLUMN], and [OPERATION] with your specific CSV file, column name, and operation (e.g., min, max, avg, chart, list).
Calculate the minimum value for the "Temperature" column:
python weather_stats_analyzer.py weather_data.csv Temperature min
Generate a chart for the "Humidity" column:
python weather_stats_analyzer.py weather_data.csv Temperature min
List the raw data for the "Wind Speed" column:
python weather_stats_analyzer.py weather_data.csv "Wind Speed" list