Climate Change Prediction using Time Series | Python Projects | Edureka | DS Rewind - 5
Key Takeaways
Uses time series analysis to predict climate change using Python projects
Full Transcript
good morning good afternoon and good evening guys based on the time zones you all are coming from so guys before we start with the session can you all please give me a quick confirmation if you all can see my screen and hear me louding c as well great thank you for confirming everyone so my name is NJ Kya and have been working in this IT industry for more than 13 years now but before we proceed further let me quickly introduce our Eda masterclass Community with you all as well so this community of master classes was started back in 2019 and since then we have been closing into almost 32,000 members so far and in these master classes we have been conducting multiple webinars on different topics including blockchain iot artificial intelligence machine learning big data and multiple front end and backend development Technologies and the best part about these webinars are they are absolutely free of cost so there are no charges involved here and these webinars are a great are a really great platform for anyone who is looking to get into this industry vertical by learning the technology that they are interested in as a part of our discussion we are going to discuss on the climate change and how exactly that is structured so that is what we are going to focus on as we proceed further so first of all we are going to talk about the principles of the time series analysis what exactly it is and then we are going to proceed further into the handson so first of all here we are going to look at what exactly is time series data what is time series analysis time series use cases about the project why does stationarity matters and environment and tools for the project including the hon so if you talk about time stre data then what exactly it is it is a collection of observations of those obtain through repeated measurements over time and it also referred to as time stamp data is a sequence of data pointers index in time model so for example we can see here we have a data for a website visitors like for example how many visitors are there for a month and then in the park and what exactly is the temperature the average temperature recorded here so we can see here we have the number of visitors per month then we have the timeline and then we have the average temperature recorded for the yellow stent Park as a part of a Time series based data so what exactly a Time series analysis is so if we talk about the antire analysis and time series analysis is basically a statistical technique that deals with time series data or the train analysis so the time stre data means that data in is in a series of particular periods of intervals so they are going to be multiple use cases for time series that we are going to talk about as we proceed further just a moment so in terms of the use cases so there are multiple use cases for time series like we have a financial services for weather analysis for network data analysis for healthcare analysis and so on so now some may have a question what exactly makes it special because see time series is a collection of data pointers collected at constant time intervals and these are analyzed to determine the long-term Trend so as to forecast the future of or perform some other form of analysis but what exactly makes a TS different from let's say a regular aggression problem so there are two things so time series is time dependent so the basic Assumption of linear regression model that the observ observations are independent doesn't hold in this case and along with an increasing or decreasing Trend most TS against the time series have some form of seasonality trends that is variation specific to a particular time frame for for example we can see the sales of a ven jacket over time you will invariably find higher sales in winter seasons and because of the inherent properties of the T of the time series there are various steps involved in analyzing it and they are and they are again they are going to be discussed and how exactly we can work with and we can work with the entire analysis based on python so we have multiple use cases for example let's say here we are talking about stock market data of 2020 from kagle so kagle is one of the primary data sources where we can get data for almost every kind and some are available from the official apis from the companies itself so basically here we have the access to multiple data sets which can be from the a we can find data set for Aviation for banking for e-commerce for for the normal analysis based on any Tech any entertainment industry as well so these all things can be defined all right so we have classification so we have data set for almost every industry for example for coid for economics for economics we have the country region and world GDP we have World happiness report Supermarket sales we have for education sectors Healthcare data we have for different image we can say image data for visualizations for NLP for arts and entertainment so we have all the data set available and we can go ahead and explore that now this is a good repository where we can find as you can see almost 80,000 data sets are available for different use cases that we can make use of so here we are going to talk about stationary so first of all let's talk about why does stationary matters so why does stationary matters here so basically most of the time most time Ser models assume that each point is independent of of one another and the statistical properties of data should not change over time and stationary helps us better identify the driving factors as well like we have the stationary time time series and then we have a non-stationary Time series and the same data set is being used in these two different graphs and then we have environments and tools for the project so basically here we do need to have the access to dpai pandas M daytime and stats model so these are the Li is required here and we are going to work on Python programming language so now as a part of the handson we are going to work on the same file that we have the access to and let me just guide you how we can work with it so this is a notebook file that we have currently opened up so here we have to first of all import bandas as PD so first of all we are working on collab if you're comfortable with your own local jupyter notebook file then we can make use of jupyter notebook or we can make use of the other notebook file as for the requirement we can do that and for now we are going to make use of uh collab so collab doesn't have any kind of Hardware requirement in case we are having in case we don't have the access to a highend system or we are experiencing a low performance in our own system then we can gohe and make use of cab it's like an online notebook available where we can code on top of python so we can Define the libraries that we are going to make use of so first of all we have to import pandas as Speedy then from daytime we are going to import daytime and and time date then we are going to import mattli which is basically used for visualization part as PLT then dumpy as NP and then we have stats model to work on the statistical models here and then cbon which is basically an advanced visualization tool offer just like we have mlet and then we want to use in line so this line is being added here because we don't want to see the cfts being opened up in in a different window we want them to be showcased within the notebook itself that we are going to work with and then we are going to import on warnings because there are sometimes some warnings are going to be shown based on the data set and method that we are going to make use of now we don't want that so we can simply go ahead and import warnings all right so first of all before we start we have to load these libraries and then we have to go ahead and run it so for running the statement we can simply click on play and this is going to run the statement for us if if we are going to work on a you can say a visualization heavy application then there we can make use of the GPU based instance here all right so basically in case we want to change the runtime we can simply Define change runtime as suppose here we want to focus on GPU based instance in case we are going to work on multiple visualization tools then we can make use of GP based C again as you can see here now again the computer engine is currently being refreshed we can execute this again so all the major libraries required have been Creed all right so once we have done importing these then we are going to work on reading the CSV file if we have a global and temperatures by state. CSV so this is basically a data that we have the access to so in case you are going to work on collab so here we can simply goad and import the data set so here we have folder by the name of Workshop files and within Workshop files we are going to upload the temperature the global land temperature file that we have the access to because we are going to work with collab right so for colab we have to make sure that we do add the Drive Link then only we can connect if in case we are doing this locally then there's no need to connect uh we there's no need to upload our data on Google Drive we can Define simply the local path but again before we can work with it we also have to mount our Google drive with this notebook file in case you want to work on Google Drive as well so here we can click on Mount so basically a code is going to be inserted here which will say from google. cab we have we are going to import drive so first of all we have to authenticate that yes we want to use our Google drive from this account we have to allow it and once we verify it we have to get the authorization code and this code is what we have to enter here in case we are going to do this locally then there's no need of mounting this in case you want to work on Google Co we can say Kola drive then only we have to use it all right so here we can go ahead and as you can see here the drive has been mounted so now we can Define the path so our content is available under content drive drive and then under this we have my drive and under this we have a folder so we have a folder by the name of Workshop files work Workshop underscore files and then under Workshop files we have the file name by global land change so this is a file name that we have to enter AS Global lter Bri state by state. CSV so this is a the file PA that we have to Define all right so so we are going to make use of DF so PD as in pandas so P using pandas we are going to Simply read the content of this file so we can run the statement here as well we can run it and you can see the statement is currently being executed and now if you want to show the head do that means the first five rows available in this feet and here we can simply run the statement here and here we have date average temperature average temperature uncertainty and then we have state and then we have the country all right so now if you want to see the types here we can simply run the DF types so you can see here we have the objects and then we have the column and then we have the data type defined for these different columns all right and then we can go ahead and print the shape that means how much of data we have and then we can simply print if it is null then what should be the sum of the values and then we are simply going to represent the first five rows in terms of the first 100 rows being being returned as a response and now we are going to define the name so here we are going to rename certain columns as D to date average temperature to average temperature average temperature uncertainty to to confidence interval in confidence interval temperature to make sure labels are more aligned to what we are trying to achieve here and then once we have changed this we can see now the this was the ear heading right The Ear Main column and again here we have the change heading and now we are going to make use of the same date to dat date time so we we are going to convert this call into into day time format itself and then we are going to set the date and then we simply going to print the DF index so next we are going to Simply Define the different temperature changes so we have we have latest differences in terms of the countries Z have tempature we have a group P by country and then we are going to Simply find the average and then we are going to S the values based on average temperature as you can see the lowest has been for Canada then we have Russia us China Australia India and Brazil in terms of average temperature being Define and then we can simply plot this on a graph as well where we have the figure size as 94 and then we are going to Simply import as 9 forn Valu so again here we Define a simple Plot show so this entire graph is going to be plotted by using the same plot library that we have twed but again before that we can do that we have to ensure that we do run all the other data frames as well because again and we have to make sure that we do create the data frames we do go ahead and import all the data types as well then only we would be able to make use of it all right so here we are simply going to create a new data frame where we going def find the latest data frame as well suppose we want to create a temporary data frame from from 9802 2013 then we can simply create a new data frame out of the existing data frame that we already have the access to all right and then we are going to create the latest dat difference so in terms of dat we are going to define the country and the average temperature based on the new data pointers that we have as average temperature so this is going to be a new view that has been defined and then we are going to create a new graph from the same lat latest as you can see this is the latest gra that has been created and then we are going to Simply work on resampling as well so after resampling we have simply resample based on the parameters as a and then we are simply going to Simply Define the resample parameters and then we are going to plot the resample our plot by using the M plot Library we are defined the title as this one figure size and then we are going to plot temperature and here and we can see it has been continuously on a rise only it has been increasing on a per year basis and then we have the other components now let's suppose here we are looking to compare the changes in 50 years slots for example we want to see how the change has been in last 50 years so for that we are going to compare the timeline in terms of this time three Anis so first of all we have to use a resample data frame and then from that we are going to exponentially V find the Ved mean and then we are going to roll standard deviation and then we are going to create a subplots next to each other and then we are simply going to to create two different graphs here temperature graphs with rolling mean and exponentially weighted mean as well and then we are going to create a temperature graph with rolling SD where we get to find the temperature changes from 9080 to 2013 and this one is from 9080 to0 in terms ofra and again as you can see here this has been the changes from 90 80 203 and what exactly has been the original and then the rolling mean and the exponentially Ved mean and this one how exactly has been the rolling SD as well thank you so much for joining guys and have a great ahead take care bye-bye
Original Description
🔥𝐄𝐝𝐮𝐫𝐞𝐤𝐚 𝐃𝐚𝐭𝐚 𝐒𝐜𝐢𝐞𝐧𝐜𝐞 𝐰𝐢𝐭𝐡 𝐏𝐲𝐭𝐡𝐨𝐧 𝐂𝐞𝐫𝐭𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧 𝐂𝐨𝐮𝐫𝐬𝐞 : https://www.edureka.co/data-science-python-certification-course (𝐔𝐬𝐞 𝐂𝐨𝐝𝐞: 𝐘𝐎𝐔𝐓𝐔𝐁𝐄𝟐𝟎)
This Edureka video on " Climate Change Visualization ” will provide you with a comprehensive and detailed understanding of what is time series analysis and how to apply it to time series data to understand trends and patterns in the dataset.
📝Feel free to comment your doubts in the comment section below, and we will be happy to answer📝
-------𝐄𝐝𝐮𝐫𝐞𝐤𝐚 𝐎𝐧𝐥𝐢𝐧𝐞 𝐓𝐫𝐚𝐢𝐧𝐢𝐧𝐠 𝐚𝐧𝐝 𝐂𝐞𝐫𝐭𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧---------
🔵 DevOps Online Training:https://bit.ly/3r7xtvQ
🌕 AWS Online Training: https://bit.ly/3r6sawS
🔵 Azure DevOps Online Training:https://bit.ly/3r8shaX
🌕 Tableau Online Training: https://bit.ly/3LMOLGE
🔵 Power BI Online Training: https://bit.ly/3J9uOrP
🌕 Selenium Online Training: https://bit.ly/3jeSvEx
🔵 PMP Online Training: https://bit.ly/3DNgUKX
🌕 Salesforce Online Training: https://bit.ly/3j8VyxW
🔵 Cybersecurity Online Training: https://bit.ly/3LJBoGV
🌕 Java Online Training: https://bit.ly/35K5hrk
🔵 Big Data Online Training: https://bit.ly/3ugVAua
🌕 RPA Online Training: https://bit.ly/3LIqcKT
🔵 Python Online Training:https://bit.ly/3jbsAxr
🌕 Azure Online Training:https://bit.ly/3j8WOBa
🔵 GCP Online Training: https://bit.ly/3LHJb8g
🌕 Microservices Online Training:https://bit.ly/3r7Xwmt
🔵 Data Science Online Training: https://bit.ly/3r9dgFX
---------𝐄𝐝𝐮𝐫𝐞𝐤𝐚 𝐑𝐨𝐥𝐞-𝐁𝐚𝐬𝐞𝐝 𝐂𝐨𝐮𝐫𝐬𝐞𝐬---------
🔵 DevOps Engineer Masters Program: https://bit.ly/37p4goY
🌕 Cloud Architect Masters Program: https://bit.ly/35LP0SV
🔵 Data Scientist Masters Program: https://bit.ly/3NULA1q
🌕 Big Data Architect Masters Program:https://bit.ly/38qZTud
🔵 Machine Learning Engineer Masters Program:https://bit.ly/3ueP9rm
🌕 Business Intelligence Masters Program: https://bit.ly/3x9qpT5
🔵 Python Developer Masters Program:https://b
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from edureka! · edureka! · 37 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
▶
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
ChatGPT Not Working - 4 Fixes | How To Fix ChatGPT Not Working | Why Is ChatGPT Not Working |Edureka
edureka!
Advanced Java script Tutorial | JavaScript Training | JavaScript Programming | Edureka Rewind
edureka!
Java script interview question and answers | Java script training | Edureka Rewind
edureka!
OpenAI API Tutorial using Python | How to use OpenAI GPT-3 API - Ada Babbage Curie Davinci | Edureka
edureka!
What is Unsupervised Learning ? | Unsupervised Learning Algorithms| Machine Learning | Edureka
edureka!
Top 10 Applications of Machine Learning in 2023 | Machine Learning Training | Edureka Rewind - 7
edureka!
Machine Learning Engineer Career Path in 2023 | Machine Learning Tutorial | Edureka Rewind - 6
edureka!
10 Must Have Machine Learning Engineer Skills That Will Get You Hired | Edureka Rewind - 7
edureka!
Data Structures in Python | Data Structures and Algorithms in Python | Edureka | Python Live - 5
edureka!
Python Lists | List in Python | Python Training | Edureka Rewind
edureka!
Predictive Analysis Using Python | Learn to Build Predictive Models | Python Training | Edureka
edureka!
Machine Learning Tutorial | Machine Learning Algorithm | Machine Learning Engineer Program | Edureka
edureka!
How to use Pandas in Python | Python Pandas Tutorial | Python Tutorial | Edureka Rewind
edureka!
Parameters in Tableau | Tableau Parameters Examples | Tableau Tutorial | Edureka Rewind
edureka!
Top 10 Reasons to Learn Tableau in 2023 | Tableau Certification | Tableau | Edureka Rewind
edureka!
Tableau Developer Roles & Responsibilities | Become A Tableau Developer | Tableau | Edureka Rewind
edureka!
Deep Learning With Python | Deep Learning Tutorial For Beginners | Edureka Rewind
edureka!
Realtime Object Detection | Object Detection with TensorFlow | Edureka | Deep Learning Rewind - 2
edureka!
Top 20 Tableau Tips and Tricks in 20 Minutes | Tableau Tutorial | Tableau Training | Edureka Rewind
edureka!
Climate Change Prediction using Time Series | Python Projects | Edureka | DS Rewind - 5
edureka!
ReactJS Installation Tutorial | ReactJS Installation On Windows | ReactJS Tutorial | Edureka Rewind
edureka!
Phases in Cybersecurity | Cybersecurity Training | Edureka | Cybersecurity Rewind - 2
edureka!
What Is React | ReactJS Tutorial for Beginners | ReactJS Training | Edureka Rewind
edureka!
Cybersecurity Frameworks Tutorial | Cybersecurity Training | Edureka | Cybersecurity Rewind- 2
edureka!
React vs Angular 4 | Angular 2 vs React | React & Angular | ReactJS Training | Edureka Rewind - 5
edureka!
ReactJS Components Life-Cycle Tutorial | React Tutorial for Beginners | Edureka Rewind
edureka!
Ethical Hacking using Kali Linux | Ethical Hacking Tutorial | Edureka | Cybersecurity Rewind - 3
edureka!
Types Of Artificial Intelligence | Artificial Intelligence Explained | What is AI? | Edureka
edureka!
Top 10 Applications Of Artificial Intelligence in 2023 | Artificial Intelligence| Edureka Rewind
edureka!
The Future of AI | How will Artificial Intelligence Change the World in 2023? | Edureka Rewind
edureka!
What is Artificial Intelligence | Artificial Intelligence Tutorial For Beginners | Edureka Rewind
edureka!
Google Cloud IAM | Identity & Access Management on GCP | Edureka | GCP Rewind - 5
edureka!
Google Cloud AI Platform Tutorial | Google Cloud AI Platform | GCP Training | Edureka Rewind
edureka!
Projects in Google Cloud Platform | GCP Project Structure | GCP Training | Edureka Rewind
edureka!
How to Become a Data Scientist | Data Scientist Skills | Data Science Training | Edureka Rewind - 3
edureka!
Agglomerative and Divisive Hierarchical Clustering Explained | Data Science Training | Edureka Live
edureka!
Climate Change Prediction using Time Series | Python Projects | Edureka | DS Rewind - 5
edureka!
Data Science Project - Covid-19 Data Analysis | Python Training | Edureka | DS Rewind - 6
edureka!
What is Honeycode? | Introduction to Honeycode | Edureka
edureka!
Difference between Amazon AWS and Google Cloud | GCP Training Google Cloud | Edureka Live
edureka!
DevOps Lifecycle | Introduction To DevOps | DevOps Tools | What is DevOps? | Edureka Rewind
edureka!
Introduction to DevOps | DevOps Tutorial for Beginners | DevOps Tools | DevOps | Edureka Rewind
edureka!
How to Create Login System using Python | Python Programming Tutorial | Edureka Rewind
edureka!
Python Developer | How to become Python Developer | Python Tutorial | Edureka Rewind
edureka!
How to become a Data Engineer | Complete Roadmap to become a Data Engineer| Data Engineer | Edureka
edureka!
Azure Data Engineer Certification [DP 203] | How to Become Azure Data Engineer [2023] | Edureka
edureka!
Data Analyst vs Data Engineer vs Data Scientist | Data Analytics Masters Program | Edureka Rewind
edureka!
DevOps Engineer day-to-day Activities | DevOps Engineer Responsibilities | Edureka Rewind
edureka!
How to Become a DevOps Engineer? | DevOps Engineer Roadmap | Edureka | DevOps Rewind
edureka!
How to Become a Data Engineer? | Data Engineering Training | Edureka
edureka!
How To Become A Big Data Engineer? | Big Data Engineer Roadmap | Edureka Rewind
edureka!
Python Integration for Power BI and Predictive Analytics | Power BI Training | Edureka
edureka!
Power BI KPI Indicators Tutorial | Custom Visuals In Power BI | Power BI Training | Edureka Rewind
edureka!
Apache HBase Tutorial For Beginners | What is Apache HBase? | Big Data Training | Edureka Rewind
edureka!
Big Data Hadoop Tutorial For Beginners | Hadoop Training | Big Data Tutorial | Edureka Rewind
edureka!
Big Data Analytics | Big Data Analytics Use-Cases | Big Data Tutorial | Edureka Rewind
edureka!
What Is Power BI? | Introduction To Microsoft Power BI | Power BI Training | Edureka Rewind
edureka!
Triggers in Salesforce | Salesforce Apex Triggers | Salesforce Tutorial | Edureka Rewind
edureka!
How To Become A Salesforce Developer | Salesforce For Beginners| Salesforce Training Edureka Rewind
edureka!
Java ArrayList Tutorial | Java ArrayList Examples | Java Tutorial | Edureka Rewind
edureka!
Related Reads
📰
📰
📰
📰
Deploying and Configuring Apache on a RHEL/CentOS Server
Medium · DevOps
Put a Deterministic Gate Between Generated Code and Main
Dev.to · kongkong
How to Put a Local Service on the Public Internet with FRP (Without Losing Your Mind Over Config Files)
Dev.to · ChenXX
Four GitHub Actions cron timing bugs that silently broke my daily pipelines
Dev.to · MORINAGA
🎓
Tutor Explanation
DeepCamp AI