Git Product home page Git Product logo

weather_patterns's Introduction

Weather Analysis

This project demonstrates how to analyze a weather dataset using both Python and SQL. The dataset contains various weather attributes such as temperature, humidity, wind speed, and visibility. The project is divided into two parts:

Part 1: Python Analysis
Part 2: SQL Analysis

Part 1: Python Analysis

Objectives

  1. Find all records where the weather was exactly clear.
  2. Find the number of times the wind speed was exactly 4 km/hr.
  3. Check if there are any NULL values present in the dataset.
  4. Rename the column "Weather" to "Weather_Condition."
  5. What is the mean visibility of the dataset?
  6. Find the number of records where the wind speed is greater than 24 km/hr and visibility is equal to 25 km.
  7. What is the mean value of each column for each weather condition?
  8. Find all instances where the weather is clear and the relative humidity is greater than 50, or visibility is above 40.
  9. Find the number of weather conditions that include snow.

Implementation

The analysis uses the pandas library to load and manipulate the dataset. Various operations such as filtering, aggregating, and checking for null values are performed to extract meaningful insights from the data.

weather.ipynb

Part 2:SQL Analysis

Objectives

  1. Find all records where the weather was exactly clear.
  2. Find the number of times the wind speed was exactly 4 km/hr.
  3. Check if there are any NULL values present in the dataset.
  4. Find the mean visibility of the dataset.

Implementation

The dataset is loaded into a SQLite database, and SQL queries are used to extract insights from the data.

 weather.py
 weather_data.db

Requirements

  • Python
  • pandas
  • sqlite3

How to Run

  1. Clone the repository.
  2. Ensure you have the necessary Python libraries installed (pandas, sqlite3).
  3. Run the Python script to perform the analysis.

weather_patterns's People

Contributors

suzan97 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.