<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anshidtk on Medium]]></title>
        <description><![CDATA[Stories by Anshidtk on Medium]]></description>
        <link>https://medium.com/@anshidtk96?source=rss-a2bf5a94a4ff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QVSbKLeRYCvibY0w</url>
            <title>Stories by Anshidtk on Medium</title>
            <link>https://medium.com/@anshidtk96?source=rss-a2bf5a94a4ff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:00:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anshidtk96/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is ‘Data’ and its types]]></title>
            <link>https://medium.com/@anshidtk96/what-is-data-and-its-types-1c7debf99958?source=rss-a2bf5a94a4ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c7debf99958</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Anshidtk]]></dc:creator>
            <pubDate>Thu, 07 Sep 2023 12:27:15 GMT</pubDate>
            <atom:updated>2023-09-07T12:27:15.305Z</atom:updated>
            <content:encoded><![CDATA[<p>The term data is there in data analyst, data scientist, and data engineer. What are the very basic things we should understand about the data? Let’s have a look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*08I5_mHosoxlACdo0jaJTw.png" /><figcaption>Types of data</figcaption></figure><h4>Structured data:</h4><p>Data that can be easily presented in tabular form. For example, data on the scores of students in a class may include student roll numbers, names, math marks, chemistry marks, and physics marks as column names. The first entry typically corresponds to the student with roll number 1, and so on. In structured data, each row represents a student, and each column represents a specific attribute. This data is considered structured because each row has a fixed number of entries, and each column represents a particular piece of information. For instance, in the math marks column, you would expect numeric values between zero and 100. If you encounter a date in the marks column, it’s a clear indication that something went wrong. Structured data is characterized by properties that unify entries and allow for easy organization. Examples include Excel files and databases.</p><h4>Unstructured data:</h4><p>Data that is not represented in tables. For example, when collecting images of different animals, each image will be unique, and there are no repeating properties. If one entry has a tail, there is no guarantee that the next entry will have a tail. If one entry has feathers, it doesn’t mean the next one will. This type of data is referred to as unstructured data. Examples include audio files, image files, video files, etc.</p><p><strong><em>Data analysts deal with structured data</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUe3m5sgiuXDIpaBVrlgJQ.png" /><figcaption>Types of structured data</figcaption></figure><p><strong><em>We already know that structured data can be represented as a table and let’s consider our student mark table as an example with two additional columns, Student country and overall grade of a student.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*NZHrv5if7qJeokT7ywyWiA.jpeg" /><figcaption>Student table example</figcaption></figure><h4>Categorical data:</h4><p>Data that helps to group observations into certain categories. For example, each student belongs to a certain country. So the country column categories students. We can say the data in the country column is categorical. In the same way, grades also categorize or group students based on grade. Each student belongs to a particular grade, so data in the grade column is also categorical.</p><p>The categorical data is again classified into Nominal data and Ordinal data</p><p>1 . Nominal data:</p><p>Categorical data which doesn’t have any inherent order associated with it. For example in the student data, the country column is an example of nominal data. The country column categorizes the students, But we cannot say that the country India is better than the UK or vice versa.</p><p>2 . Ordinal data:</p><p>Categorical data with inherent order associated with it is called ordinal data. ‘ordinal’ means there is an order associated. In the student table, the grade column has categories, but we know that grade A is better than grade B which is better than grade C. So categorical data with some order is called ordinal data.</p><h4>Numeric data:</h4><p>Data that is quantified using numbers is called numeric data. Numeric data is of mainly two kinds, discrete or continuous.</p><p>1 . Discrete:</p><p>The data consists of distinct and separate numeric values are called discrete data. count of students in a class is an example.</p><p>2 . Continuous:</p><p>Data that can take any value between a range is called continuous data. There can be infinite possibilities for continuous data or it is not countable.</p><p>There are two types of continuous data,</p><p>a. Interval:</p><p>Continuous data which lack a true zero is called interval data. Addition and subtraction of interval data makes sense but not division or multiplication. For example, 20°C is not “twice as hot” as 10°C. This is because 0°C doesn’t mean there is no temperature.</p><p>b. Ratio:</p><p>Continuous data with true zero values are called ratio data. For example the height of a person. A 180 cm person is double the size of a 90 cm person. In the student table marks correspond to ratio data because 0 marks mean there is no mark and 90 marks are twice as good as 45 marks.</p><p><em>This article explains types of data in a very concise and comprehensive manner from a beginner’s perspective. There are possible other classifications also.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c7debf99958" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data analyst portfolio project]]></title>
            <link>https://medium.com/@anshidtk96/data-analyst-portfolio-project-bf35f349047?source=rss-a2bf5a94a4ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf35f349047</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[data-cleaning]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Anshidtk]]></dc:creator>
            <pubDate>Sun, 27 Aug 2023 20:17:45 GMT</pubDate>
            <atom:updated>2023-08-27T20:17:45.015Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Scraping Job Insights from naukri.com</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pxFQaOeSn0Xymrn4zMOr-g.png" /><figcaption>Final Dashboard</figcaption></figure><p>Are you curious about what’s happening in the job market? Do you want to gain insights into different job roles, required skills, and top recruiters? Look no further! In this blog post, we’ll walk through a fascinating project that involves web scraping, data processing, and interactive data visualization. Our focus? naukri.com, a popular job portal.</p><h4>Project Overview</h4><p>The primary objective of this project is to scrape job listings from Naukri.com, process the data, and analyze it to uncover meaningful insights about various job roles, skills in demand, and top recruiters. The project is divided into two major parts:</p><p><strong>1. Web Scraping</strong></p><p>We kick off by using the powerful combination of Selenium and Beautiful Soup to scrape job listings from Naukri.com. The information we collect includes job title, company, salary, location, required skills, and more. The scraping process is intelligently timed to ensure a respectful interaction with the website.</p><p><strong>2. Data Analysis and Visualization</strong></p><p>With our data in hand, we transition to Tableau, a data visualization tool. We import the collected data and create an engaging dashboard to present our findings. The dashboard showcases the distribution of jobs across different locations, highlights popular job titles, breaks down required skills, and identifies top recruiters.</p><h4>Prerequisites</h4><p>Before embarking on this exciting journey, make sure you have the following tools and libraries installed</p><ul><li>Python with pip</li><li>Beautiful Soup 4 (`pip install bs4`)</li><li>Selenium (`pip install selenium`)</li><li>Google Chrome Driver</li><li>Tableau (for analysis and dashboard creation)</li></ul><ul><li><a href="https://medium.com/swlh/get-started-with-selenium-webdriver-in-under-5-minutes-f9b91e2e9539">Get Started with Selenium WebDriver in Under 5 Minutes</a></li><li><a href="https://medium.com/featurepreneur/how-to-get-started-with-beautiful-soup-d98067ff064f">How to get started with Beautiful Soup?</a></li></ul><h4>Scraping</h4><p>Importing necessary libraries</p><pre>from selenium import webdriver<br>from bs4 import BeautifulSoup<br>import time<br>import pandas as pd</pre><p>Now go to naukri.com and search for the keyword you are interested in, Here I am analyzing the Data Analyst job trend. Customize the below code</p><pre>result_list=[]<br>df_list=[]<br>driver=webdriver.Chrome()<br>for i in range(1,101):<br>    url=f&#39;https://www.naukri.com/data-analyst-jobs-{i}?k=data%20analyst&amp;experience=1&#39;<br>    driver.get(url)<br>    if i==1:<br>        time.sleep(20)<br>    else:<br>        time.sleep(5)<br>        soup = BeautifulSoup(driver.page_source,&#39;html.parser&#39;)<br>        result=soup.find(&#39;div&#39;,class_=&#39;list&#39;)<br>        df_list.append(to_data_frame(result))<br>driver.close()</pre><p>Here to_data_frame(result) is a function that converts the HTML data in each page to DataFrame and this DataFrame is stored in the result_list.The above code store data from 100 pages where each page contains 20 job pieces of information.</p><p>The user-defined function to_data_frame(result) is as follows</p><pre>def to_data_frame(result):<br>    title_=[]<br>    rating_=[]<br>    company_=[]<br>    no_reviews_=[]<br>    experience_=[]<br>    salary_=[]<br>    location_=[]<br>    description_=[]<br>    skills_=[]<br>    from_date_=[]<br>    l=result.find_all(&#39;article&#39;,class_=&quot;jobTuple&quot;)<br>    for test in l:<br>        title=test.find(&#39;a&#39;, class_=&#39;title ellipsis&#39;).text if test.find(&#39;a&#39;, class_=&#39;title ellipsis&#39;) else &#39;None&#39;<br>        if test.find(&#39;div&#39;,class_=&quot;companyInfo subheading&quot;):<br>            rating=test.find(&#39;div&#39;,class_=&quot;companyInfo subheading&quot;).find(class_=&quot;starRating fleft&quot;).text if test.find(&#39;div&#39;,class_=&quot;companyInfo subheading&quot;).find(class_=&quot;starRating fleft&quot;) else &#39;None&#39;<br>            company=test.find(&#39;div&#39;,class_=&quot;companyInfo subheading&quot;).find(class_=&quot;subTitle ellipsis fleft&quot;).text if test.find(&#39;div&#39;,class_=&quot;companyInfo subheading&quot;).find(class_=&quot;subTitle ellipsis fleft&quot;) else &#39;None&#39;<br>            No_reviews=test.find(&#39;div&#39;,class_=&quot;companyInfo subheading&quot;).find(class_=&quot;reviewsCount fleft&quot;).text if test.find(&#39;div&#39;,class_=&quot;companyInfo subheading&quot;).find(class_=&quot;reviewsCount fleft&quot;) else &#39;None&#39;<br>        else:<br>            rating,company,No_reviews=(&#39;None&#39;,&#39;None&#39;,&#39;None&#39;)<br>        if test.ul:<br>            experience=test.ul.find(class_=&quot;ellipsis fleft expwdth&quot;).text if test.ul.find(class_=&quot;ellipsis fleft expwdth&quot;) else &#39;None&#39;<br>            salary=test.ul.find(class_=&quot;ellipsis fleft&quot;).text if test.ul.find(class_=&quot;ellipsis fleft&quot;) else &#39;None&#39;<br>            location=test.ul.find(class_=&quot;ellipsis fleft locWdth&quot;).text if test.ul.find(class_=&quot;ellipsis fleft locWdth&quot;) else &#39;None&#39;<br>        else:<br>            experience,salary,location=(&#39;None&#39;,&#39;None&#39;,&#39;None&#39;)<br>        description=test.find(class_=&quot;ellipsis job-description&quot;).text if test.find(class_=&quot;ellipsis job-description&quot;) else &#39;None&#39;<br>        skill_list=[]<br>        if test.find(&#39;ul&#39;,class_=&quot;tags has-description&quot;):<br>            skills_n=test.find(&#39;ul&#39;,class_=&quot;tags has-description&quot;).find_all(&#39;li&#39;,class_=&quot;fleft dot&quot;)<br>            for i in skills_n:<br>                skill_list.append(i.text)<br>        else:<br>            skill_list.append(&#39;None&#39;)<br><br>        release_date=test.find(class_=&quot;fleft postedDate&quot;).text if test.find(class_=&quot;fleft postedDate&quot;) else &#39;None&#39;<br>        title_.append(title)<br>        rating_.append(rating)<br>        company_.append(company)<br>        no_reviews_.append(No_reviews)<br>        experience_.append(experience)<br>        salary_.append(salary)<br>        location_.append(location)<br>        description_.append(description)<br>        skills_.append(skill_list)<br>        from_date_.append(release_date)<br>    df=pd.DataFrame({&#39;title&#39;:title_,&#39;rating&#39;:rating_,&#39;company&#39;:company_,&#39;reviews&#39;:no_reviews_,&#39;experience&#39;:experience_,&#39;salary&#39;:salary_,&#39;location&#39;:location_,&#39;description&#39;:description_,&#39;skills&#39;:skills_,&#39;from_date&#39;:from_date_})<br>    return df</pre><p>Now we have the DataFrames in the result_list, We can concatenate to a big DataFrame</p><pre>df=pd.concat(df_list,ignore_index=True)</pre><h4>Data Cleaning</h4><p>Now comes the hard part! cleaning the data</p><ol><li>Dealing with duplicates and dropping unnecessary columns</li></ol><pre>df.duplicated().sum()<br>#This will show an error since there is a list in the skills column,convert <br>#that list to tuple as a workaround<br>df.skills=df.skills.apply(lambda x: tuple(x))<br>df.drop_duplicates(inplace=True)<br>df.drop(&#39;description&#39;,axis=1,inplace=True)</pre><p>2. Creating a new column job _id and storing the DataFrame as a csv file</p><pre>df.reset_index(inplace=True)<br>df.rename({&#39;index&#39;:&#39;job_id&#39;},axis=1,inplace=True)<br>df.to_csv(&#39;raw_cleaned_data.csv&#39;)</pre><p>3. The location column contains more than one value. We have to break down these values into single raws to have a better analysis. For this, we have to duplicate each job as the number of times the different locations for the job and assign each location to a single raw. This is achieved by</p><pre>location_list=df[&#39;location&#39;].apply (lambda x : x.split(&#39;,&#39;))<br># Now we create duplicate job entries<br>df_location=df.loc[df.location.index.repeat(location_list.apply(len))]<br>loc_list=[]<br>for sublist in location_list:<br>    for loc in sublist:<br>        loc_list.append(loc)<br>df_location[&#39;location&#39;]=loc_list<br>df_location[&#39;location&#39;]=df_location[&#39;location&#39;].str.strip()<br>df_location.reset_index(drop=True)<br># A different name for a single location is separated by &#39;/&#39;, we only need first value.<br>df_location.location=df_location.location.apply(lambda x: x.split(&#39;/&#39;)[0]).apply(lambda x: x.split(&#39;(&#39;)[0]).str.strip()<br># The name Bengaluru is given in different form and we merge all of the by reg ex<br>pattern=r&#39;B[ae]ngal[ou]r[ue]&#39;<br>values_to_replace=df_location[&#39;location&#39;][df_location[&#39;location&#39;].str.contains(pattern)].unique()<br>df_location[&#39;location&#39;].replace(values_to_replace,&#39;Bengaluru&#39;,inplace=True)</pre><p>4. Creating a new csv file loc_table.csv with job id and locations</p><pre>loc_table=df_location[[&#39;job_id&#39;,&#39;location&#39;]]<br>loc_table.to_csv(&#39;loc_table.csv&#39;,index=False)</pre><p>5. In the skills column there are multiple entries. We split these values into single raws as we did for the location column</p><pre>df_skills=df<br>skill_individual_list=[]<br>for skilltuple in df_skills[&#39;skills&#39;]:<br>    for skill in skilltuple:<br>        skill_individual_list.append(skill)<br>skill_individual_list<br>df_skills=df_skills.loc[df_skills.skills.index.repeat(df_skills.skills.apply(len))]<br>df_skills[&#39;skills&#39;]=skill_individual_list<br># Combining similar skills using pattern matching<br>pattern2=r&#39;[Aa]naly[s]?[ti]?s?&#39;<br>alalyst_skills=df_skills[&#39;skills&#39;].loc[df_skills[&#39;skills&#39;].str.contains(pattern2)].unique()<br>df_skills[&#39;skills&#39;].replace(alalyst_skills,&#39;Analytics skills&#39;,inplace=True)<br>df_skills[&#39;skills&#39;].replace({&#39;Excel&#39;:&#39;Advanced Excel&#39;,&#39;VLOOKUP&#39;:&#39;Advanced Excel&#39;},inplace=True)</pre><p>6. Now create a new DataFrame with job_id and skills. Then store it in the skills_table.csv</p><pre>skills_table=df_skills[[&#39;job_id&#39;,&#39;skills&#39;]]<br>skills_table.to_csv(&#39;skills_table.csv&#39;,index=False)</pre><h4>Visualization using Tableau</h4><ol><li><strong>Connecting data to Tableau</strong></li></ol><p>Now we have 3 csv files with job_id as a common column. We connect this data to Tableau and make a relationship based on job_id column.</p><figure><img alt="How to connect the csv files to tableau" src="https://cdn-images-1.medium.com/max/1024/1*AfEtKUS1tfUvNPqUFPV3UA.jpeg" /><figcaption>Connecting csv files to Tableau</figcaption></figure><p>2. <strong>Location Map</strong></p><p>A map showcasing the count of jobs in various locations. The size of each dot is proportional to the number of jobs available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKcbuVL-dCUefh4O6Z2l3g.png" /><figcaption>Location wise jobs</figcaption></figure><p>3. <strong>Tree Map of Job Titles</strong></p><p>This visualization presents a hierarchical breakdown of different job roles. The area of each tile corresponds to the prevalence of the role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ahC8r7wd_8Y-4t9aMBXzMQ.png" /><figcaption>Most wanted positions</figcaption></figure><p>4. <strong>Skills in Demand</strong></p><p>We dive into the skills required for each job title. This breakdown allows us to understand the skills that are most sought-after.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wVzOKnHUcaQTwZ5sCMaIow.png" /></figure><p>5. <strong>Top Recruiters</strong></p><p>Who are the key players in different job sectors? Our dashboard identifies and ranks top recruiters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GQHW3Ox8X4OQIoNnLcF6Lg.png" /></figure><p>All these visualizations are interactive, enabling you to explore the data and draw insights tailored to your curiosity.</p><p>6.<strong> Final dashboard</strong></p><p>We combine all the sheets to create a final dashboard. Here with the help of parameters, we can control the visualization. As we move the slider to the right more items will appear on the graph</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pxFQaOeSn0Xymrn4zMOr-g.png" /></figure><h4>Useful links</h4><p><a href="https://public.tableau.com/app/profile/anshid.t.k/viz/Naukriblended/Naukridashboard">Tableau public dashboard</a></p><p><a href="https://github.com/anshidthariyakkodan/Naukri_webscraping_dashboard">Full code</a></p><p><a href="https://www.linkedin.com/in/anshid-t-k">linkedin</a></p><h4>The Ethical Edge</h4><p>As responsible data enthusiasts, it’s essential to mention that we’ve meticulously adhered to ethical web scraping practices. We respect Naukri.com’s terms of use and ensure our scraping process doesn’t cause any harm or inconvenience.</p><h4>Conclusion</h4><p>In this enthralling project, we embarked on a journey of data extraction, processing, and visualization. By scraping job listings from Naukri.com and presenting the insights through Tableau visualizations, we’ve gained valuable insights into the job market landscape. From location distribution to top recruiters, our interactive dashboard empowers us to make informed decisions and stay ahead in the game.</p><p>Ready to dive into the world of data-driven job insights? Fire up your coding environment, get your tools ready, and embark on this fascinating project. Happy coding, data explorers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf35f349047" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>