<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Grace Anyango</title>
    <description>The latest articles on DEV Community by Grace Anyango (@anyangiii).</description>
    <link>https://dev.to/anyangiii</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3818261%2F30390437-2f30-455c-bc43-8b0afe08216d.jpg</url>
      <title>DEV Community: Grace Anyango</title>
      <link>https://dev.to/anyangiii</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anyangiii"/>
    <language>en</language>
    <item>
      <title>Statistics; Parametric &amp; non-Parametric in Data science</title>
      <dc:creator>Grace Anyango</dc:creator>
      <pubDate>Tue, 22 Sep 2026 07:22:50 +0000</pubDate>
      <link>https://dev.to/anyangiii/statistics-parametric-non-parametric-in-data-science-242j</link>
      <guid>https://dev.to/anyangiii/statistics-parametric-non-parametric-in-data-science-242j</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Statistics is an important part of data science because it helps data scientists collect, organize, analyze, interpret, and present data. It provides methods for understanding patterns in data and making conclusions based on evidence.&lt;/p&gt;

&lt;p&gt;In data science, statistical tests are used to determine whether relationships or differences observed in data are meaningful or could have happened by chance. Two major categories of statistical tests are &lt;strong&gt;parametric tests&lt;/strong&gt; and &lt;strong&gt;non-parametric tests&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Before performing a statistical test, it is also important to understand &lt;strong&gt;hypothesis testing&lt;/strong&gt;, which helps researchers make decisions about a population using sample data.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Statistics?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Statistics&lt;/strong&gt; is the branch of mathematics concerned with collecting, organizing, analyzing, interpreting, and presenting data.&lt;/p&gt;

&lt;p&gt;Statistics is widely used in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data science&lt;/li&gt;
&lt;li&gt;Business&lt;/li&gt;
&lt;li&gt;Healthcare&lt;/li&gt;
&lt;li&gt;Banking and finance&lt;/li&gt;
&lt;li&gt;Education&lt;/li&gt;
&lt;li&gt;Marketing&lt;/li&gt;
&lt;li&gt;Government&lt;/li&gt;
&lt;li&gt;Scientific research&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In data science, statistics helps transform raw data into meaningful information that can support decision-making.&lt;/p&gt;

&lt;h3&gt;
  
  
  Descriptive and Inferential Statistics
&lt;/h3&gt;

&lt;p&gt;Statistics can generally be divided into &lt;strong&gt;descriptive statistics&lt;/strong&gt; and &lt;strong&gt;inferential statistics&lt;/strong&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  A.Descriptive Statistics
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Descriptive statistics&lt;/strong&gt; are used to summarize and describe the main features of a dataset.&lt;/p&gt;

&lt;p&gt;They help answer questions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What is the average?&lt;/li&gt;
&lt;li&gt;What is the highest or lowest value?&lt;/li&gt;
&lt;li&gt;How spread out is the data?&lt;/li&gt;
&lt;li&gt;What is the most common value?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Common descriptive statistical measures include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mean&lt;/strong&gt; – the average value.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Median&lt;/strong&gt; – the middle value when data is arranged in order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mode&lt;/strong&gt; – the value that occurs most frequently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Range&lt;/strong&gt; – the difference between the highest and lowest values.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Standard deviation&lt;/strong&gt; – measures how spread out the data is around the mean.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Variance&lt;/strong&gt; – measures the amount of variation in a dataset.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  B.Inferential Statistics
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Inferential statistics&lt;/strong&gt; are used to make conclusions or predictions about a larger population based on a sample of data.&lt;/p&gt;

&lt;p&gt;Inferential statistics commonly involve:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hypothesis testing&lt;/li&gt;
&lt;li&gt;Confidence intervals&lt;/li&gt;
&lt;li&gt;Correlation&lt;/li&gt;
&lt;li&gt;Regression&lt;/li&gt;
&lt;li&gt;Statistical tests&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Hypothesis Testing
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Hypothesis testing&lt;/strong&gt; is a statistical method used to determine whether there is enough evidence to support a claim about a population.&lt;/p&gt;

&lt;p&gt;A researcher begins with a question or claim and develops two hypotheses:&lt;/p&gt;

&lt;h4&gt;
  
  
  Null Hypothesis (H₀)
&lt;/h4&gt;

&lt;p&gt;The &lt;strong&gt;null hypothesis&lt;/strong&gt; states that there is &lt;strong&gt;no significant difference, relationship, or effect&lt;/strong&gt; between the variables being studied.&lt;/p&gt;

&lt;h4&gt;
  
  
  Alternative Hypothesis (H₁ or Hₐ)
&lt;/h4&gt;

&lt;p&gt;The &lt;strong&gt;alternative hypothesis&lt;/strong&gt; states that there &lt;strong&gt;is a significant difference, relationship, or effect&lt;/strong&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  1.Parametric Tests
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Parametric tests&lt;/strong&gt; are statistical tests that make certain assumptions about the population or distribution of the data. They commonly assume that the data follows a particular distribution, such as a &lt;strong&gt;normal distribution&lt;/strong&gt;, and they often involve parameters such as the mean and standard deviation.&lt;/p&gt;

&lt;p&gt;Parametric tests are commonly used when the data is numerical and meets the required assumptions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common Parametric Tests&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1.T-Test
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;t-test&lt;/strong&gt; is used to determine whether there is a significant difference between means.&lt;/p&gt;

&lt;p&gt;Common types include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One-sample t-test&lt;/li&gt;
&lt;li&gt;Independent two-sample t-test&lt;/li&gt;
&lt;li&gt;Paired t-test&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2.ANOVA
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;ANOVA (Analysis of Variance)&lt;/strong&gt; is used to compare the means of &lt;strong&gt;three or more groups&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3.Pearson Correlation
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Pearson correlation&lt;/strong&gt; measures the strength and direction of a linear relationship between two numerical variables.&lt;/p&gt;

&lt;p&gt;The correlation coefficient ranges from &lt;strong&gt;-1 to +1&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;+1 = perfect positive relationship&lt;/li&gt;
&lt;li&gt;0 = no linear relationship&lt;/li&gt;
&lt;li&gt;-1 = perfect negative relationship&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4.Linear Regression
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Linear regression&lt;/strong&gt; is used to examine the relationship between variables and can be used to predict one variable based on another.&lt;/p&gt;

&lt;h3&gt;
  
  
  Advantages of Parametric Tests
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;High statistical power&lt;/strong&gt; – They can detect differences or relationships effectively when their assumptions are satisfied.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use numerical information&lt;/strong&gt; – They make effective use of the actual values in a dataset.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Useful for many analyses&lt;/strong&gt; – They can be applied to comparisons, correlations, and predictions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Well-established methods&lt;/strong&gt; – They are widely used in research and data science.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Can provide precise results&lt;/strong&gt; – When assumptions are met, parametric tests can provide reliable estimates and conclusions.&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  5.Non-Parametric Tests
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Non-parametric tests&lt;/strong&gt; are statistical tests that do not require the same strict assumptions about the distribution of the data as parametric tests.&lt;/p&gt;

&lt;p&gt;They are particularly useful when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data does not follow a normal distribution.&lt;/li&gt;
&lt;li&gt;The sample size is small.&lt;/li&gt;
&lt;li&gt;Data contains outliers.&lt;/li&gt;
&lt;li&gt;Data is ordinal or ranked.&lt;/li&gt;
&lt;li&gt;The assumptions required for a parametric test are not satisfied.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of relying heavily on means and standard deviations, many non-parametric tests work with &lt;strong&gt;ranks or the order of observations&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common Non-Parametric Tests&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1.Mann-Whitney U Test
&lt;/h3&gt;

&lt;p&gt;The &lt;strong&gt;Mann-Whitney U test&lt;/strong&gt; is used to compare two independent groups when the assumptions of an independent t-test are not appropriate.&lt;/p&gt;

&lt;h3&gt;
  
  
  2.Wilcoxon Signed-Rank Test
&lt;/h3&gt;

&lt;p&gt;The &lt;strong&gt;Wilcoxon signed-rank test&lt;/strong&gt; is used to compare two related or paired sets of observations.&lt;/p&gt;

&lt;h3&gt;
  
  
  3.Kruskal-Wallis Test
&lt;/h3&gt;

&lt;p&gt;The &lt;strong&gt;Kruskal-Wallis test&lt;/strong&gt; is used to compare &lt;strong&gt;three or more independent groups&lt;/strong&gt;.&lt;br&gt;
It is commonly considered a non-parametric alternative to one-way ANOVA.&lt;/p&gt;

&lt;h3&gt;
  
  
  4.Friedman Test
&lt;/h3&gt;

&lt;p&gt;The &lt;strong&gt;Friedman test&lt;/strong&gt; is used to compare &lt;strong&gt;three or more related or repeated groups&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.Spearman Rank Correlation
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Spearman rank correlation&lt;/strong&gt; measures the strength and direction of a relationship between variables based on their ranks.&lt;br&gt;
It is useful when data is ordinal or when the assumptions required for Pearson correlation are not appropriate.&lt;/p&gt;

&lt;h3&gt;
  
  
  Advantages of Non-Parametric Test
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fewer distribution assumptions&lt;/strong&gt; – They do not require data to follow a specific distribution in the same way as many parametric tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Useful for ordinal data&lt;/strong&gt; – They can work well with ranked or ordered data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Less affected by outliers&lt;/strong&gt; – Rank-based methods can be less sensitive to extreme values.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Useful with small samples&lt;/strong&gt; – They can be appropriate when sample sizes are small, depending on the test and study design.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flexible&lt;/strong&gt; – They can be useful when the assumptions of parametric tests are not satisfied.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Parametric vs Non-Parametric Tests
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Parametric Tests&lt;/th&gt;
&lt;th&gt;Non-Parametric Tests&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Distribution assumptions&lt;/td&gt;
&lt;td&gt;Usually stronger&lt;/td&gt;
&lt;td&gt;Usually fewer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data&lt;/td&gt;
&lt;td&gt;Often numerical/continuous&lt;/td&gt;
&lt;td&gt;Often ordinal, ranked, or non-normal numerical data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Common measure&lt;/td&gt;
&lt;td&gt;Mean&lt;/td&gt;
&lt;td&gt;Ranks/medians&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Outliers&lt;/td&gt;
&lt;td&gt;Can have greater influence&lt;/td&gt;
&lt;td&gt;Often less sensitive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Examples&lt;/td&gt;
&lt;td&gt;t-test, ANOVA, Pearson correlation&lt;/td&gt;
&lt;td&gt;Mann-Whitney U, Wilcoxon, Kruskal-Wallis, Spearman&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Statistical power&lt;/td&gt;
&lt;td&gt;Often higher when assumptions are met&lt;/td&gt;
&lt;td&gt;Can be preferable when assumptions are violated&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The choice between the two depends on the &lt;strong&gt;type of data, research question, sample size, and whether the assumptions of the test are satisfied&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>data</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Unsupervised learning in ML</title>
      <dc:creator>Grace Anyango</dc:creator>
      <pubDate>Mon, 21 Sep 2026 06:04:39 +0000</pubDate>
      <link>https://dev.to/anyangiii/unsupervised-learning-in-ml-4il6</link>
      <guid>https://dev.to/anyangiii/unsupervised-learning-in-ml-4il6</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Unsupervised learning&lt;/strong&gt; is a type of machine learning where a computer learns from data that does not have predefined labels or answers. Instead of being told what the correct result is, the algorithm studies the data and identifies patterns, groups, or relationships on its own.&lt;/p&gt;

&lt;p&gt;Unsupervised learning is useful when there is a large amount of data but no labelled information available. It helps organizations discover hidden patterns and gain a better understanding of their data.&lt;/p&gt;

&lt;p&gt;The two major areas of unsupervised learning discussed in this article are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Clustering&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dimensionality Reduction&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  1.CLUSTERING
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Clustering&lt;/strong&gt; is an unsupervised learning technique that groups similar data points together. Data points within the same group, known as a &lt;strong&gt;cluster&lt;/strong&gt;, are more similar to each other than to data points in other groups.&lt;/p&gt;

&lt;h3&gt;
  
  
  Uses of Clustering
&lt;/h3&gt;

&lt;p&gt;Clustering can be used for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Customer segmentation&lt;/strong&gt; – grouping customers according to their behaviour or characteristics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Market research&lt;/strong&gt; – identifying different groups within a market.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Image analysis&lt;/strong&gt; – grouping similar images or parts of images.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fraud detection&lt;/strong&gt; – identifying unusual patterns in transactions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Document classification&lt;/strong&gt; – grouping documents with similar topics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recommendation systems&lt;/strong&gt; – identifying users with similar interests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Healthcare analysis&lt;/strong&gt; – grouping patients with similar characteristics or patterns.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  HIERARCHICAL CLUSTERING
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Hierarchical clustering&lt;/strong&gt; is a clustering technique that creates a hierarchy of groups. Instead of simply dividing data into a fixed number of clusters, it shows how individual data points and groups are related at different levels.&lt;/p&gt;

&lt;p&gt;There are two main approaches to hierarchical clustering:&lt;/p&gt;

&lt;h4&gt;
  
  
  I).Agglomerative Clustering
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Agglomerative clustering&lt;/strong&gt; is a &lt;strong&gt;bottom-up approach&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It starts with each data point as its own individual cluster. The algorithm then repeatedly combines the most similar clusters until all the data points form one large cluster or the desired grouping is reached.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Process:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Individual Data Points → Small Clusters → Larger Clusters → One Large Cluster&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Agglomerative clustering is the more commonly used approach to hierarchical clustering.&lt;/p&gt;

&lt;h4&gt;
  
  
  II).Divisive Clustering
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Divisive clustering&lt;/strong&gt; is a &lt;strong&gt;top-down approach&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It begins with all data points in one large cluster. The algorithm then repeatedly divides the cluster into smaller groups until individual groups are formed or the desired number of clusters is reached.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Process:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One Large Cluster → Smaller Clusters → Individual Groups&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Direction&lt;/th&gt;
&lt;th&gt;Starting Point&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Agglomerative&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Bottom-up&lt;/td&gt;
&lt;td&gt;Individual data points&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Divisive&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Top-down&lt;/td&gt;
&lt;td&gt;One large cluster&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h3&gt;
  
  
  DENDROGRAM
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;dendrogram&lt;/strong&gt; is a tree-like diagram used to display the results of hierarchical clustering.&lt;/p&gt;

&lt;p&gt;It shows how individual data points or groups are combined or divided at different levels.&lt;/p&gt;

&lt;p&gt;The height at which two groups are connected represents how different or distant they are. By choosing a particular level on the dendrogram, we can determine how many clusters to create.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example of a simple dendrogram
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;              ┌───────────────┐
              │               │
          ┌───┴───┐       ┌───┴───┐
          │       │       │       │
          A       B       C       D
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, A and B are grouped together, while C and D form another group.&lt;/p&gt;

&lt;h4&gt;
  
  
  Importance of a Dendrogram
&lt;/h4&gt;

&lt;p&gt;Dendrograms help users:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Understand how data points are related.&lt;/li&gt;
&lt;li&gt;Visualize hierarchical clusters.&lt;/li&gt;
&lt;li&gt;Decide how many clusters should be created.&lt;/li&gt;
&lt;li&gt;Identify groups with similar characteristics.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  DBSCAN
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;DBSCAN&lt;/strong&gt; stands for &lt;strong&gt;Density-Based Spatial Clustering of Applications with Noise&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It is a clustering algorithm that groups data points based on how closely packed they are. It can identify areas with many data points while treating points that do not belong to a dense group as &lt;strong&gt;noise or outliers&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Unlike some clustering methods, DBSCAN does not require the user to specify the exact number of clusters beforehand.&lt;/p&gt;

&lt;h4&gt;
  
  
  How DBSCAN Works
&lt;/h4&gt;

&lt;p&gt;DBSCAN looks for areas where data points are close together.&lt;/p&gt;

&lt;p&gt;It generally identifies three types of points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Core points&lt;/strong&gt; – points located within a sufficiently dense area.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Border points&lt;/strong&gt; – points near a dense cluster but not dense enough to be core points.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Noise points&lt;/strong&gt; – points that do not belong to any cluster.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Advantages of DBSCAN
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Can find clusters with different shapes.&lt;/li&gt;
&lt;li&gt;Can identify outliers and noise.&lt;/li&gt;
&lt;li&gt;Does not require the number of clusters to be specified beforehand.&lt;/li&gt;
&lt;li&gt;Useful for spatial and location-based data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Disadvantages of DBSCAN
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Its performance can be affected when clusters have very different densities.&lt;/li&gt;
&lt;li&gt;Choosing suitable parameter values can be difficult.&lt;/li&gt;
&lt;li&gt;It may not work well with very high-dimensional data without appropriate preparation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2.DIMENSIONALITY REDUCTION
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Dimensionality reduction&lt;/strong&gt; is the process of reducing the number of variables or features in a dataset while trying to preserve the most important information.&lt;/p&gt;

&lt;p&gt;Dimensionality reduction transforms the data into fewer dimensions while attempting to retain its important patterns.&lt;/p&gt;

&lt;h3&gt;
  
  
  Benefits of Dimensionality Reduction
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Makes large datasets easier to analyze.&lt;/li&gt;
&lt;li&gt;Reduces computational requirements.&lt;/li&gt;
&lt;li&gt;Can make data easier to visualize.&lt;/li&gt;
&lt;li&gt;Helps remove unnecessary or redundant information.&lt;/li&gt;
&lt;li&gt;Can improve the performance of some machine learning algorithms.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  PRINCIPAL COMPONENT ANALYSIS (PCA)
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Principal Component Analysis (PCA)&lt;/strong&gt; is one of the most widely used dimensionality reduction techniques.&lt;/p&gt;

&lt;p&gt;PCA transforms a dataset with many variables into a smaller number of new variables called &lt;strong&gt;principal components&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The principal components are created so that they capture as much of the important variation in the original data as possible.&lt;/p&gt;

&lt;h3&gt;
  
  
  Uses of PCA
&lt;/h3&gt;

&lt;p&gt;PCA can be used for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reducing the number of features.&lt;/li&gt;
&lt;li&gt;Visualizing high-dimensional data.&lt;/li&gt;
&lt;li&gt;Removing redundant information.&lt;/li&gt;
&lt;li&gt;Simplifying datasets before further analysis.&lt;/li&gt;
&lt;li&gt;Improving computational efficiency.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Advantages of PCA
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Reduces the number of variables.&lt;/li&gt;
&lt;li&gt;Makes complex datasets easier to visualize.&lt;/li&gt;
&lt;li&gt;Can reduce redundancy in data.&lt;/li&gt;
&lt;li&gt;Can make some machine learning processes faster.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Disadvantages of PCA
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The new components can be difficult to interpret.&lt;/li&gt;
&lt;li&gt;Some information may be lost during the reduction.&lt;/li&gt;
&lt;li&gt;The results can be affected by the scale of the variables.&lt;/li&gt;
&lt;li&gt;It may not be suitable when every original variable has important meaning.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  APPLICATIONS OF UNSUPERVISED LEARNING
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1.Marketing
&lt;/h3&gt;

&lt;p&gt;Businesses can use clustering to divide customers into groups based on their purchasing habits, interests, or behaviour. This helps businesses understand different customer groups.&lt;/p&gt;

&lt;h3&gt;
  
  
  2.Banking and Finance
&lt;/h3&gt;

&lt;p&gt;Unsupervised learning can help identify unusual transaction patterns and discover groups of customers with similar financial behaviour.&lt;/p&gt;

&lt;h3&gt;
  
  
  3.Healthcare
&lt;/h3&gt;

&lt;p&gt;Healthcare organizations can analyze patient data to identify groups with similar characteristics or discover patterns in medical information.&lt;/p&gt;

&lt;h3&gt;
  
  
  4.Retail
&lt;/h3&gt;

&lt;p&gt;Retail businesses can analyze purchasing behaviour to identify groups of customers and discover which products are commonly purchased together.&lt;/p&gt;

&lt;h3&gt;
  
  
  5.Image Processing
&lt;/h3&gt;

&lt;p&gt;Clustering can be used to group similar pixels or identify patterns within images. Dimensionality reduction can also help simplify complex image data.&lt;/p&gt;

&lt;h3&gt;
  
  
  6.Cybersecurity
&lt;/h3&gt;

&lt;p&gt;Unsupervised learning can identify unusual patterns in network activity that may require further investigation.&lt;/p&gt;

&lt;h3&gt;
  
  
  7.Social Media
&lt;/h3&gt;

&lt;p&gt;Organizations can analyze large amounts of social media information to identify groups, topics, trends, or patterns in user behavior.&lt;/p&gt;

&lt;h3&gt;
  
  
  8.Manufacturing
&lt;/h3&gt;

&lt;p&gt;Manufacturers can use unsupervised learning to identify unusual machine behaviour and discover patterns that may indicate equipment problems.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Introduction to Machine Learning</title>
      <dc:creator>Grace Anyango</dc:creator>
      <pubDate>Sun, 20 Sep 2026 05:59:39 +0000</pubDate>
      <link>https://dev.to/anyangiii/introduction-to-machine-learning-5gp8</link>
      <guid>https://dev.to/anyangiii/introduction-to-machine-learning-5gp8</guid>
      <description>&lt;h2&gt;
  
  
  WHAT IS MACHINE LEARNING?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Machine learning (ML)&lt;/strong&gt; is a branch of artificial intelligence that enables computers to learn from data and make predictions or decisions based on what they have learned.&lt;/p&gt;

&lt;h3&gt;
  
  
  Basic Machine Learning Process
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Data → Training → Learning Patterns → Prediction/Decision&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Machine learning therefore depends heavily on &lt;strong&gt;data&lt;/strong&gt;, because the quality and quantity of training data can affect the performance of the model.&lt;/p&gt;

&lt;h2&gt;
  
  
  TYPES OF MACHINE LEARNING
&lt;/h2&gt;

&lt;p&gt;There are three main types of machine learning:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Supervised Learning&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Unsupervised Learning&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reinforcement Learning&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each type learns from data differently and is suitable for different problems.&lt;/p&gt;

&lt;h3&gt;
  
  
  1.SUPERVISED LEARNING
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Supervised learning&lt;/strong&gt; is a type of machine learning where a model is trained using data that already contains the correct answers, known as &lt;strong&gt;labels&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The model learns the relationship between the input data and the known output. It can then use what it has learned to make predictions about new data.&lt;/p&gt;

&lt;p&gt;Supervised learning is commonly used for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Predicting prices.&lt;/li&gt;
&lt;li&gt;Detecting spam emails.&lt;/li&gt;
&lt;li&gt;Predicting customer behaviour.&lt;/li&gt;
&lt;li&gt;Classifying images.&lt;/li&gt;
&lt;li&gt;Detecting fraudulent transactions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Advantages
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Can make accurate predictions when good-quality labelled data is available.&lt;/li&gt;
&lt;li&gt;Performance can be measured using known answers.&lt;/li&gt;
&lt;li&gt;Useful for classification and prediction problems.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Disadvantages
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Requires labelled training data, which can be expensive or time-consuming to prepare.&lt;/li&gt;
&lt;li&gt;Poor-quality training data can lead to poor predictions.&lt;/li&gt;
&lt;li&gt;The model may perform poorly when it encounters situations that are very different from its training data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2.UNSUPERVISED LEARNING
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Unsupervised learning&lt;/strong&gt; is a type of machine learning where the model works with data that does not have predefined labels or answers.&lt;/p&gt;

&lt;p&gt;The system attempts to discover patterns, groups, or relationships within the data on its own.&lt;/p&gt;

&lt;h3&gt;
  
  
  Common Uses
&lt;/h3&gt;

&lt;p&gt;Unsupervised learning can be used for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Customer segmentation.&lt;/li&gt;
&lt;li&gt;Finding patterns in large datasets.&lt;/li&gt;
&lt;li&gt;Grouping similar products.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Advantages
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Does not require labelled data.&lt;/li&gt;
&lt;li&gt;Can discover patterns that may not be obvious to humans.&lt;/li&gt;
&lt;li&gt;Useful for exploring large datasets.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Disadvantages
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Results can be difficult to interpret.&lt;/li&gt;
&lt;li&gt;It may not always be clear whether the groups discovered are meaningful.&lt;/li&gt;
&lt;li&gt;Evaluating the accuracy of the results can be more difficult.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3.REINFORCEMENT LEARNING
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Reinforcement learning&lt;/strong&gt; is a type of machine learning in which an agent learns by interacting with an environment.&lt;/p&gt;

&lt;p&gt;The system performs an action and receives feedback in the form of a &lt;strong&gt;reward or penalty&lt;/strong&gt;. Over time, it learns which actions are more likely to produce desirable results.&lt;/p&gt;

&lt;h3&gt;
  
  
  Common Uses
&lt;/h3&gt;

&lt;p&gt;Reinforcement learning can be used in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Robotics.&lt;/li&gt;
&lt;li&gt;Game-playing systems.&lt;/li&gt;
&lt;li&gt;Autonomous systems.&lt;/li&gt;
&lt;li&gt;Resource management.&lt;/li&gt;
&lt;li&gt;Some recommendation and optimization problems.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Advantages
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Can learn through experience.&lt;/li&gt;
&lt;li&gt;Does not always require labelled training examples.&lt;/li&gt;
&lt;li&gt;Useful for problems involving sequences of decisions.&lt;/li&gt;
&lt;li&gt;Can improve its strategy through repeated interaction.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Disadvantages
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Training can require a large number of attempts.&lt;/li&gt;
&lt;li&gt;Training can be computationally expensive.&lt;/li&gt;
&lt;li&gt;Designing suitable rewards can be difficult.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  COMPARISON OF THE THREE TYPES
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;How It Learns&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;Main Advantage&lt;/th&gt;
&lt;th&gt;Main Disadvantage&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Supervised Learning&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Learns from labelled data&lt;/td&gt;
&lt;td&gt;Predicting house prices&lt;/td&gt;
&lt;td&gt;Good for prediction&lt;/td&gt;
&lt;td&gt;Requires labelled data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Unsupervised Learning&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Finds patterns in unlabelled data&lt;/td&gt;
&lt;td&gt;Customer grouping&lt;/td&gt;
&lt;td&gt;Discovers hidden patterns&lt;/td&gt;
&lt;td&gt;Results can be difficult to interpret&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Reinforcement Learning&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Learns through rewards and penalties&lt;/td&gt;
&lt;td&gt;Robot learning movement&lt;/td&gt;
&lt;td&gt;Learns through experience&lt;/td&gt;
&lt;td&gt;Can require extensive training&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  APPLICATIONS OF MACHINE LEARNING IN INDUSTRIES
&lt;/h2&gt;

&lt;h2&gt;
  
  
  1.Healthcare
&lt;/h2&gt;

&lt;p&gt;Applications include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Supporting medical image analysis.&lt;/li&gt;
&lt;li&gt;Predicting certain health risks.&lt;/li&gt;
&lt;li&gt;Analyzing patient records.&lt;/li&gt;
&lt;li&gt;Supporting drug research.&lt;/li&gt;
&lt;li&gt;Monitoring patients.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2.Banking and Finance
&lt;/h2&gt;

&lt;p&gt;Applications include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fraud detection.&lt;/li&gt;
&lt;li&gt;Credit risk analysis.&lt;/li&gt;
&lt;li&gt;Detecting unusual transactions.&lt;/li&gt;
&lt;li&gt;Customer segmentation.&lt;/li&gt;
&lt;li&gt;Financial forecasting.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3.Retail and E-Commerce
&lt;/h2&gt;

&lt;p&gt;Applications include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product recommendations.&lt;/li&gt;
&lt;li&gt;Customer segmentation.&lt;/li&gt;
&lt;li&gt;Sales forecasting.&lt;/li&gt;
&lt;li&gt;Inventory management.&lt;/li&gt;
&lt;li&gt;Price analysis.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4.Manufacturing
&lt;/h2&gt;

&lt;p&gt;Applications include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Predictive maintenance.&lt;/li&gt;
&lt;li&gt;Quality control.&lt;/li&gt;
&lt;li&gt;Production forecasting.&lt;/li&gt;
&lt;li&gt;Detecting equipment problems.&lt;/li&gt;
&lt;li&gt;Optimizing production processes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5.Transportation
&lt;/h2&gt;

&lt;p&gt;Applications include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Traffic prediction.&lt;/li&gt;
&lt;li&gt;Route optimization.&lt;/li&gt;
&lt;li&gt;Demand forecasting.&lt;/li&gt;
&lt;li&gt;Driver-assistance systems.&lt;/li&gt;
&lt;li&gt;Fleet management.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>datascience</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Understanding Data Modeling in Power Bi</title>
      <dc:creator>Grace Anyango</dc:creator>
      <pubDate>Thu, 17 Sep 2026 18:41:40 +0000</pubDate>
      <link>https://dev.to/anyangiii/understanding-data-modeling-in-power-bi-om1</link>
      <guid>https://dev.to/anyangiii/understanding-data-modeling-in-power-bi-om1</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Data modeling in Power BI&lt;/strong&gt; is the process of organizing data from different tables and connecting them so that the data can be analyzed effectively. A good data model makes it easier to create accurate reports, dashboards, charts, and calculations.&lt;/p&gt;

&lt;h2&gt;
  
  
  WHAT IS DATA MODELING?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Data modeling&lt;/strong&gt; is the process of structuring and organizing data so that different pieces of information can work together.&lt;/p&gt;

&lt;h3&gt;
  
  
  Importance of Data Modeling
&lt;/h3&gt;

&lt;p&gt;Data modeling helps to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Organize large amounts of data.&lt;/li&gt;
&lt;li&gt;Connect related tables.&lt;/li&gt;
&lt;li&gt;Reduce unnecessary duplication of information.&lt;/li&gt;
&lt;li&gt;Improve the accuracy of calculations.&lt;/li&gt;
&lt;li&gt;Make reports easier to create and understand.&lt;/li&gt;
&lt;li&gt;Improve the performance of Power BI reports.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;p&gt;Data modeling creates a structured connection between different tables so that Power BI can analyze them as a unified dataset.&lt;/p&gt;

&lt;h2&gt;
  
  
  JOINS IN POWER BI
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;join&lt;/strong&gt; combines data from two or more tables based on a related column.&lt;/p&gt;

&lt;p&gt;Power BI allows users to join tables using &lt;strong&gt;Power Query&lt;/strong&gt; through the &lt;strong&gt;Merge Queries&lt;/strong&gt; feature.&lt;/p&gt;

&lt;p&gt;Joins are particularly useful when information is stored in separate tables but needs to be combined for analysis.&lt;/p&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;p&gt;Joins combine information from different tables using a common column.&lt;/p&gt;

&lt;h2&gt;
  
  
  THE SIX SQL JOINS
&lt;/h2&gt;

&lt;p&gt;SQL commonly describes &lt;strong&gt;six types of joins&lt;/strong&gt;. These are also useful concepts to understand when working with data in Power BI.&lt;/p&gt;

&lt;h3&gt;
  
  
  INNER JOIN
&lt;/h3&gt;

&lt;p&gt;An &lt;strong&gt;INNER JOIN&lt;/strong&gt; returns only the records that have matching values in both tables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use:&lt;/strong&gt; When you only need records that exist in both tables.&lt;/p&gt;

&lt;h3&gt;
  
  
  LEFT JOIN
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;LEFT JOIN&lt;/strong&gt; returns all records from the left table and matching records from the right table.&lt;/p&gt;

&lt;p&gt;If there is no match in the right table, the result will contain a blank value for that table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use:&lt;/strong&gt; When you want to keep every record from the main or left table.&lt;/p&gt;

&lt;h3&gt;
  
  
  RIGHT JOIN
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;RIGHT JOIN&lt;/strong&gt; returns all records from the right table and matching records from the left table.&lt;/p&gt;

&lt;p&gt;If there is no match in the left table, the missing values appear as blanks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use:&lt;/strong&gt; When the right table contains the records you want to keep.&lt;/p&gt;

&lt;h3&gt;
  
  
  FULL OUTER JOIN
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;FULL OUTER JOIN&lt;/strong&gt; returns all records from both tables.&lt;/p&gt;

&lt;p&gt;It includes matching records as well as records that do not have a match.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use:&lt;/strong&gt; When you want to see every record from both tables.&lt;/p&gt;

&lt;h3&gt;
  
  
  CROSS JOIN
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;CROSS JOIN&lt;/strong&gt; combines every row in one table with every row in another table.&lt;/p&gt;

&lt;p&gt;For example, if one table has 3 rows and another has 4 rows, a cross join can produce &lt;strong&gt;12 combinations&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use:&lt;/strong&gt; When every possible combination between two sets of data is required.&lt;/p&gt;

&lt;h3&gt;
  
  
  SELF JOIN
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;SELF JOIN&lt;/strong&gt; joins a table to itself.&lt;/p&gt;

&lt;p&gt;It can be useful when records within the same table are related to one another.&lt;/p&gt;

&lt;p&gt;For example, an employee table could contain both employees and their managers. The manager's ID could be matched with another employee's ID within the same table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use:&lt;/strong&gt; When relationships exist between records in the same table.&lt;/p&gt;

&lt;h3&gt;
  
  
  Summary of the Six Joins
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Join&lt;/th&gt;
&lt;th&gt;Main Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;INNER JOIN&lt;/td&gt;
&lt;td&gt;Returns matching records&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LEFT JOIN&lt;/td&gt;
&lt;td&gt;Keeps all records from the left table&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RIGHT JOIN&lt;/td&gt;
&lt;td&gt;Keeps all records from the right table&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FULL OUTER JOIN&lt;/td&gt;
&lt;td&gt;Keeps all records from both tables&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CROSS JOIN&lt;/td&gt;
&lt;td&gt;Creates every possible combination&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SELF JOIN&lt;/td&gt;
&lt;td&gt;Joins a table to itself&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  HOW TO CREATE JOINS IN POWER BI
&lt;/h2&gt;

&lt;p&gt;In Power BI, joins can be created in &lt;strong&gt;Power Query&lt;/strong&gt; using the &lt;strong&gt;Merge Queries&lt;/strong&gt; option.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 1: Open Power BI Desktop
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 2: Open Power Query Editor
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 3: Select a table
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 4: Select Merge Queries
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 5: Select the second table
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 6: Select the matching column
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 7: Choose the Join Kind
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 8: Select OK
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 9: Expand the new column
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Step 10: Apply the changes
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;p&gt;Creating a join in Power BI involves selecting two tables, choosing their matching columns, selecting a join type, and then expanding the required information.&lt;/p&gt;

&lt;h2&gt;
  
  
  RELATIONSHIPS IN POWER BI
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;relationship&lt;/strong&gt; connects two tables in the Power BI data model. Unlike a merge, which combines columns into one table, a relationship allows separate tables to remain separate while Power BI understands how they are connected.&lt;/p&gt;

&lt;h3&gt;
  
  
  Types of Relationships
&lt;/h3&gt;

&lt;p&gt;Power BI commonly uses the following relationship types:&lt;/p&gt;

&lt;h3&gt;
  
  
  One-to-Many (1:*)
&lt;/h3&gt;

&lt;p&gt;One record in one table can be related to many records in another table.&lt;/p&gt;

&lt;h3&gt;
  
  
  One-to-One (1:1)
&lt;/h3&gt;

&lt;p&gt;One record in one table is related to only one record in another table.&lt;/p&gt;

&lt;h3&gt;
  
  
  Many-to-Many (&lt;em&gt;:&lt;/em&gt;)
&lt;/h3&gt;

&lt;p&gt;Many records in one table can be related to many records in another table.&lt;/p&gt;

&lt;h3&gt;
  
  
  Creating a Relationship in Power BI
&lt;/h3&gt;

&lt;p&gt;Relationships can be created by:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Opening &lt;strong&gt;Model view&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Selecting a column in one table.&lt;/li&gt;
&lt;li&gt;Dragging it to the related column in another table.&lt;/li&gt;
&lt;li&gt;Choosing the appropriate &lt;strong&gt;cardinality&lt;/strong&gt;, such as one-to-many.&lt;/li&gt;
&lt;li&gt;Setting the filter direction when required.&lt;/li&gt;
&lt;li&gt;Selecting &lt;strong&gt;OK&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Power BI then uses the relationship when calculating and displaying information in reports.&lt;/p&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;p&gt;Relationships connect tables without necessarily combining them. They allow Power BI to understand how information in different tables is related.&lt;/p&gt;

&lt;h2&gt;
  
  
  DIFFERENCE BETWEEN JOINS AND RELATIONSHIPS
&lt;/h2&gt;

&lt;p&gt;Although joins and relationships both connect data, they work differently.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Joins&lt;/th&gt;
&lt;th&gt;Relationships&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Usually combine tables during data preparation&lt;/td&gt;
&lt;td&gt;Connect tables in the data model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Often performed in Power Query&lt;/td&gt;
&lt;td&gt;Usually created in Model view&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Can create one combined table&lt;/td&gt;
&lt;td&gt;Keep tables separate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Useful for transforming and preparing data&lt;/td&gt;
&lt;td&gt;Useful for analyzing related tables&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uses matching columns&lt;/td&gt;
&lt;td&gt;Uses related columns and defined cardinality&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Example
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;join&lt;/strong&gt; could combine Customer Name and Customer Sales into one table.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;relationship&lt;/strong&gt; could keep Customers and Sales as separate tables while allowing Power BI to analyze sales by customer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Data modeling is an important part of working with Power BI because it organizes data and allows different tables to work together. &lt;strong&gt;Joins&lt;/strong&gt; can be used to combine information from different tables, while &lt;strong&gt;relationships&lt;/strong&gt; connect tables within the Power BI data model.&lt;/p&gt;

</description>
      <category>beginners</category>
    </item>
    <item>
      <title>Introduction to SQL :DDL,DML &amp; Data Quering</title>
      <dc:creator>Grace Anyango</dc:creator>
      <pubDate>Thu, 17 Sep 2026 17:45:58 +0000</pubDate>
      <link>https://dev.to/anyangiii/introduction-to-sql-ddldml-data-quering-4cfj</link>
      <guid>https://dev.to/anyangiii/introduction-to-sql-ddldml-data-quering-4cfj</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;SQL stands for &lt;strong&gt;Structured Query Language&lt;/strong&gt;. It is a programming language used to communicate with and manage data stored in relational databases. SQL allows users to create databases and tables, add and modify information, search for specific records, and organize data.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. DDL AND DML
&lt;/h2&gt;

&lt;p&gt;SQL commands are divided into different categories. Two important categories are &lt;strong&gt;DDL&lt;/strong&gt; and &lt;strong&gt;DML&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  DDL – Data Definition Language
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;DDL stands for Data Definition Language.&lt;/strong&gt; It is used to create and modify the structure of a database and its objects, such as tables.&lt;/p&gt;

&lt;p&gt;Common DDL commands include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CREATE&lt;/strong&gt; – creates a new database object, such as a table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ALTER&lt;/strong&gt; – changes the structure of an existing table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DROP&lt;/strong&gt; – permanently removes a database object.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TRUNCATE&lt;/strong&gt; – removes all records from a table while keeping the table structure.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Example:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;StudentID&lt;/span&gt; &lt;span class="nb"&gt;INT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="nb"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="n"&gt;Age&lt;/span&gt; &lt;span class="nb"&gt;INT&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command creates a table called &lt;strong&gt;Students&lt;/strong&gt; with three columns.&lt;/p&gt;

&lt;h3&gt;
  
  
  DML – Data Manipulation Language
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;DML stands for Data Manipulation Language.&lt;/strong&gt; It is used to add, change, and remove data stored in database tables.&lt;/p&gt;

&lt;p&gt;Common DML commands include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;INSERT&lt;/strong&gt; – adds new records.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UPDATE&lt;/strong&gt; – changes existing records.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DELETE&lt;/strong&gt; – removes records.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Example:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;StudentID&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Age&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Grace'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This adds a new student record to the table.&lt;/p&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;DDL manages the structure of the database, while DML manages the data stored inside the database.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  THE WHERE CLAUSE
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;WHERE clause&lt;/strong&gt; is used in SQL to specify a condition. It allows us to select only the records that meet a particular requirement.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This query displays students whose age is 20.&lt;/p&gt;

&lt;p&gt;The WHERE clause is useful when working with large databases because it allows specific records to be selected instead of displaying everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Operators Used with the WHERE Clause
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Comparison Operators
&lt;/h3&gt;

&lt;p&gt;These operators compare two values.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Operator&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;=&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Equal to&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Age = 20&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;&amp;lt;&amp;gt;&lt;/code&gt; or &lt;code&gt;!=&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Not equal to&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Age &amp;lt;&amp;gt; 20&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Greater than&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Age &amp;gt; 18&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Less than&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Age &amp;lt; 18&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;gt;=&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Greater than or equal to&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Age &amp;gt;= 18&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;=&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Less than or equal to&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Age &amp;lt;= 18&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  2. Logical Operators
&lt;/h3&gt;

&lt;p&gt;Logical operators combine or modify conditions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AND&lt;/strong&gt; – both conditions must be true.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OR&lt;/strong&gt; – at least one condition must be true.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NOT&lt;/strong&gt; – reverses a condition.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Age&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;18&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;Age&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This selects students between the ages of 18 and 25.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. BETWEEN
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;BETWEEN&lt;/strong&gt; selects values within a specified range.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Age&lt;/span&gt; &lt;span class="k"&gt;BETWEEN&lt;/span&gt; &lt;span class="mi"&gt;18&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. IN
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;IN&lt;/strong&gt; checks whether a value matches any value in a given list.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Age&lt;/span&gt; &lt;span class="k"&gt;IN&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  5. LIKE
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;LIKE&lt;/strong&gt; is used to search for a particular pattern in text.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="k"&gt;LIKE&lt;/span&gt; &lt;span class="s1"&gt;'G%'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;%&lt;/code&gt; means that any number of characters can follow &lt;strong&gt;G&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. IS NULL
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;IS NULL&lt;/strong&gt; is used to find records where a column has no value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Age&lt;/span&gt; &lt;span class="k"&gt;IS&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;p&gt;The WHERE clause helps filter database records. Its common operators include &lt;strong&gt;=, &amp;lt;&amp;gt;, !=, &amp;gt;, &amp;lt;, &amp;gt;=, &amp;lt;=, AND, OR, NOT, BETWEEN, IN, LIKE, and IS NULL.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  CASE WHEN
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;CASE WHEN&lt;/strong&gt; is used in SQL to perform conditional logic. It works similarly to an &lt;strong&gt;IF-ELSE statement&lt;/strong&gt; in programming.&lt;/p&gt;

&lt;p&gt;It checks a condition and returns a result when that condition is true.&lt;/p&gt;

&lt;h3&gt;
  
  
  Basic Structure
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CASE&lt;/span&gt;
    &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="n"&gt;condition&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="k"&gt;result&lt;/span&gt;
    &lt;span class="k"&gt;ELSE&lt;/span&gt; &lt;span class="k"&gt;result&lt;/span&gt;
&lt;span class="k"&gt;END&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Example
&lt;/h3&gt;

&lt;p&gt;Suppose we have students and their marks. We can use CASE WHEN to classify their performance:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Marks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;CASE&lt;/span&gt;
        &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="n"&gt;Marks&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;70&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'Excellent'&lt;/span&gt;
        &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="n"&gt;Marks&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="s1"&gt;'Pass'&lt;/span&gt;
        &lt;span class="k"&gt;ELSE&lt;/span&gt; &lt;span class="s1"&gt;'Fail'&lt;/span&gt;
    &lt;span class="k"&gt;END&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;Performance&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The query creates a new column called &lt;strong&gt;Performance&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Marks&lt;/th&gt;
&lt;th&gt;Performance&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Grace&lt;/td&gt;
&lt;td&gt;78&lt;/td&gt;
&lt;td&gt;Excellent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Brian&lt;/td&gt;
&lt;td&gt;56&lt;/td&gt;
&lt;td&gt;Pass&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Jane&lt;/td&gt;
&lt;td&gt;42&lt;/td&gt;
&lt;td&gt;Fail&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Uses of CASE WHEN
&lt;/h3&gt;

&lt;p&gt;CASE WHEN can be used to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Categorize data.&lt;/li&gt;
&lt;li&gt;Create labels.&lt;/li&gt;
&lt;li&gt;Group records based on conditions.&lt;/li&gt;
&lt;li&gt;Replace complicated conditional calculations.&lt;/li&gt;
&lt;li&gt;Make query results easier to understand.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;CASE WHEN allows SQL to make decisions based on conditions and return different results depending on the data.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  DATA QUERYING
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Data querying&lt;/strong&gt; is the process of requesting specific information from a database. SQL is mainly used for querying data through the &lt;strong&gt;SELECT&lt;/strong&gt; statement.&lt;/p&gt;

&lt;h3&gt;
  
  
  Basic SELECT Query
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;*&lt;/code&gt; means that all columns should be displayed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Selecting Specific Columns
&lt;/h3&gt;

&lt;p&gt;Instead of selecting everything, we can select particular columns:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Age&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This displays only the &lt;strong&gt;Name&lt;/strong&gt; and &lt;strong&gt;Age&lt;/strong&gt; columns.&lt;/p&gt;

&lt;h3&gt;
  
  
  Filtering Data
&lt;/h3&gt;

&lt;p&gt;The WHERE clause can be used when querying specific records:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Age&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Age&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Sorting Data
&lt;/h3&gt;

&lt;p&gt;The &lt;strong&gt;ORDER BY&lt;/strong&gt; clause sorts query results.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Marks&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;Marks&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;DESC&lt;/code&gt; sorts from highest to lowest, while &lt;code&gt;ASC&lt;/code&gt; sorts from lowest to highest.&lt;/p&gt;

&lt;h3&gt;
  
  
  Combining Querying Techniques
&lt;/h3&gt;

&lt;p&gt;SQL allows several clauses to be used together:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Marks&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Students&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Marks&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;Marks&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This query:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Selects the student's name and marks.&lt;/li&gt;
&lt;li&gt;Displays only students who scored 50 or above.&lt;/li&gt;
&lt;li&gt;Arranges the results from the highest mark to the lowest.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;p&gt;Data querying allows users to retrieve useful information from databases. Common SQL commands and clauses used for querying include &lt;strong&gt;SELECT, FROM, WHERE, ORDER BY, GROUP BY, and HAVING&lt;/strong&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Learning SQL is especially useful in &lt;strong&gt;data analytics&lt;/strong&gt; because it allows analysts to work directly with large amounts of structured data and extract the information needed for decision-making.&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>beginners</category>
      <category>sql</category>
    </item>
    <item>
      <title>How to publish a Power BI report and embed it on a website</title>
      <dc:creator>Grace Anyango</dc:creator>
      <pubDate>Thu, 17 Sep 2026 17:18:14 +0000</pubDate>
      <link>https://dev.to/anyangiii/how-to-publish-a-power-bi-report-and-embed-it-on-a-website-5bij</link>
      <guid>https://dev.to/anyangiii/how-to-publish-a-power-bi-report-and-embed-it-on-a-website-5bij</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Power BI is a data visualization and business intelligence tool developed by Microsoft. It allows users to connect to different sources of data, analyze information, and create interactive reports and dashboards. Power BI reports can be published online and, depending on the type of embedding used, displayed on a website so that users can view the information in an interactive way.&lt;/p&gt;

&lt;p&gt;Publishing a report makes it available through the Power BI service, while embedding allows the report to appear within another website or application.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Creating a Workspace
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;workspace&lt;/strong&gt; is an area in Power BI where reports, dashboards, and related data are stored and managed. Creating a workspace is an important first step before publishing a report.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Sign in to &lt;strong&gt;Power BI&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Open the &lt;strong&gt;Workspaces&lt;/strong&gt; section.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;New workspace&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter a suitable name for the workspace.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Create&lt;/strong&gt; or &lt;strong&gt;Apply&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The new workspace will now be available for storing and managing reports.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Summary:&lt;/strong&gt; A workspace provides a central place where Power BI reports and other related content can be stored and managed.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Uploading and Publishing a Report
&lt;/h2&gt;

&lt;p&gt;A report can be created using &lt;strong&gt;Power BI Desktop&lt;/strong&gt; and then published to the Power BI service. Publishing transfers the report and its data model to the selected workspace.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Power BI Desktop&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Create or open the report you want to publish.&lt;/li&gt;
&lt;li&gt;Check that the charts, tables, and data are correct.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Publish&lt;/strong&gt; from the Home ribbon.&lt;/li&gt;
&lt;li&gt;Sign in to your Power BI account if required.&lt;/li&gt;
&lt;li&gt;Select the workspace where you want to publish the report.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Publish&lt;/strong&gt; or &lt;strong&gt;Select&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Wait for the publishing process to finish.&lt;/li&gt;
&lt;li&gt;Open the report in the Power BI service to confirm that it has been published successfully.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Summary:&lt;/strong&gt; Publishing moves the report from Power BI Desktop into an online Power BI workspace where it can be accessed and shared.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Steps to Publishing a Report
&lt;/h2&gt;

&lt;p&gt;After publishing, it is important to check and prepare the report before sharing it with other users.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open the published report in the Power BI service.&lt;/li&gt;
&lt;li&gt;Check that all visuals and pages are displaying correctly.&lt;/li&gt;
&lt;li&gt;Confirm that the data is accurate and up to date.&lt;/li&gt;
&lt;li&gt;Check the report's sharing and access permissions.&lt;/li&gt;
&lt;li&gt;Make any necessary changes to the report.&lt;/li&gt;
&lt;li&gt;Save or republish the report if changes are made.&lt;/li&gt;
&lt;li&gt;Decide how the report will be shared, such as through a Power BI app or an appropriate embedding method.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Summary:&lt;/strong&gt; After publishing, the report should be checked for accuracy, appearance, permissions, and accessibility before it is shared.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Embedding the Report on a Website
&lt;/h2&gt;

&lt;p&gt;Embedding means displaying a Power BI report inside a website. There are different methods depending on whether the report contains public or private information.&lt;/p&gt;

&lt;p&gt;For a &lt;strong&gt;public report&lt;/strong&gt;, Power BI's &lt;strong&gt;Publish to web&lt;/strong&gt; feature can generate an embed code that can be placed in a website using HTML or an iframe. However, Microsoft warns that Publish to web makes the report publicly accessible without authentication, so it should only be used for information that is safe to make public.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps for a Public Embed:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open the report in the Power BI service.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;File → Embed report → Publish to web&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Review the warning about public access.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Create embed code&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Confirm that the report is suitable for public viewing.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Publish&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Copy the HTML embed code provided by Power BI.&lt;/li&gt;
&lt;li&gt;Open the website's HTML editor.&lt;/li&gt;
&lt;li&gt;Paste the embed code into the appropriate section of the webpage.&lt;/li&gt;
&lt;li&gt;Save and preview the website to make sure the report appears correctly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Summary:&lt;/strong&gt; Embedding allows an interactive Power BI report to appear directly on a webpage. Public embedding should only be used when the report and its data are appropriate for public access.&lt;/p&gt;

&lt;p&gt;For &lt;strong&gt;private or organizational reports&lt;/strong&gt;, a secure embedding method should be used instead of Publish to web. Microsoft provides options such as &lt;strong&gt;Embed for your organization&lt;/strong&gt; and Power BI Embedded, which can enforce authentication and permissions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Publishing and embedding a Power BI report makes it easier to share data and present information in an interactive format. The general process involves creating a workspace, creating and publishing the report, checking the published report, and choosing an appropriate method for embedding it on a website. For public information, Publish to web can provide an easy way to embed a report, while private information requires a secure embedding method. By following these steps, users can effectively share Power BI reports and make data easier to access and understand.&lt;/p&gt;

</description>
      <category>beginners</category>
    </item>
    <item>
      <title>Introduction to Python for Data Analytics</title>
      <dc:creator>Grace Anyango</dc:creator>
      <pubDate>Thu, 17 Sep 2026 10:16:43 +0000</pubDate>
      <link>https://dev.to/anyangiii/introduction-to-python-for-data-analytics-e8a</link>
      <guid>https://dev.to/anyangiii/introduction-to-python-for-data-analytics-e8a</guid>
      <description>&lt;h1&gt;
  
  
  What Is Data Analytics and How Is Python Involved?
&lt;/h1&gt;

&lt;p&gt;Data analytics is the process of collecting, organizing, cleaning, examining, and interpreting data to find useful patterns and information. &lt;/p&gt;

&lt;p&gt;Python is a programming language that is widely used in data analytics. It allows analysts to work with large datasets, perform calculations, clean data, create visualizations, and automate repetitive tasks. Python also has libraries such as Pandas, NumPy, Matplotlib, and Seaborn that provide tools specifically designed for data analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Python Is Highly Recommended in Data Analytics
&lt;/h2&gt;

&lt;p&gt;Python is highly recommended for data analytics for several reasons:&lt;/p&gt;

&lt;p&gt;.Easy to learn: Python has simple and readable syntax, making it suitable for beginners.&lt;/p&gt;

&lt;p&gt;.Powerful libraries: Libraries such as Pandas and NumPy make data manipulation and calculations easier.&lt;/p&gt;

&lt;p&gt;.Data visualization: Libraries such as Matplotlib and Seaborn help analysts create charts and graphs.&lt;/p&gt;

&lt;p&gt;.Handles large datasets: Python can process and analyze large amounts of information efficiently.&lt;/p&gt;

&lt;p&gt;.Automation: Python can automate repetitive data-processing tasks, saving time.&lt;/p&gt;

&lt;p&gt;.Flexible: It can be used for data analysis, machine learning, artificial intelligence, and other tasks.&lt;/p&gt;

&lt;p&gt;.Large community: Many tutorials, learning resources, and community-supported tools are available.&lt;/p&gt;

&lt;h2&gt;
  
  
  Core Principles of Python in Data Analytics
&lt;/h2&gt;

&lt;p&gt;Some important principles of using Python for data analytics include:&lt;/p&gt;

&lt;p&gt;a) Variables and Data Types&lt;/p&gt;

&lt;p&gt;Variables are used to store information, while data types describe the kind of information being stored, such as numbers, text, and Boolean values.&lt;/p&gt;

&lt;p&gt;b) Functions&lt;/p&gt;

&lt;p&gt;Functions are reusable blocks of code that perform specific tasks. They help make programs organized and easier to manage.&lt;/p&gt;

&lt;p&gt;c) Libraries&lt;/p&gt;

&lt;p&gt;Python libraries provide ready-made tools for performing different tasks. For example, Pandas is used for data manipulation, while NumPy is useful for numerical calculations.&lt;/p&gt;

&lt;p&gt;d) Conditional Statements and Loops&lt;/p&gt;

&lt;p&gt;Conditional statements allow Python to make decisions, while loops allow it to repeat tasks automatically.&lt;/p&gt;

&lt;h3&gt;
  
  
  Analyzing Data Files
&lt;/h3&gt;

&lt;p&gt;Python can be used to open and analyze different types of data files, including CSV and Excel files. With libraries such as Pandas, analysts can import data, examine columns and rows, calculate statistics, sort information, and identify patterns.&lt;/p&gt;

&lt;p&gt;For example, a business can use Python to analyze a sales file and determine which products are selling the most.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Cleaning
&lt;/h2&gt;

&lt;p&gt;Data cleaning involves preparing raw data for analysis. Python can help analysts:&lt;/p&gt;

&lt;p&gt;.Remove duplicate records.&lt;br&gt;
.Handle missing information.&lt;br&gt;
.Correct errors.&lt;br&gt;
.Change data into the correct format.&lt;br&gt;
.Remove unnecessary information.&lt;br&gt;
.Organize data into a consistent structure.&lt;/p&gt;

&lt;p&gt;Clean data is important because inaccurate or incomplete data can lead to incorrect conclusions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Visualization
&lt;/h2&gt;

&lt;p&gt;Data visualization involves presenting information using charts and graphs. Python provides libraries such as Matplotlib and Seaborn for creating visual representations of data.&lt;/p&gt;

&lt;p&gt;For example, an analyst can use a bar chart to compare sales between different products or a line graph to show how sales change over time. Visualizations make complex information easier to understand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Python in Real-World Data Analytics
&lt;/h2&gt;

&lt;p&gt;Python is used in many real-world industries. Some examples include:&lt;/p&gt;

&lt;p&gt;1.Banking: Analyzing transactions and identifying unusual patterns.&lt;/p&gt;

&lt;p&gt;2.Healthcare: Studying patient and medical data to identify trends.&lt;/p&gt;

&lt;p&gt;3.Business: Analyzing sales, customers, and business performance.&lt;/p&gt;

&lt;p&gt;4.Education: Examining student performance and attendance.&lt;/p&gt;

&lt;p&gt;5.Marketing: Studying customer behavior and campaign results.&lt;/p&gt;

&lt;p&gt;6.Finance: Analyzing financial information and market data.&lt;/p&gt;

&lt;p&gt;These applications show how Python can help organizations turn large amounts of data into useful information.&lt;/p&gt;

&lt;h3&gt;
  
  
  Advantages of Python in Data Analytics
&lt;/h3&gt;

&lt;p&gt;Python has several advantages, including:&lt;/p&gt;

&lt;p&gt;I).It is easy to learn and use.&lt;br&gt;
II).It has many powerful data analytics libraries.&lt;br&gt;
III).It can automate repetitive tasks.&lt;br&gt;
IV).It supports data visualization.&lt;br&gt;
V).It can work with different types of data.&lt;br&gt;
VI).It is useful for both small and large data projects.&lt;br&gt;
VII).It can be combined with machine learning and artificial intelligence.&lt;/p&gt;

&lt;h3&gt;
  
  
  Disadvantages of Python in Data Analytics
&lt;/h3&gt;

&lt;p&gt;Although Python is useful, it also has some disadvantages:&lt;/p&gt;

&lt;p&gt;I).It can use more memory when working with very large datasets.&lt;br&gt;
II).It may be slower than some programming languages for certain computational tasks.&lt;br&gt;
III).Beginners may need time to understand its libraries and data-analysis concepts.&lt;br&gt;
IV).Some advanced analytics tasks require knowledge beyond basic Python.&lt;br&gt;
V).Managing large Python projects can become complicated without good organization.&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;Python is an important and powerful tool for data analytics. It helps analysts import and analyze data, clean errors, perform calculations, create visualizations, and automate tasks. Its simple syntax and wide range of libraries make it suitable for beginners as well as professional data analysts. Python is also used in many industries, including banking, healthcare, education, marketing, and business. Although it has some disadvantages, its flexibility and powerful data-analysis capabilities make Python a valuable skill for anyone interested in data analytics.&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How excel in used in the real world</title>
      <dc:creator>Grace Anyango</dc:creator>
      <pubDate>Thu, 17 Sep 2026 08:37:54 +0000</pubDate>
      <link>https://dev.to/anyangiii/how-excel-in-used-in-the-real-world-2phj</link>
      <guid>https://dev.to/anyangiii/how-excel-in-used-in-the-real-world-2phj</guid>
      <description>&lt;h1&gt;
  
  
  What is excel
&lt;/h1&gt;

&lt;p&gt;Microsoft Excel is a spreadsheet program used to enter, organize, calculate, analyze, and present data. It uses rows and columns to arrange information in cells. Excel provides different tools such as formulas, functions, tables, filters, and charts that make it easier to work with data.&lt;/p&gt;

&lt;h1&gt;
  
  
  Real-World Uses of Excel
&lt;/h1&gt;

&lt;p&gt;Excel is used in many areas of everyday life and business. Some of its major uses include:&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Cleaning
&lt;/h2&gt;

&lt;p&gt;Excel helps users organize, correct, and remove errors from data so that it can be used for accurate analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Business Forecasting
&lt;/h2&gt;

&lt;p&gt;Excel helps businesses predict future sales, expenses, profits, and trends using past and current data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Business Calculations
&lt;/h2&gt;

&lt;p&gt;Excel makes it easy to perform calculations using formulas and functions, such as totals, averages, percentages, and profits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tracking of Expenses
&lt;/h2&gt;

&lt;p&gt;Excel can be used to record and monitor income and expenses, helping individuals and businesses manage their finances.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Analysis Using Charts
&lt;/h2&gt;

&lt;p&gt;Excel converts data into charts and graphs, making trends, comparisons, and patterns easier to understand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Excel is a powerful and useful tool for real-world data analysis. It helps users organize and clean data, perform calculations, forecast business trends, track expenses, and present information through charts and graphs. Because it is easy to use and suitable for many different tasks, Excel remains an important tool for students, businesses, and data analysts. Learning Excel can therefore provide valuable skills for both education and the workplace.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
