Skip to content

raunak274/analyzing-weather-dataset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

analyzing-weather-dataset

Analyzing weather dataset using Numpy & Pandas

Problem Statement

We'll be working with a csv file that contains weather data for each hour in 2012. There are many interesting connections between everyday life and the weather that we will explore with the help of this dataset. Apply all the numpy and pandas skills learned so far to analyze the data.

About the Dataset- Snapshot of the Dataset:

Data_snapshot

Features: Name Description Date/Time Date & Time for each hour in the year 2012. Temp(C) Exact temperature at a given time. Dew Point Temp(C) Dew Point Temp at a given time. It is the temperature to which air must be cooled to become saturated with water vapor. Rel Hum (%) Relative Humidity at a given time. Wind Spd (km/h) Wind Speed in km/h at a given time. Visibility (km) Visibility in km at a given time. Stn Press (kPa) Station Pressure observed at that time. Weather Weather at a given time.

Instructions

Different functions that you would require to define for this project has been mentioned in the code block. All the parameters and the task, a function would do, have been mentioned there.

Load the weather_2012 data csv file and store it in weather variable. The path of the dataset has been stored in the variable path for you. Check the categorical and numerical variables. You can check it by calling categorical and numerical functions. Check the distribution of a specific value like the number of times the weather was exactly Cloudy in the given column. Feel free to check on other values. You can check it by calling the function clear with respective parameters. By using the index of the value or name of the value you can check the number of counts. Now suppose you want to check some instances based on a specific condition like when the wind speed was above 35 and visibility was 25. You can directly check it by calling the function instances_based_condition with respective parameters and store the resulting dataframe in wind_speed_35_vis_25. You have temperature data and want to calculate the mean temperature recorded by month. You can generate a pivot table that contains the aggregated values(like mean, max, min, sum, len) recorded by month. You can call the function agg_values_ina_month with respective parameters. To groupby based on a column like you want to groupby on Weather column and then aggregate the mean values of each column for different types of weather using mean. You can call the function group_values and store the resulting dataframe in mean_weather. Feel free to try on different aggregated functions like max, min, sum, len You want to convert Celsius temperature into Fahrenheit temperatures. Call the function convert to do the same.

Releases

No releases published

Packages

No packages published

Languages