<?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 Suraj Gusain on Medium]]></title>
        <description><![CDATA[Stories by Suraj Gusain on Medium]]></description>
        <link>https://medium.com/@soorajgusain786?source=rss-c3bc7ae77b3c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*acIyhKsMBNSqMmU0</url>
            <title>Stories by Suraj Gusain on Medium</title>
            <link>https://medium.com/@soorajgusain786?source=rss-c3bc7ae77b3c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 16:57:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@soorajgusain786/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[Calculated Columns VS Measure IN DAX]]></title>
            <link>https://medium.com/@soorajgusain786/calculated-columns-vs-measure-in-dax-6364ea9457d6?source=rss-c3bc7ae77b3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6364ea9457d6</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[dax]]></category>
            <category><![CDATA[data-visualisation]]></category>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[power-bi-tutorials]]></category>
            <dc:creator><![CDATA[Suraj Gusain]]></dc:creator>
            <pubDate>Wed, 11 Oct 2023 07:07:44 GMT</pubDate>
            <atom:updated>2023-10-11T07:07:44.144Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/317/0*6JIrHOsbpEsGmg3J" /></figure><ol><li><strong>A Calculated Column</strong> is a new column created from two or more existing columns</li><li>It is calculated row by row in the data table called row context</li><li><strong>A calculated column is often used as an intermediate step to obtain a final result</strong></li><li><strong>It is calculated at the time of refreshing the memory</strong></li><li><strong>Not recalculated when filter changes on the dashboard</strong></li><li><strong>Pre-calculated and stored in the memory.</strong></li><li><strong>Consumes memory</strong></li><li><strong>Stored in memory</strong></li></ol><p><strong>When to use the calculated column?</strong></p><ol><li>Use the value as a filter condition in a DAX query</li><li>Use the value in rows or columns of a pivot table</li><li>Use the value in a slicer.</li></ol><p><strong>Measure</strong> are usually aggregations, not pre-calculated</p><ol><li>Can be reused in other measures</li><li>The measure does not live in your dataset, rather it is calculated on the fly when called upon</li><li>Measures recalculate each time the user changes a filter and cause your report to respond slowly</li><li>Measure is by default filter context</li><li>Consumes CPU</li><li>It is not stored in the memory</li></ol><p><strong>When to use Measure</strong></p><ol><li>Use a value that reflects a user selection of filters, slicers, or highlighted visuals</li><li>Calculate a ratio</li><li>Calculate a percentage</li></ol><p><strong>Two types of Measure :</strong></p><p>Explicit Measures:</p><ul><li>User-Defined: Explicit measures are measures that you create explicitly by defining a calculation using DAX (Data Analysis Expressions) in Power BI.</li><li>Created by Users: Users define the logic and calculations for explicit measures, customizing them according to their specific requirements.</li><li>Visible in Fields List: Explicit measures appear as separate items in the Fields list in Power BI, clearly labeled and available for users to drag and drop into visuals.</li><li>Stored Measures: Explicit measures are stored in the data model and can be reused across multiple reports and visuals.</li><li>Calculated Using DAX Functions: Users can create explicit measures using various DAX functions such as SUM, AVERAGE, CALCULATE, etc.</li><li>Provide Precise Control: Explicit measures offer precise control over calculations and enable users to perform complex operations on the data.</li></ul><p><strong>Implicit Measures:</strong></p><ul><li>Auto-Generated: Implicit measures are automatically generated by Power BI based on the numeric fields in your dataset when you drag and drop them into visualizations.</li><li>Automatically Aggregated: When you drag a numeric field into a visualization, Power BI automatically aggregates the data (e.g., SUM or COUNT) based on the visualization type.</li><li>Quick Aggregation: Implicit measures provide a quick way to visualize data without requiring users to create custom calculations explicitly.</li><li>Limited Control: Users have limited control over implicit measures. While they are convenient for quick visualizations, they might not cover specific business logic or calculations.</li><li>Common Aggregations: Implicit measures commonly include basic aggregation functions like SUM, COUNT, AVERAGE, MIN, and MAX.</li><li>Not Stored in the Data Model: Implicit measures are not stored in the data model and are specific to the visualization where they are used</li></ul><p>Thank you for taking the time to read the article. I appreciate your attention and feedback.”</p><p>If you found this article helpful, please consider sharing it with others who might benefit from it. Your support in spreading the word is greatly appreciated.”</p><p>Connect me on <a href="https://www.linkedin.com/in/suraj020/">Linkedin</a></p><p>Connect me on <a href="https://github.com/SurajGusain0007">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6364ea9457d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Slowly Changing Dimensions with Simple Examples]]></title>
            <link>https://medium.com/@soorajgusain786/understanding-slowly-changing-dimensions-with-simple-examples-b04cf8e1a292?source=rss-c3bc7ae77b3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b04cf8e1a292</guid>
            <category><![CDATA[scd-type-2]]></category>
            <category><![CDATA[scd]]></category>
            <category><![CDATA[data-engineer]]></category>
            <category><![CDATA[data-ware-housing]]></category>
            <category><![CDATA[scd-type-1]]></category>
            <dc:creator><![CDATA[Suraj Gusain]]></dc:creator>
            <pubDate>Sat, 26 Aug 2023 07:40:32 GMT</pubDate>
            <atom:updated>2023-08-26T07:40:32.610Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VOh3i0cVeSsXR4GF.jpg" /></figure><p>Welcome to a realm where we explore the Slowly Changing Dimensions (SCDs), the backbone of maintaining historical records and understanding data transformations over time.</p><p>Before starting (SCDs) first, let me tell you There are two ways to extract the data from the source system to the staging/storage area</p><ol><li>Incremental Load</li><li>Full Load</li></ol><p>When it comes to managing and updating data in databases, two terms frequently come up: “Incremental Load” and “Full Load.” These concepts are vital in maintaining accurate and up-to-date information in your data storage. Let’s dive into these terms and illustrate them with simple examples</p><h4>What is Incremental Load?</h4><p>Incremental Load refers to the process of selectively updating only the new or changed data in a dataset since the last update. Instead of reloading the entire dataset, you identify the modifications that have occurred and apply only those changes. This method is efficient, as it saves time and resources compared to reloading all the data.</p><h4>Example of Incremental Load:</h4><p>Imagine you have an e-commerce database that stores customer orders. Each day, new orders are added, and sometimes existing orders are updated. With incremental load, you would only extract and load the new orders from the day and the changes to existing orders. This way, you’re only handling the modifications, making the process faster and consuming fewer resources.</p><h4>What is a Full Load?</h4><p>Full Load, on the other hand, involves reloading the entire dataset from source to target, regardless of whether any changes have occurred. This ensures that the target dataset is completely refreshed and accurate. While a full load provides a clean slate, it can be time-consuming and resource-intensive, especially when dealing with large datasets.</p><h4>Example of Full Load:</h4><p>Let’s say you’re managing a product inventory system. You perform a full load every week, where you extract all product data from your source system and load it into your database, replacing the existing data. This guarantees that your database accurately reflects the most recent product information, but it also requires more time and resources than incremental loading.</p><h4>WHEN TO CHOOSE:</h4><p>INCREMENTAL LOAD:</p><ol><li>Huge data</li><li>Frequency load is a huge</li><li>Have incremental identifier column</li><li>Preserves historical data</li><li>Loads only changed or new data-Updates</li></ol><p>FULL LOAD:</p><ol><li>Less Data</li><li>Frequency of load is less</li><li>Do not have an incremental identifier column</li><li>History/one-time load</li><li>Starts fresh with each load</li><li>Reloads entire dataset-updates</li></ol><h3>What are Slowly Changing Dimensions (SCDs)?</h3><p>Slowly Changing Dimensions refer to the process of handling changes to data in a dataset over time, especially when dealing with historical records. When data changes in a database or dataset, it can be classified into different types, commonly known as SCD types. These types help us understand how to manage the changes effectively. There are three main SCD types:</p><blockquote>When we load the data into the data warehouse there are three ways to do this.</blockquote><blockquote>SCD-1 — Latest Information</blockquote><blockquote>SCD-2 — Current data+History data</blockquote><blockquote>SCD-3 — current data+Recent data</blockquote><p>Type 1 SCD: In this type, when a change occurs, the old data is simply overwritten with the new data. Historical information is lost, and only the most recent data remains. This is useful when historical data is not important, and you’re only interested in the latest information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*2XJGRjjaEP9sWB3KKHmAtQ.png" /></figure><p>Type 2 SCD: Here, when a change occurs, instead of overwriting the old data, a new record is added to the dataset. This preserves historical information, allowing you to track how the data has changed over time. Typically, an additional column, like a version number or timestamp, is added to help identify the latest and historical records.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*XbUtMEJyAVaZWUkrGrinVw.png" /></figure><p>Type 3 SCD: In this type, only limited historical data is maintained. Instead of creating entirely new records, some attributes are updated to reflect the changes while retaining old values in other columns. This method strikes a balance between preserving history and keeping the dataset manageable</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*hBCFUWV_xoYtFFwSlggcAw.png" /></figure><p>In Conclusion:</p><p>Slowly Changing Dimensions might sound complex, but they’re essential for maintaining accurate historical data and making informed decisions based on changes over time. The choice of which SCD type to use depends on the specific needs of your analysis and the importance of historical data. So, the next time you’re dealing with changing data, remember that SCDs offer a structured way to manage those changes without losing valuable historical insights</p><p>Thank you for taking the time to read the article. I appreciate your attention and feedback.”</p><p>If you found this article helpful, please consider sharing it with others who might benefit from it. Your support in spreading the word is greatly appreciated.”</p><p>Connect me on <a href="https://www.linkedin.com/in/suraj020/">Linkedin</a></p><p>Connect me on <a href="https://github.com/SurajGusain0007">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b04cf8e1a292" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Unlocking Business Insights: The Power of Data Warehouses! ]]></title>
            <link>https://medium.com/@soorajgusain786/unlocking-business-insights-the-power-of-data-warehouses-8967683bae79?source=rss-c3bc7ae77b3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8967683bae79</guid>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[data-ware-housing]]></category>
            <category><![CDATA[data-engineer]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[etl]]></category>
            <dc:creator><![CDATA[Suraj Gusain]]></dc:creator>
            <pubDate>Fri, 25 Aug 2023 11:38:13 GMT</pubDate>
            <atom:updated>2023-08-25T11:38:13.334Z</atom:updated>
            <content:encoded><![CDATA[<h3>Databases and RDBMS</h3><p>A database is a structured collection of data organized into rows and columns, typically presented as tables. In a Relational Database Management System (RDBMS), data is stored in tables, and relationships between tables are established using primary keys and foreign keys.</p><ul><li>Primary Keys (P.K.): These are unique identifiers for records in a table. They must have both uniqueness and non-null constraints.</li><li>Foreign Keys (F.K.): When a primary key column from one table is present in another table, it becomes a foreign key. It establishes relationships between tables.</li></ul><h3>Data Warehousing</h3><p>Data warehousing involves storing and organizing large volumes of data for business intelligence activities, such as reporting and analysis. Key characteristics of data warehousing include:</p><ul><li>Subject-Oriented: Data is categorized into subjects or areas of interest, making it easier to focus on specific aspects of the business.</li><li>Time-Variant: Historical data is stored, enabling analysis of trends and changes over time.</li><li>Non-Volatile: Once loaded, data is not frequently updated; new data is added through regular ETL (Extract, Transform, Load) processes.</li></ul><h3>Star Schema</h3><p>The star schema is a data warehousing design that simplifies data analysis. It includes:</p><ul><li>Fact Table: Central table containing metrics or measures, linked to dimension tables through keys.</li><li>Dimension Tables: Supporting tables with descriptive attributes related to the measures in the fact table.</li></ul><ol><li>A centralized fact table with measures.<br>2. Denormalized structure, often with flat dimension tables.<br>3. Fewer joins, resulting in simpler and faster queries.<br>4. Easier to understand and maintain for users.<br>5.Less complex to design and implement<br>6. Less storage space compared to the snowflake schema.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*Zjl0D5Sx21cXRO0S.png" /></figure><h3>Snowflake Schema</h3><p>The snowflake schema is another data warehousing design that’s more normalized compared to the star schema. It features:</p><ul><li>Fact Table: Central table with measures, connected to normalized dimension tables.</li><li>Dimension Tables: Some dimension tables are normalized, split into related tables to avoid redundancy.</li></ul><ol><li>Centralized fact table with measures.<br>2. Normalized structure, with some dimension tables split into multiple related tables.<br>3. More joins, lead to slightly slower query performance compared to the star schema.<br>4. Can be more complex for users to navigate due to additional relationships.<br>5. Requires more effort in design and maintenance due to its normalized structure</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wnYjH_DHQdd-w_p-.png" /></figure><p>Thank you for taking the time to read the article. I appreciate your attention and feedback.”</p><p>If you found this article helpful, please consider sharing it with others who might benefit from it. Your support in spreading the word is greatly appreciated.”</p><p>Connect me on <a href="https://www.linkedin.com/in/suraj020/">Linkedin</a></p><p>Connect me on <a href="https://github.com/SurajGusain0007">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8967683bae79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Marketing Insights-PowerBiProject]]></title>
            <link>https://medium.com/@soorajgusain786/marketing-insights-powerbiproject-f917ffd0e1df?source=rss-c3bc7ae77b3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f917ffd0e1df</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[buisness-intelligence]]></category>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[data-analyst]]></category>
            <dc:creator><![CDATA[Suraj Gusain]]></dc:creator>
            <pubDate>Mon, 21 Aug 2023 07:16:04 GMT</pubDate>
            <atom:updated>2023-08-21T07:16:04.346Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone! 🌟 It brings me immense joy to unveil my submission for the dynamic “Data Analysis Resume Project Challenge 6” hosted by <a href="https://www.linkedin.com/company/codebasics/">codebasics</a>. 🚀 This journey has been a true testament to the power of learning, growth, and the excitement of unraveling insights from data.</p><p><strong>Domain</strong>: F &amp; B <strong>Function</strong>: Marketing</p><p><strong>CodeX </strong>is a German beverage company aiming to make its mark in the Indian market. A few months ago, they launched their energy drink in 10 cities in India.</p><p>Their Marketing team is responsible for increasing brand awareness, market share, and product development. They conducted a survey in those 10 cities and received results from <strong>10k</strong> respondents. Peter Pandey, a marketing data analyst is tasked to convert these survey results to meaningful insights that the team can use to drive actions</p><p><strong>Task Completed<br>1. Demographic Insights</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*QrPoohuhPOFs-QYm3I-avg.png" /></figure><p>Key Insights:<br><strong>1.1 Among 10 thousand respondents, 6038 are male, indicating a 60% preference for energy drinks.<br>1.2 Survey results reveal energy drinks’ popularity among youngsters, with over 50% aged 19–30; considering ages 15–30 raises the percentage to 70%</strong></p><p><strong>2. Consumer Preferences:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*4lvZZygGS3Ptc_ayaDfjLg.png" /></figure><p><strong>Key Insights:<br>2.1 Caffeine, known for enhancing attention and alertness, is the primary anticipated ingredient in energy drinks, closely followed by vitamins<br>2.2 Compact &amp; Portable Cans are in high demand, trailed by Innovative Bottle Designs.</strong></p><p><strong>3. Competition Analysis:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*2lxqOlLZ0aU_E8T7xKr12g.png" /></figure><p><strong>Key Insights:<br>3.1 The top reason for choosing the brands by consumers is brand reputation.<br>3.2 “Sky9” is notably effective, “Gangster” is remarkably healthy, while “Bepsi” raises concerns for being more dangerous</strong></p><p><strong>4. Marketing Channels and Brand Awareness:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*nHsROcMu5f6gSIzO5Pfqtw.png" /></figure><p><strong>Key Insights:<br>4.1 Online ads prove highly effective for reaching a wide audience swiftly and economically, as observed earlier</strong></p><p><strong>Key Insights<br>5.1 Among 980 individuals, 455 are familiar with our brand, aligning their average taste rating of 3.3 with the industry averag</strong>e</p><p><strong>6. Purchase Behavior:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*54lFjTHuTVr2oUw9HZvjWw.png" /></figure><p><strong>Key Insights<br>6.1 Supermarkets are the predominant choice for consumers purchasing energy drinks.<br>6.2 Sports, exercise, and studying/working late; this data underscores greater youth consumption.<br>6.3 40% of consumers anticipate no packaging change, while 39% are receptive to experimenting with Limited Edition Packaging.</strong></p><p><strong>7. Product Development</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*xQs_5rQLxzAA4JfpTJJeGg.png" /></figure><p><strong>Key Insights<br>7.1 We should increase Effectiveness<br>7.2 We should improve and Reduce Sugar Content</strong></p><h4><a href="https://www.novypro.com/project/marketing-insights-for-a-beverage-food-power-bi"><strong>NovyProProjectPublished</strong></a></h4><h4><a href="https://youtu.be/L2aE5-2pcA8?si=bwGZIPvsnq-XF3YF">Presentation LINK</a></h4><p>Thank you for taking the time to read the PROJECT. I appreciate your attention and feedback.”</p><p>If you found this project helpful, please consider sharing it with others who might benefit from it. Your support in spreading the word is greatly appreciated.”</p><p>Connect me on <a href="https://www.linkedin.com/in/suraj020/">Linkedin</a></p><p>Connect me on <a href="https://github.com/SurajGusain0007">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f917ffd0e1df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WINDOW FUNCTION IN SQL]]></title>
            <link>https://medium.com/@soorajgusain786/window-function-in-sql-5d46af14f71?source=rss-c3bc7ae77b3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d46af14f71</guid>
            <category><![CDATA[data-scientist]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[dense-rank]]></category>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Suraj Gusain]]></dc:creator>
            <pubDate>Tue, 11 Jul 2023 05:32:32 GMT</pubDate>
            <atom:updated>2023-07-11T05:32:32.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SsbHEyjginWEdvvD.png" /></figure><p>In SQL, a window function is a type of function that performs a calculation across a set of rows that are related to the current row. It allows you to perform calculations over a specific window or subset of rows without grouping or aggregating the data to a single value. Window functions are typically used in conjunction with the OVER clause.</p><p>Here’s the basic syntax of a window function:</p><p>Let’s break down the components of the syntax:</p><ul><li>&lt;window function&gt;: This represents the specific window function you want to use, such as SUM, AVG, ROW_NUMBER, RANK, LEAD, LAG, etc. Each function has its own purpose and behavior.</li><li>OVER: This keyword indicates that you are using a window function.</li><li>PARTITION BY: This clause is optional. It allows you to divide the rows into groups or partitions based on one or more expressions. The window function will be applied independently to each partition.</li><li>ORDER BY: This clause specifies the order in which the rows should be processed within each partition. It determines the window frame.</li><li>&lt;expression&gt;: It represents an expression or column on which you want to perform the calculation.</li><li>ROWS &lt;window frame&gt;: This specifies the range or frame of rows used for the window function calculation. It determines the subset of rows within the partition</li></ul><p>Here are a few examples of common window functions:</p><ol><li>ROW_NUMBER(): Assigns a unique sequential number to each row within the partition.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pQxDeXSCj69UWpzxlf6OTg.png" /></figure><p>RANK(): Assigns a rank to each row within the partition, with gaps in ranking for tied rows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vliz641ZaJW41cyiTDkEbA.png" /></figure><p>SUM(): Calculates the sum of a column over the window frame</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10Fn8ltEAC4s0T5PDMNlXg.png" /></figure><p>LEAD() and LAG(): Accesses the value of a column from a subsequent or previous row within the partition</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PUJpewWKMxkybBvLbCJj9g.png" /></figure><p>The DENSE_RANK() function is another window function in SQL that assigns a rank to each row within the partition, similar to the RANK() function. However, unlike RANK(), DENSE_RANK() does not leave gaps in the ranking for tied rows. It provides a dense sequence of ranks without any gaps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25WP8dPVhAf7qqH4sNpFnw.png" /></figure><p>Thank you for taking the time to read the article. I appreciate your attention and feedback.”</p><p>If you found this article helpful, please consider sharing it with others who might benefit from it. Your support in spreading the word is greatly appreciated.”</p><p>Connect me on <a href="https://www.linkedin.com/in/suraj020/">Linkedin</a></p><p>Connect me on <a href="https://github.com/SurajGusain0007">GitHub</a></p><p>Connect me on <a href="https://www.kaggle.com/surajgusain">Kaggle</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d46af14f71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Structured Query Language For Data Analyst/Data Science/Business Analyst Part-1]]></title>
            <link>https://medium.com/@soorajgusain786/structured-query-language-for-data-analyst-data-science-business-analyst-part-1-75075ace26c?source=rss-c3bc7ae77b3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/75075ace26c</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[Suraj Gusain]]></dc:creator>
            <pubDate>Thu, 01 Jun 2023 05:31:28 GMT</pubDate>
            <atom:updated>2023-06-01T05:31:28.992Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to our SQL series! In this series, we will explore the fundamentals of SQL (Structured Query Language) and dive into its various aspects. Whether you are a beginner or an experienced developer looking to enhance your skills, this series will provide you with a comprehensive understanding of SQL and its practical applications.</p><p>SQL is a powerful language used for managing and manipulating relational databases. It is the standard language for interacting with databases across different platforms and is widely employed in industries ranging from finance and healthcare to e-commerce and data analytics.</p><p>Throughout this series, we will cover the essential concepts of SQL, including data definition, manipulation, and querying. We will walk you through the fundamental SQL commands, discuss advanced techniques, and showcase real-world examples to reinforce your learning<strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*8bC5UlpZDIqW6qXb.jpg" /></figure><p><strong>Let’s start with the explanations and examples:</strong></p><ol><li>Database: A database is a structured collection of data that is organized and stored in a way that allows for efficient storage, retrieval, and manipulation of the data. It is designed to manage large amounts of information and provide a way to store, organize, and access data in a structured manner. Examples of databases include MySQL, Oracle, and MongoDB.</li><li>DBMS (Database Management System): A DBMS is a software that enables users to interact with a database. It provides tools and functionalities to create, access, and manage databases. It handles data storage, retrieval, security, and integrity tasks. Examples of DBMS include MySQL, Oracle Database, Microsoft SQL Server, and PostgreSQL.</li><li>SQL (Structured Query Language): SQL is a programming language used to communicate with and manage relational databases. It provides a standardized way to interact with the database and perform operations such as querying data, inserting, updating, and deleting records, creating and modifying database schemas, and managing user permissions. SQL is widely used and supported by various DBMSs. Here are some examples:</li></ol><h4><strong>Now let’s move on to the different types of SQL commands:</strong></h4><ol><li><strong>DDL (Data Definition Language) commands</strong>: DDL commands are used to define the structure and organization of the database. They allow you to create, modify, and delete database objects such as tables, indexes, views, and schemas. Examples of DDL commands:</li></ol><p><strong>CREATE TABLE</strong>: Used to create a new table in the database. For example:</p><p>CREATE TABLE employees (id INT,</p><p>name VARCHAR(50),</p><p>age INT</p><p>);</p><p><strong>ALTER TABLE</strong>: Used to modify the structure of an existing table. For example, adding a new column to a table:</p><p>ALTER TABLE employees</p><p>ADD COLUMN salary DECIMAL(10,2);</p><p><strong>DROP TABLE</strong>: Used to delete a table from the database. For example:</p><p>DROP TABLE employees;</p><p><strong>2.DML (Data Manipulation Language) commands</strong>: DML commands are used to manipulate and query data within the database. They allow you to insert, update, delete, and retrieve data from tables. Examples of DML commands:</p><p><strong>INSERT INTO</strong>: Used to insert new data into a table. For example:</p><p>INSERT INTO employees (id, name, age, salary)</p><p>VALUES (1, ‘John Doe’, 30, 50000);</p><p><strong>UPDATE</strong>: Used to modify existing data in a table. For example:</p><p>UPDATE employees</p><p>SET salary = 55000</p><p>WHERE id = 1;</p><p><strong>DELETE FROM</strong>: Used to delete data from a table. For example</p><p>DELETE FROM employees</p><p>WHERE id = 1;</p><p><strong>3.DQL (Data Query Language) commands</strong>: DQL commands are a subset of DML commands specifically designed for querying data. They are used to retrieve and manipulate data without modifying the structure of the database. The most commonly used DQL command is:</p><p><strong>SELECT</strong>: Used to retrieve data from one or more tables based on specified conditions. For example:</p><p>SELECT id, name</p><p>FROM employees</p><p>WHERE age &gt; 25;</p><p>These examples illustrate how DDL, DML, and DQL commands are used to create, modify, delete, insert, update, and query data in a database using SQL.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75075ace26c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LOOKUP IN EXCEL]]></title>
            <link>https://medium.com/@soorajgusain786/lookup-in-excel-2bec260eaaf9?source=rss-c3bc7ae77b3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bec260eaaf9</guid>
            <category><![CDATA[vlookup]]></category>
            <category><![CDATA[xlookup]]></category>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[excel-tutorial]]></category>
            <dc:creator><![CDATA[Suraj Gusain]]></dc:creator>
            <pubDate>Mon, 08 May 2023 09:54:24 GMT</pubDate>
            <atom:updated>2023-05-08T09:54:24.087Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/497/0*o_fgOBk7rezwOEl2.png" /></figure><p>Lookup in Excel is a function that allows you to search for a specific value in a table or range of data and returns a corresponding value from another column in the same row. There are two main types of lookup functions in Excel:</p><ol><li>VLOOKUP: This function searches for a value in the first column of a table and returns a corresponding value from a specified column in the same row.</li></ol><p>Syntax: VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])</p><p>2. INDEX MATCH: This function uses two separate functions to search for a value in a table and return a corresponding value from another column in the same row. The INDEX function returns a value from a specific row and column in a table, while the MATCH function searches for a value in a column or row and returns its position.</p><p>Syntax: INDEX(array, row_num, [column_num]) and MATCH(lookup_value, lookup_array, [match_type])</p><p>Both VLOOKUP and INDEX MATCH are useful for working with large sets of data in Excel and can save you a lot of time by automating the process of finding specific values.</p><h3><strong>XLOOKUP</strong></h3><p>XLOOKUP is a new function in Excel that was introduced in Excel 365. It is a powerful lookup function that allows you to search for a value in a range of cells or tables and return a corresponding value from another cell or table. XLOOKUP is similar to the VLOOKUP and HLOOKUP functions, but it has several advantages over these functions, including the ability to search for values in any column, not just the first column, and the ability to search in reverse.</p><p>Here’s an example of how to use the XLOOKUP function:</p><p>Let’s say you have a table of products that includes the product name, product code, price, and quantity in stock, and you want to find the price of a specific product based on its code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*V3M4FIU4Vpola-6bhQN2Yw.png" /></figure><p>To do this, you can use the XLOOKUP function. Here’s how:</p><ol><li>In a cell next to the table, enter the code of the product you want to find the price for. Let’s say you enter “1002” in cell E2.</li></ol><p>2.In another cell, enter the following formula:</p><pre>=XLOOKUP(E2, B2:B5, C2:C5, &quot;Product not found&quot;, 0)</pre><p>Here’s what each part of the formula means:</p><ul><li>E2: This is the lookup value, which is the code of the product you want to find the price for.</li><li>B2:B5: This is the array that contains the lookup values, which is the product code column in the table.</li><li>C2:C5: This is the array that contains the values to return, which is the price column in the table.</li><li>“Product not found”: This is the value to return if the lookup value is not found in the array.</li><li>0: This is the match mode, which specifies whether to perform an exact match or an approximate match. In this case, we want an exact match, so we set this value to 0.</li></ul><p>Press Enter. The XLOOKUP function will search for the code “1002” in the product code column of the table and return the corresponding price from the price column, which is “$20”. If the code is not found in the table, the function will return the value “Product not found”.</p><p>Thank you for taking the time to read the article. I appreciate your attention and feedback.”</p><p>If you found this article helpful, please consider sharing it with others who might benefit from it. Your support in spreading the word is greatly appreciated.”</p><p>Connect me on <a href="https://www.linkedin.com/in/suraj020/">Linkedin</a></p><p>Connect me on <a href="https://github.com/SurajGusain0007">GitHub</a></p><p>Connect me on <a href="https://www.instagram.com/data_science_outlier/">Instagram</a></p><p>Connect me on <a href="https://www.kaggle.com/surajgusain">Kaggle</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bec260eaaf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ultimate Guide to Numpy in Data Science]]></title>
            <link>https://medium.com/@soorajgusain786/the-ultimate-guide-to-numpy-in-data-science-489150cda606?source=rss-c3bc7ae77b3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/489150cda606</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Suraj Gusain]]></dc:creator>
            <pubDate>Fri, 10 Mar 2023 08:43:35 GMT</pubDate>
            <atom:updated>2023-03-10T08:43:35.121Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*nfAQFYAxQ2T2SAlm.jpg" /></figure><p>We have already discussed Pandas in Data Science.</p><p>Pandas Notes:</p><p>Refer to this link: <a href="https://github.com/SurajGusain0007/The-Ultimate-Guide-to-Pandas-in-Data-Science">The Ultimate guide to pandas in Data Science</a></p><p>NumPy is a Python library for scientific computing that provides support for numerical operations and array manipulation. It stands for Numerical Python. NumPy is used in a wide range of fields such as machine learning, data science, physics, and engineering.</p><p>At the core of NumPy is the ndarray (n-dimensional array) object, which is a collection of elements of the same data type arranged in a grid. This makes it an efficient and powerful tool for handling large amounts of numerical data. NumPy provides a wide range of functions for performing mathematical operations on these arrays, such as addition, subtraction, multiplication, and division, as well as more complex operations like linear algebra, Fourier transforms, and random number generation.</p><p>NumPy also includes tools for working with data from other file formats such as CSV, HDF5, and MATLAB files. It provides functions for data manipulation, cleaning, and filtering. NumPy can also be integrated with other libraries and frameworks, such as SciPy, Pandas, and Matplotlib, which provides additional functionality for scientific computing.</p><p>NumPy is an essential tool for numerical computing and data analysis in Python, thanks to its efficient array operations, mathematical functions, and integration with other scientific libraries.</p><p>Numpy Notes:</p><p><a href="https://github.com/SurajGusain0007/The-Ultimate-Guide-to-Numpy--Data-Science">The Ultimate Guide to Numpy in Data Science</a></p><p>If you like Please give me a star and fork. If you found this article helpful, please consider sharing it with others who might benefit from it. Your support in spreading the word is greatly appreciated.”</p><p>Connect me on <a href="https://www.linkedin.com/in/suraj020/">Linkedin</a></p><p>Connect me on <a href="https://github.com/SurajGusain0007">GitHub</a></p><p>Connect me on <a href="https://www.instagram.com/data_science_outlier/">Instagram</a></p><p>Connect me on <a href="https://www.kaggle.com/surajgusain">Kaggle</a></p><p>Happy Learning:)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=489150cda606" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THE ULTIMATE GUIDE TO PANDAS IN DATA SCIENCE]]></title>
            <link>https://medium.com/@soorajgusain786/the-ultimate-guide-to-pandas-in-data-science-32bbdff998b?source=rss-c3bc7ae77b3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/32bbdff998b</guid>
            <category><![CDATA[pandas-tutorial]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[pandas-dataframe]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Suraj Gusain]]></dc:creator>
            <pubDate>Thu, 09 Mar 2023 06:37:39 GMT</pubDate>
            <atom:updated>2023-03-09T06:37:39.313Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*--Z69_3NbleHvSKU" /></figure><p>2.5 quintillion bytes of data are produced every day! Consider how much we can deduce from that and what conclusions we can draw. Wait! But, how do we deal with such a massive amount of data?</p><p>Not to worry; the Pandas library is your best friend if you enjoy working with data in Python.</p><p>But what exactly is Pandas, and why should we use it?</p><p>Pandas is a Python library used for working with large amounts of data in a variety of formats such as CSV files, TSV files, Excel sheets, and so on. It has functions for analyzing, cleaning, exploring, and modifying data. Pandas can be used for a variety of purposes, including the following :</p><ul><li>Pandas enable the analysis of large amounts of data and the drawing of conclusions based on statistical theories.</li><li>Real-world data is never perfect and requires a lot of work; the Pandas library makes this work easier and faster, making datasets more relevant and cleaner.</li><li>It has a robust feature set you can apply to your data to customize, edit, and pivot it to your liking. This makes getting the most out of your data a lot easier.</li></ul><p>Pandas Notes:</p><p><a href="https://github.com/SurajGusain0007/The-Ultimate-Guide-to-Pandas-in-Data-Science">The Ultimate Guide to Pandas in Data Science</a></p><p>If you like Please give me a fork on GitHub.</p><p>If you found this article helpful, please consider sharing it with others who might benefit from it. Your support in spreading the word is greatly appreciated.”</p><p>Connect me on <a href="https://www.linkedin.com/in/suraj020/">Linkedin</a></p><p>Connect me on <a href="https://github.com/SurajGusain0007">GitHub</a></p><p>Connect me on <a href="https://www.instagram.com/data_science_outlier/">Instagram</a></p><p>Connect me on <a href="https://www.kaggle.com/surajgusain">Kaggle</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32bbdff998b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluation of Classification metrics]]></title>
            <link>https://medium.com/@soorajgusain786/evaluation-of-classification-metrics-1330fbaab2bc?source=rss-c3bc7ae77b3c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1330fbaab2bc</guid>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[evaluation-metric]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Suraj Gusain]]></dc:creator>
            <pubDate>Sat, 04 Mar 2023 06:31:13 GMT</pubDate>
            <atom:updated>2023-03-04T06:31:13.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Dyk96W6RnzjSklKCiJGFGA.jpeg" /></figure><p>Classification metrics are used to evaluate the performance of a machine learning model that is designed for classification tasks. These metrics help quantify how well the model can correctly predict the class labels ofthe data instances. In this answer, I will explain some of the most commonly used classification metrics along with examples.</p><ol><li>Confusion Matrix: A confusion matrix is a table used to evaluate a classification model’s performance by comparing the predicted and actual class labels. It is a 2x2 matrix that contains four metrics: True Positive (TP), False Positive (FP), True Negative (TN), and False Negative (FN).</li></ol><p>Example: Let’s assume we have a binary classification problem where we need to predict whether an email is a spam. The confusion matrix for the model’s predictions is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*DSLwF0ic6QPixdDuO1Birw.png" /></figure><ol><li>Accuracy: Accuracy is the most basic metric used to evaluate a classification model. It is defined as the ratio of the correctly predicted instances to the total number of instances.</li></ol><p>Example: In the above confusion matrix, the accuracy of the model is (100+500)/(100+20+10+500) = 93.75%.</p><p>2. Recall (Sensitivity) — Recall explains how many of the actual positive cases we were able to predict correctly with our model. It is a useful metric in cases where a False Negative is of higher concern than a False Positive. It <em>is important in medical cases where it doesn’t matter whether we raise a false alarm but the actual positive cases shoul</em>d not go undetected!</p><p>EXAMPLE 1- Credit card fraud detection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/0*YKAXPtV4wjsPiFx8" /></figure><p>We do not want to miss any fraudulent transactions. Therefore, we want False-Negative to be as low as possible. We can compromise with low precision in these situations, but recall should be high. Similarly, we don’t want to miss any patients in medical applications. Therefore we focus on having a high recall.</p><p>So far, we have discussed when a recall is more important than precision. But, when is precision more important than recall?</p><p>3. Precision — Precision explains how many of the correctly predicted cases actually turned out to be positive. Precision is useful in cases where False Positive is a higher concern than False Negatives. The importance of <em>Precision is in music or video recommendation systems, e-commerce websites, etc. where wrong results could lead to customer churn and this could be harmful to the business.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/0*YLYMjysCntw7XO3c" /></figure><p>EXAMPLE 2 — Spam detection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/0*ynKaj6syKppcZwGr" /></figure><p>In the detection of spam mail, it is okay if any spam mail remains undetected (false negative), but what if we miss any critical mail because it is classified as spam (false positive). In this situation, False Positive should be as low as possible. Here, precision is more vital as compared to recall.</p><p>When comparing different models, it will be difficult to decide which is better (high precision and low recall or vice-versa). Therefore, there should be a metric that combines both of these. One such metric is the F1 score.</p><ol><li>F1-Score: F1-Score is the harmonic mean of precision and recall. It is a balanced metric that takes both precisions and recalls into account.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/0*zEe_ZqrMpLmmh4lh" /></figure><p>If you found this article helpful, please consider sharing it with others who might benefit from it. Your support in spreading the word is greatly appreciated.”</p><p>Connect me on <a href="https://www.linkedin.com/in/suraj020/">Linkedin</a></p><p>Connect me on <a href="https://github.com/SurajGusain0007">GitHub</a></p><p>Connect me on <a href="https://www.instagram.com/data_science_outlier/">Instagram</a></p><p>Connect me on <a href="https://www.kaggle.com/surajgusain">Kaggle</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1330fbaab2bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>