Posts

Data Analysis and Visualization using Python!

Hello dear Learners, This is a small work on Data Analysis and Visualization for the Product data. The dataset is also created in a unique way for the learners to get different data during each execution. Some of  the basic Pandas queries are also provided. Some basic charts are also given. Have a look. Finally a simple case study with Regression is also available. Practice. Comment your doubts! Looking forward to do more explorative hands on like this!  Keep Learning! Keep Exploring! Keep Rocking folks! :)

Welcoming IPL 2023 with Python

Image
 Hello folks, As like Dhoni addressing the CSK crowd, 'Vanakkam Chennai', VANAKKAM to all my Coding Aspirants!! IPL Fever starts today. It was like 2023 has just began, one fourth of the year is over already. The next two months will compete Usain Bolt and run in thaaaat speed. Yes, its the treat to all Cricket lovers. a gang of friends turn into rival as CSK vs MI vs RCB vs soooo on. Hey Dhoni will rock. No, MI are the champions. Let's pray for RCB to win the cup this year. These are all the statements we hear all around.  Along with the IPL interest, let's enrich our Coding knowledge too with little bit of Python and Data Science. Let's have a simple Word Cloud Program with the winning speeches of Namma Thala Dhoni and our very own Hitman Rohit! The heroes of IPL Winning Teams. There is a race between these two teams to win the maximum trophies. Both are heroes to millions of people in India. People from TN support MI and people all over India chant Dhoni Dhoni!!

Power of Python

Image
 Hi enthusiasts.. This is a small initiative to make the language promulgate from a novice view to the expert view. Let us all join together to learn  Python from Scratch  to become a  Python King or Queen. Are you guys ready? Being a 90s kid, I was taught the language C in my 9th grade; followed by C++ in my 12th grade. Then the powerful Java came into my book of studies in my Under graduation. At a stage, I got perplexed, are we moving in the right track? I could arrive at the answers in a slow pace. I got clear of the logics of C in my UG final year which I was introduced in my early education before 10th. This dilemma is not only in my case, but everyone. Then I began my track of learning with the very beginning course of Programming - SCRATCH ( https://scratch.mit.edu/ ) - the software developed by MIT people  to understand the Logic. It could teach even a 8 year old kid to understand Programming. Slowly and steadily, then I got into the world of Python and started to peek into ev

Machine Learning

Trends Extraction

Create a twitter account. Sign up and sign in. Click on to the manage apps. Create a new application with name and description. Create the access token and note the Consumer token and Consumer Secret.  Refer the following link to create a Twitter API to extract tweets. with pictorial explanation. https://iag.me/socialmedia/how-to-create-a-twitter-app-in-8-easy-steps/ The package to be used to extract the current Twitter trends using R tool is, twitteR - it provides interface to the Twitter API. library(twitteR) As the next step, we have to set the WOEID (Where On Earth IDentifier). For India, the WOEID is 23424848 woeid <- 23424848 The next step is to set up the Twitter Authentication. For this, we need, API Key, API Secret, Consumer Key and Consumer Secret. api_key <- "xxxxxxx" api_secret <- "xxxxxxx" consumer_key <- "xxxxxxx" consumer_secret <- "xxxxxxx" Set up the direct authentication usin

Linear Regression - R tool vs Manual Calculations

Image
Linear Regression establishes a relationship between a dependent variable Y and one or more independent variables X using a best fit line known as Regression Line. The equation of the regression line can then be used to predict value of Y for any given X. Regression Analysis is one of  the important Statistical tool to establish the relationship between two variables. The value of the predictor variable is gathered through experiments. The value of the response variable is derived from the predictor variable.  The general mathematical equation for Linear Regression is y = ax + b Here,  y is the response variable x is the predictor variable a and b are the constants called as co - efficients. The following images show the manual method of finding the Linear Regression equations for the set of points X = ( 6, 2, 10, 4, 8) Y = (9, 11, 5, 8, 7) Let's calculate the same co efficients and fit the straight line using R. Step 1 : Lets crea

My first work with R

Image
This was the very first word I did with the help of R on 16th June 2017! Word cloud is the Visual Representation of the text data. The most used word stand out. They are easy to understand and are simple.  The packages to be used for generating word cloud are tm - for text mining SnowballC - for text stemming wordcloud - word cloud generator RColorBrewer -  for color palettes Step 1 - Install and Load the required packages The packages can be installed using the code install.packages("Package Name") For example, install.packages("tm") To load the package in our program, the code is library("Package Name") For example, library("SnowballC") Step 2 - Text Mining Set the file path to fetch the text document filepath<-"~/leader.txt"  Read the text document using the function readLines() text <- readLines(filePath) Load the data as Corpus docs <- Corpus(VectorSource(text)) Inspect