<?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: Diana Wachenje</title>
    <description>The latest articles on DEV Community by Diana Wachenje (@diana_wachenje_c0bc1d1f1c).</description>
    <link>https://dev.to/diana_wachenje_c0bc1d1f1c</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%2F3843190%2F806c204c-7003-4276-a0a5-e734c9a787a4.jpg</url>
      <title>DEV Community: Diana Wachenje</title>
      <link>https://dev.to/diana_wachenje_c0bc1d1f1c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/diana_wachenje_c0bc1d1f1c"/>
    <language>en</language>
    <item>
      <title>A Beginner's Guide on Data Modelling and Joins</title>
      <dc:creator>Diana Wachenje</dc:creator>
      <pubDate>Sat, 26 Sep 2026 21:48:13 +0000</pubDate>
      <link>https://dev.to/diana_wachenje_c0bc1d1f1c/a-beginners-guide-on-data-modelling-and-joins-2g4m</link>
      <guid>https://dev.to/diana_wachenje_c0bc1d1f1c/a-beginners-guide-on-data-modelling-and-joins-2g4m</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;When working with data, the data is usually stored in different tables. A good example, a car sales business could have one table containing car information, another containing car information and another containing sales transaction.&lt;br&gt;
Therefore, data modelling, relationships, and joins help us join the data together to make it easy to understand and analyze it.&lt;br&gt;
A good data modelling will ensure that information is well organized correctly, reports and calculations are done for accurate results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Learning Objectives
&lt;/h2&gt;

&lt;p&gt;By the end of this article, you should be able to understand the following:&lt;/p&gt;

&lt;p&gt;. Understand what data modelling means.&lt;br&gt;
. Explain why data modelling is important.&lt;br&gt;
. Understand relationship between tables.&lt;br&gt;
. Explain the different types of relationships.&lt;br&gt;
. Understand what joins are.&lt;br&gt;
. Identify common types of joins.&lt;br&gt;
. Understand how relationships and joins are used in data analysis.&lt;/p&gt;

&lt;p&gt;What is Data Modelling?&lt;/p&gt;

&lt;p&gt;Data modelling is the process of organizing data into table, define how they are connected.&lt;br&gt;
Instead of putting all the information into one large table, we separate the data into different tables based on what it represents.&lt;/p&gt;

&lt;p&gt;For example, a car business may have:&lt;/p&gt;

&lt;p&gt;Example of a Customer Table;&lt;/p&gt;

&lt;p&gt;A table contains three columns: Customer ID, Customer Name, and Region. I added two customers to the table. The first customer has the ID C001, the name David, and is from Nairobi. The second customer has the ID C002, the name Clara, and is from Mombasa.&lt;/p&gt;

&lt;p&gt;Example of a Car Table;&lt;/p&gt;

&lt;p&gt;The table contains three columns: Car ID, Car Model, and Brand. I added two cars to the table. The first car has the ID CAR01, the model Fortuner, and the brand Toyota. The second car has the ID CAR02, the third car has the ID CAR03 model CX5, and the brand Mazda.                    &lt;/p&gt;

&lt;p&gt;Example of Sales Table;&lt;/p&gt;

&lt;p&gt;The table contains Order ID, Customer ID, Car ID, and Sales Amount. I added two sales records. The first order, 0001, belongs to customer C001 and has a sales amount of 8,500,000. The second order, 0002, belongs to customer C002 and has a sales amount of 4,500,000.&lt;/p&gt;

&lt;p&gt;These tables are connected using fields like the Customer ID and Car ID.&lt;/p&gt;

&lt;h4&gt;
  
  
  1. Why is Data Modelling Important?
&lt;/h4&gt;

&lt;p&gt;A well-designed data model is important because it helps us:&lt;/p&gt;

&lt;p&gt;Organize data&lt;br&gt;
It keeps related information in appropriate tables instead of putting everything into one large table.&lt;/p&gt;

&lt;p&gt;Reduce Duplication&lt;br&gt;
The same customer does not need to be repeated in every sales record.&lt;/p&gt;

&lt;p&gt;Improve reporting&lt;br&gt;
A good model makes it easier to create accurate reports and dashboards.&lt;/p&gt;

&lt;p&gt;Support calculations&lt;br&gt;
In tools like Power BI, a good data model helps DAX calculations work correctly.&lt;/p&gt;

&lt;p&gt;Improve Performance&lt;br&gt;
Well-organized tables and relationships will help one to report process data more efficiently.&lt;/p&gt;

&lt;p&gt;Make the model easier to maintain&lt;br&gt;
When data is well organized properly, it is easier to update, clean and manage.&lt;/p&gt;

&lt;h5&gt;
  
  
  2. What is a Relationship?
&lt;/h5&gt;

&lt;p&gt;A relationship is a connection between two tables.&lt;br&gt;
For example, the Customer ID in the Customer table can be connected to the Customer in the Sales Table. The Customer table may contain one record for each customer, while the Sales table can contain many sales made by the same customer.&lt;/p&gt;

&lt;p&gt;This creates a one-to-many relationship.&lt;/p&gt;

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

&lt;p&gt;Customer&lt;/p&gt;

&lt;p&gt;C001 → David&lt;/p&gt;

&lt;p&gt;Sales&lt;/p&gt;

&lt;p&gt;C001 → Order 001&lt;br&gt;
C001 → Order 005&lt;br&gt;
C001 → Order 010&lt;/p&gt;

&lt;p&gt;One customer can therefore have many sales records. &lt;/p&gt;

&lt;h4&gt;
  
  
  3. Types of Relationships
&lt;/h4&gt;

&lt;p&gt;There are several types of common types of relationships.&lt;/p&gt;

&lt;p&gt;One-to-One (1:1)&lt;br&gt;
One record in one table matches one record in another table.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
One person has one passport record.&lt;/p&gt;

&lt;p&gt;One-to-Many (1:M)&lt;br&gt;
One record in one table can match many records in another table.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
One customer can make many orders.&lt;br&gt;
This is one of the most common relationships in data modelling.&lt;/p&gt;

&lt;p&gt;Many-to-Many (M:M)&lt;br&gt;
Many records in one table can be related to many records in another table.&lt;br&gt;
For example, one student can take many courses, and one course can have many students.&lt;br&gt;
Many-to-many relationships need to be handled carefully because they can sometimes cause incorrect calculations or duplicate results.&lt;/p&gt;

&lt;h4&gt;
  
  
  4. Primary Key and Foreign Key
&lt;/h4&gt;

&lt;p&gt;Keys are important when creating relationships.&lt;/p&gt;

&lt;p&gt;Primary Key&lt;br&gt;
A primary key is a column that uniquely identifies each record in a table.&lt;/p&gt;

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

&lt;p&gt;Here, Customer ID can be the primary key because every customer has a unique ID. The Customer table contains three customers identified by unique Customer IDs. Customer C001 is David, Customer C002 is Clara, and Customer C003 is Kevin.&lt;/p&gt;

&lt;p&gt;Foreign Key&lt;/p&gt;

&lt;p&gt;A foreign key is a column that refers to the primary key of another table.&lt;br&gt;
For example, the Sales table may contain Customer ID:  &lt;/p&gt;

&lt;p&gt;Order 0001 belongs to Customer C001 and has a Sales Amount of 8,500,000, while Order 0002 belongs to Customer C002 and has a Sales Amount of 4,500,000.&lt;/p&gt;

&lt;p&gt;Here, Customer ID is a foreign key because it connects the Sales table to the Customer table.&lt;/p&gt;

&lt;h4&gt;
  
  
  5. What is a Join?
&lt;/h4&gt;

&lt;p&gt;A join is a way of combining information from two or more tables using a common column.&lt;br&gt;
For example, suppose we have a Customer table and a Sales table.&lt;br&gt;
The Customer table tells us who the customer is, while the Sales table tells us what they purchased.&lt;/p&gt;

&lt;p&gt;A join can combine these pieces of information.&lt;br&gt;
For example:&lt;/p&gt;

&lt;p&gt;Customer C001 is David and is associated with Order ID 0001, with a Sales Amount of 8,500,000. Customer C002 is Clara and is associated with Order ID 0002, with a Sales Amount of 4,500,000.&lt;/p&gt;

&lt;p&gt;The tables have been joined using Customer ID.&lt;/p&gt;

&lt;h4&gt;
  
  
  6. Common Types of Joins
&lt;/h4&gt;

&lt;p&gt;Inner Join&lt;br&gt;
An inner join returns only records that have matching values in both tables.&lt;br&gt;
For example, if a customer exists in both tables, that customer's information will be included.&lt;/p&gt;

&lt;p&gt;Left Join&lt;br&gt;
A left join returns all records from the left table and matching records from the right table. If there is no match, the information from the right table will normally appear as null.&lt;/p&gt;

&lt;p&gt;Right Join&lt;br&gt;
A right join returns all records from the right table and matching records from the left table.&lt;/p&gt;

&lt;p&gt;Full Outer Join&lt;br&gt;
A full outer join returns all records from both tables.&lt;br&gt;
Records are included whether or not they have a matching value in the other table.&lt;/p&gt;

&lt;h4&gt;
  
  
  7. Relationships vs Joins
&lt;/h4&gt;

&lt;p&gt;Relationships and joins are related, but they are not exactly the same.&lt;br&gt;
A relationship defines how tables are connected in a data model.&lt;br&gt;
A join combines data from tables based on a matching column.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
In Power BI, relationships are commonly used to connect tables in a data model.&lt;br&gt;
In SQL, joins are commonly used to combine data from different tables.&lt;br&gt;
In Power Query, merge operations can be used to join tables. &lt;/p&gt;

&lt;h4&gt;
  
  
  8. Example Using a Car Dataset
&lt;/h4&gt;

&lt;p&gt;Imagine you have a car sales dataset with three tables:&lt;/p&gt;

&lt;p&gt;Customers&lt;/p&gt;

&lt;p&gt;. Customer ID&lt;br&gt;
. Customer Name&lt;br&gt;
. Customer Age&lt;br&gt;
. Region&lt;/p&gt;

&lt;p&gt;Cars&lt;/p&gt;

&lt;p&gt;. Car ID&lt;br&gt;
. Car Model&lt;br&gt;
. Brand&lt;br&gt;
. Selling Price&lt;/p&gt;

&lt;p&gt;Orders&lt;/p&gt;

&lt;p&gt;. Order ID&lt;br&gt;
. Customer ID&lt;br&gt;
. Car ID&lt;br&gt;
. Order Date&lt;br&gt;
. Units Sold&lt;br&gt;
The tables can be connected like this:&lt;/p&gt;

&lt;p&gt;Customers → Orders ← Cars&lt;/p&gt;

&lt;p&gt;The Customer ID connects Customers to Orders, while Car ID connects Cars to Orders.&lt;/p&gt;

&lt;p&gt;This model allows you to answer questions such as:&lt;br&gt;
a). How many cars did each customer buy?&lt;br&gt;
b). Which car brand generated the most sales?&lt;br&gt;
c). Which region had the highest sales?&lt;br&gt;
d). How much revenue was generated each month?&lt;/p&gt;

&lt;p&gt;Data Modelling in Power BI&lt;br&gt;
In Power BI, data modelling is especially important when creating reports.&lt;br&gt;
You can load different tables into Power BI and create relationships between them. A common structure is a star schema.&lt;/p&gt;

&lt;p&gt;A star schema normally has:&lt;br&gt;
. Fact table – contains transactions or measurements, such as sales.&lt;br&gt;
. Dimension tables – contain descriptive information, such as customers, cars, products, or dates.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
Customer Dimension → Sales Fact ← Car Dimension&lt;/p&gt;

&lt;p&gt;This structure makes the data easier to analyze and can support efficient DAX calculations.&lt;/p&gt;

&lt;h4&gt;
  
  
  Conclusion
&lt;/h4&gt;

&lt;p&gt;Data modelling is an important part of data analysis. It helps organize information into tables and shows how those tables are connected.&lt;br&gt;
Relationships connect tables, while joins are used to combine data from different tables.&lt;br&gt;
Understanding primary keys, foreign keys, relationship types, and joins is important for anyone learning SQL, Power BI, Power Query, or data analytics. &lt;/p&gt;

&lt;p&gt;A well-designed data model makes reporting, analysis, calculations, and data management easier and more reliable.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>writing</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Understanding Parametric and Non-Parametric Tests Made Simple</title>
      <dc:creator>Diana Wachenje</dc:creator>
      <pubDate>Tue, 07 Jul 2026 20:52:15 +0000</pubDate>
      <link>https://dev.to/diana_wachenje_c0bc1d1f1c/understanding-parametric-and-non-parametric-tests-made-simple-42k4</link>
      <guid>https://dev.to/diana_wachenje_c0bc1d1f1c/understanding-parametric-and-non-parametric-tests-made-simple-42k4</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Parametric and non-parametric statistical tests are used to analyze data. The main difference is whether the test made assumes the data follow a particular distribution usually known as normal distribution or not.&lt;/p&gt;

&lt;h3&gt;
  
  
  Definition
&lt;/h3&gt;

&lt;p&gt;1). Parametric tests&lt;br&gt;
Parametric tests are statistical tests used to analyze numerical data and also make assumptions about the population on data that has been collected.&lt;/p&gt;

&lt;p&gt;An example: Suppose a researcher wants to know whether a new drug lowers blood pressure more effectively than an old drug.&lt;/p&gt;

&lt;p&gt;The blood pressure readings (121,128,135,140 mmHg). These are continuous numerical data. The readings are normally distributed by the researcher through a parametric test known as the independent test to compare the average pressure between the two groups. &lt;/p&gt;

&lt;p&gt;2). Non-parametric tests&lt;br&gt;
Non-parametric tests are statistical tests that do not require to follow a specific distribution such as normal distribution. They are used when assumptions for parametric tests are not met. &lt;br&gt;
Example: A doctor compares patients' pain ratings before and after receiving physiotherapy.&lt;/p&gt;

&lt;h4&gt;
  
  
  Differences between parametric and non-parametric tests.
&lt;/h4&gt;

&lt;p&gt;1). Parametric tests compare means (averages) whereas non-parametric tests compare median, ranks, or frequencies.&lt;/p&gt;

&lt;p&gt;2). Parametric tests are more powerful when assumptions are met whereas non-parametric tests are powerful but more robust when assumptions are violated.&lt;/p&gt;

&lt;p&gt;3). Parametric tests are more sensitive to extreme outliers whereas non-parametric are less sensitive to outliers because many tests use rank instead raw values.&lt;/p&gt;

&lt;p&gt;4). Parametric tests often perform best with moderate or large samples whereas non-parametric are well suited with small samples. &lt;/p&gt;

&lt;p&gt;5). Parametric tests assume that the data follows a specific distribution (normal) whereas non-parametric tests do not require the data to follow a specific distribution.&lt;/p&gt;

&lt;h5&gt;
  
  
  Use of parametric and non-parametric tests and their role in data science.
&lt;/h5&gt;

&lt;p&gt;1). Use of Parametric Tests in Data Science&lt;/p&gt;

&lt;p&gt;a). Hypothesis testing.&lt;br&gt;
b). Predictive analytics.&lt;br&gt;
c). Measuring relationships among variables.&lt;br&gt;
d). Evaluating machine learning models using statical comparisons.&lt;/p&gt;

&lt;p&gt;2). Uses of Non-Parametric Tests in Data Science&lt;/p&gt;

&lt;p&gt;a). Analyzing survey and questionnaire data.&lt;br&gt;
b). Working with non-normal or incomplete datasets.&lt;br&gt;
c). Detecting associations in categorical variables.&lt;br&gt;
d). Validating results when parameters assumptions are not met. &lt;/p&gt;

&lt;p&gt;In conclusion parametric and non-parametric tests enable data scientists to choose appropriate analytical methods for different types of data leading to more reliable concluding and better-informed decisions. &lt;/p&gt;

</description>
      <category>opensource</category>
      <category>datascience</category>
      <category>learning</category>
    </item>
    <item>
      <title>STATISTICS MATTERS IN DATA SCIENCE</title>
      <dc:creator>Diana Wachenje</dc:creator>
      <pubDate>Wed, 24 Jun 2026 22:18:34 +0000</pubDate>
      <link>https://dev.to/diana_wachenje_c0bc1d1f1c/statistics-matters-in-data-science-4ndl</link>
      <guid>https://dev.to/diana_wachenje_c0bc1d1f1c/statistics-matters-in-data-science-4ndl</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Statistics is a branch of applied mathematics that helps one to collect, organize, analyze, interpret and present data.&lt;br&gt;
Its primary goal is to extract meaningful insights from numerical facts and figures to understand trends, summarize information and make information and make informed decisions in the face of uncertainty. &lt;/p&gt;

&lt;h2&gt;
  
  
  Statistical and non-statistical analysis
&lt;/h2&gt;

&lt;p&gt;This can be done in two ways;&lt;/p&gt;

&lt;p&gt;1). Statistical analysis &lt;br&gt;
This is used to collect, explore and present large amounts of data to identify patterns and trends. It is also called quantitative analysis.&lt;br&gt;
2). Non statistical analysis&lt;br&gt;
It provides generic information and includes text, sound, still images and moving images. It is also called qualitative analysis.&lt;/p&gt;

&lt;h3&gt;
  
  
  Major categories of statistics
&lt;/h3&gt;

&lt;p&gt;1). Descriptive statistics&lt;br&gt;
It helps organize data and focuses on the main characteristics of the data. It also provides a summary of the data numerically or graphically.&lt;br&gt;
. Examples of descriptive statistics;&lt;br&gt;
   . Mean (average)&lt;br&gt;
   . Median&lt;br&gt;
   . Mode&lt;br&gt;
   . Range &lt;br&gt;
   . Standard deviation&lt;br&gt;
An example; Finding the average score of students in a class.&lt;/p&gt;

&lt;p&gt;2). Inferential statistics&lt;br&gt;
It is used to make predictions and conclusions about a population based on a sample. It also helps in decision and forecasting.&lt;br&gt;
 . Examples of inferential statistics;&lt;br&gt;
   . Probability testing&lt;br&gt;
   . Regression analysis&lt;br&gt;
   . Hypothesis making&lt;br&gt;
   . Confidence intervals&lt;br&gt;
An example in a polling station a sample of 2000 voters to predict the outcome of a national election.&lt;/p&gt;

&lt;h4&gt;
  
  
  Types of Data
&lt;/h4&gt;

&lt;p&gt;What is data? &lt;br&gt;
This is a collection of raw fact values measurements collected for analysis. The main types of data are;&lt;/p&gt;

&lt;p&gt;1). Qualitative Data (Categorical Data)&lt;br&gt;
This is the type of data that describes qualities or characteristics and cannot be measured numerically.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; Types of Qualitative Data
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;. Nominal Data &lt;br&gt;
This is data grouped into categories with no specific order.&lt;br&gt;
   . Examples of nominal data;&lt;br&gt;
        . Gender&lt;br&gt;
        . Religion&lt;br&gt;
        . Eye color&lt;br&gt;
. Ordinal Data &lt;br&gt;
This is data grouped into categories that have an order or ranking.&lt;br&gt;
  . Examples of ordinal data;&lt;br&gt;
         . Customer satisfaction (poor, good, excellent)&lt;br&gt;
         . Class positions&lt;br&gt;
         . Education level&lt;/p&gt;

&lt;p&gt;2). Quantitative Data (Numerical Data)&lt;br&gt;
This is the type of data that consists of numbers and can be measured or counted.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Types of Quantitative Data

    . Discrete Data
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;These are countable numbers, usually whole numbers.&lt;br&gt;
           . Examples of discrete data; &lt;br&gt;
                . Number of students&lt;br&gt;
                . Number of cars&lt;br&gt;
                . Goal scored&lt;br&gt;
        . Continuous Data&lt;br&gt;
This is data that has measurable values which take any value within a range.&lt;br&gt;
           . Examples of continuous data;&lt;br&gt;
               . Height &lt;br&gt;
               . Weight&lt;br&gt;
               . Temperature&lt;/p&gt;

&lt;h5&gt;
  
  
  Statistical Data analysis steps
&lt;/h5&gt;

&lt;p&gt;1). Define the problem &lt;br&gt;
2). Collect data&lt;br&gt;
3). Organize and clean the data&lt;br&gt;
4). Explore the data&lt;br&gt;
5). Choose the appropriate statistical method&lt;br&gt;
6). Analyze the data&lt;br&gt;
7). Interpret Results&lt;br&gt;
8). Draw conclusions and make decisions &lt;br&gt;
9). Present the findings&lt;/p&gt;

&lt;h6&gt;
  
  
  Common mistakes
&lt;/h6&gt;

&lt;p&gt;1). Using poor quality data&lt;br&gt;
2). Confusing correlation with causation&lt;br&gt;
3). Misinterpreting Probability&lt;br&gt;
4). Data leaking&lt;br&gt;
5). Poor data visualization &lt;/p&gt;

&lt;p&gt;Conclusion&lt;br&gt;
Without statistics, data scientists would find it hard to analyze data science models which will lead to lack of accuracy, reliability, and scientific validity.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>learning</category>
      <category>datascience</category>
      <category>writing</category>
    </item>
    <item>
      <title># A BEGINNER'S JOURNEY INTO PANDAS</title>
      <dc:creator>Diana Wachenje</dc:creator>
      <pubDate>Sun, 21 Jun 2026 21:33:28 +0000</pubDate>
      <link>https://dev.to/diana_wachenje_c0bc1d1f1c/-a-beginners-journey-into-pandas-5fg4</link>
      <guid>https://dev.to/diana_wachenje_c0bc1d1f1c/-a-beginners-journey-into-pandas-5fg4</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Pandas is an open-source library used in python for data cleaning, manipulation, analysis and visualization. It allows users to work with structured data that is tables, spreadsheets and databases efficiently.&lt;br&gt;
The name Pandas came from "Panel Data". It is a term used in statistics and economics.&lt;/p&gt;

&lt;h3&gt;
  
  
  Importance of Pandas
&lt;/h3&gt;

&lt;p&gt;Organizations produce huge amounts of data every day. Pandas helps professionals to;&lt;/p&gt;

&lt;p&gt;. Clean, messy data&lt;br&gt;
. Analyze trends and patterns&lt;br&gt;
. Calculate statistics&lt;br&gt;
. Merge datasets&lt;br&gt;
. Prepare data for machine learning and visualization&lt;/p&gt;

&lt;h4&gt;
  
  
  Main Data Structures in Pandas
&lt;/h4&gt;

&lt;p&gt;1). Series&lt;br&gt;
A series is like a column in a table. It is a one-dimensional array holding data of any type.&lt;/p&gt;

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

&lt;p&gt;Python &lt;/p&gt;

&lt;p&gt;import pandas as pd &lt;br&gt;
age=pd. Series ([15, 25, 35,40]) &lt;br&gt;
 print(ages)&lt;/p&gt;

&lt;p&gt;Output&lt;br&gt;
Plain text&lt;br&gt;
0      15 &lt;br&gt;
1      25&lt;br&gt;
2      35&lt;br&gt;
3      40 &lt;/p&gt;

&lt;p&gt;2). Data Frame&lt;br&gt;
A Data Frame is a two-dimensional data structure, like two-dimensional array, a table with rows and columns.&lt;/p&gt;

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

&lt;p&gt;Python&lt;/p&gt;

&lt;p&gt;import pandas as pd &lt;/p&gt;

&lt;p&gt;lecturers: {&lt;/p&gt;

&lt;p&gt;"Name": ["Harun", "Bridgit", "Navas", "Emmanuel"]&lt;br&gt;
"Age": [30,24, 22, 25]&lt;br&gt;
}&lt;br&gt;
df=pd.DataFrame(lecturers)&lt;br&gt;
print(df)&lt;/p&gt;

&lt;p&gt;Output&lt;/p&gt;

&lt;p&gt;Plain text&lt;br&gt;
Name               Age&lt;br&gt;
0   Harun          30&lt;br&gt;
1   Bridgit        24&lt;br&gt;
2   Navas          22&lt;br&gt;
3   Emmanuel       25&lt;/p&gt;

&lt;h5&gt;
  
  
  Real-Life Uses of Pandas
&lt;/h5&gt;

&lt;p&gt;1). Education &lt;br&gt;
 Colleges and schools are able to analyze student performances.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
Python &lt;br&gt;
top_students=df[df["score"]&amp;gt;=80]&lt;br&gt;
print(top_students)&lt;/p&gt;

&lt;p&gt;2). Data Science and Machine Learning&lt;br&gt;
Data Scientists are able to clean data, analyze and prepare the data before building new models.&lt;/p&gt;

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

&lt;p&gt;Python &lt;br&gt;
df.dropna(inplace=True)&lt;br&gt;
This removes missing values from the dataset.&lt;/p&gt;

&lt;p&gt;3). Healthcare&lt;br&gt;
Hospitals are able to analyze the number of patients records and also improve the services.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
Python&lt;br&gt;
average_age=patients["age"]mean()&lt;br&gt;
print(average_age)&lt;/p&gt;

&lt;p&gt;Healthcare professionals are able to study diseases patterns and patient demographics.&lt;/p&gt;

&lt;p&gt;4). Business and Sales Analysis&lt;br&gt;
Companies are able to analyze sales performance and make decisions.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
Python &lt;br&gt;
sales=pd.read_csv("sales.csv")&lt;br&gt;
total_sales=sales["amount"].sum()&lt;br&gt;
print(total_sales)&lt;/p&gt;

&lt;p&gt;This helps business to determine:&lt;br&gt;
. Best-selling products&lt;br&gt;
. Total revenue&lt;br&gt;
. Monthly sales trends&lt;/p&gt;

&lt;h6&gt;
  
  
  Common Errors in Pandas
&lt;/h6&gt;

&lt;p&gt;While working with Pandas we often make these mistakes;&lt;/p&gt;

&lt;p&gt;1). Forgetting to import pandas&lt;br&gt;
    Python&lt;br&gt;
    df=pd.read_csv("data.csv")&lt;br&gt;
Name error: Name 'pd' is not defined&lt;/p&gt;

&lt;p&gt;2). Forgetting Parenthesis with Methods&lt;br&gt;
3). Confusing loc and iloc &lt;br&gt;
. Loc uses labels (names)&lt;br&gt;
. Iloc uses positions(numbers)&lt;/p&gt;

&lt;h6&gt;
  
  
  # Conclusion
&lt;/h6&gt;

&lt;p&gt;Pandas is one of the most powerful libraries in Python with data.&lt;br&gt;
It is commonly used in healthcare, finance, business, education and data science to clean, analyze and interpret data for better decision making. It is very essential for someone learning data science and data analysis.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>coding</category>
      <category>python</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How to Publish a Power BI Report and Embed it into a website</title>
      <dc:creator>Diana Wachenje</dc:creator>
      <pubDate>Sun, 05 Apr 2026 07:00:50 +0000</pubDate>
      <link>https://dev.to/diana_wachenje_c0bc1d1f1c/how-to-publish-a-power-bi-report-and-embed-it-into-a-website-kf4</link>
      <guid>https://dev.to/diana_wachenje_c0bc1d1f1c/how-to-publish-a-power-bi-report-and-embed-it-into-a-website-kf4</guid>
      <description>&lt;h2&gt;
  
  
  A brief introduction of Power BI and Publishing Process
&lt;/h2&gt;

&lt;p&gt;Power BI is a business tool that has been developed for analysis by Microsoft to allow user visualization of data, create interactive reports and share some insights across an organization or company. Whereas publishing process is just sharing your report so that others can have access to it. So far learnt about Power BI Queries, DAX, data modelling, joins, charts, dashboards and reporting.&lt;/p&gt;

&lt;p&gt;Power BI consists of three main components:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Power BI Desktop - It is used to build reports and data models.&lt;/li&gt;
&lt;li&gt;Power BI Service - This is a cloud-based platform which is used to share, collaborate and one is able to access reports online.&lt;/li&gt;
&lt;li&gt;Power BI Mobile - These are just apps in the smartphones or tablets used for viewing dashboards.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Here are few steps to follow while creating workspace
&lt;/h3&gt;

&lt;p&gt;1). Create a Report &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ensure you have built your report in Power BI Desktop by using visuals like charts, tables and maps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2). Save the File&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Always ensure your work is saved in (pbix format).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;3). Sign In&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Log into your Power BI account (Usually through an organization or Microsoft Account).
Examples: &lt;a href="mailto:datascience@luxdevhq.com"&gt;datascience@luxdevhq.com&lt;/a&gt; or &lt;a href="mailto:johndoe@gmail.com"&gt;johndoe@gmail.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;4). Publish the Report&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click the publish button, a shade of blue at the far end on the left written Publish.&lt;/li&gt;
&lt;li&gt;Choose a destination Workspace in Power BI Service this can either be Shared Workspace for an organization or My Workspace for personal use.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;5). Access Power BI Service&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your report will be uploaded on cloud where it can be viewed in a browser.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;6). Share and Collaborate&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Once the report is published you can share with colleagues via links, apps or workspace access.&lt;/li&gt;
&lt;li&gt;You can also restrict your work by choosing to make it public or private, choosing who can or cannot see it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;7). Schedule Refresh&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This is optional, you can decide to refresh your report so that it can be up to date. &lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>opensource</category>
      <category>learning</category>
      <category>datascience</category>
    </item>
    <item>
      <title>UNDERSTANDING DATA MODELLING IN POWER BI</title>
      <dc:creator>Diana Wachenje</dc:creator>
      <pubDate>Mon, 30 Mar 2026 22:04:58 +0000</pubDate>
      <link>https://dev.to/diana_wachenje_c0bc1d1f1c/-understanding-data-modelling-in-power-bi-5hf2</link>
      <guid>https://dev.to/diana_wachenje_c0bc1d1f1c/-understanding-data-modelling-in-power-bi-5hf2</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Power BI is a business analytic platform that transforms raw data into actionable insights through visualizations and reports that helps users to analyze data, identify trends securely across organizations to make data-driven decisions.&lt;br&gt;
Data modelling is the process to connect, structure, optimize data tables to work efficiently together.&lt;/p&gt;

&lt;h3&gt;
  
  
  Concepts to Understand
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Joins&lt;br&gt;
Joins are performed in Power Query where you combine two columns by selecting the first and the second table and join them by clicking on the headers. Also ensure they have same data type for accurate matching.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Relationships&lt;br&gt;
Relationships define how table connect. These are,&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;One-to-Many (Most common)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Many-to-One&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Many-to- Many (Used carefully)&lt;br&gt;
Example:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;One customer- Many Sales&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Schemas&lt;br&gt;
Schemas refers to the way your data is structured either in facts tables or dimensions and organized in the data model.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;One Central fact table&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Multiple surrounding dimension tables&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Power BI Relationships
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt; Cardinality
Cardinality is how rows relate:&lt;/li&gt;
&lt;li&gt;One-to- One&lt;/li&gt;
&lt;li&gt;One-to- Many&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Many-to- Many&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cross Filter Direction&lt;br&gt;
It controls how filters move between tables:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Single direction&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Both directions&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  Commonly modelling issues
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;Not using proper Data Table&lt;/li&gt;
&lt;li&gt;Mixing fact and dimensional data &lt;/li&gt;
&lt;li&gt;Creating too many many-to-many relationships&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;
  
  
  Steps-by-steps Data modeling process
&lt;/h6&gt;

&lt;p&gt;Step 1: Load Data&lt;br&gt;
Import from Excel, SQL etc.&lt;br&gt;
Step 2: Clean Data (Power Query)&lt;br&gt;
Fix structure before modelling&lt;br&gt;
Step 3: Create Relationships&lt;br&gt;
Go to model view and connect tables&lt;br&gt;
Step 4: Build Star Schema&lt;br&gt;
Organize tables properly&lt;br&gt;
Step 5: Create measures (DAX)&lt;br&gt;
Add business logic&lt;br&gt;
Step 6: Optimize Model&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Remove unused columns&lt;/li&gt;
&lt;li&gt;Use correct data types&lt;/li&gt;
&lt;li&gt;Avoid unnecessary relationships &lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;
  
  
  # Simple Real-life Examples
&lt;/h6&gt;

&lt;p&gt;In a mini mart setup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sales table- transactions &lt;/li&gt;
&lt;li&gt;Product table- item details&lt;/li&gt;
&lt;li&gt;Customer table- buyer information&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;
  
  
  ## Why Data Modelling is important
&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;Faster reports&lt;/li&gt;
&lt;li&gt;Accurate Insights
-Easier Dashboards&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>beginners</category>
      <category>learning</category>
      <category>datascience</category>
    </item>
    <item>
      <title>HOW EXCEL IS USED IN REAL -WORLD ANALYSIS</title>
      <dc:creator>Diana Wachenje</dc:creator>
      <pubDate>Sun, 29 Mar 2026 18:28:58 +0000</pubDate>
      <link>https://dev.to/diana_wachenje_c0bc1d1f1c/how-excel-is-used-in-real-world-analysis-35h0</link>
      <guid>https://dev.to/diana_wachenje_c0bc1d1f1c/how-excel-is-used-in-real-world-analysis-35h0</guid>
      <description>&lt;h1&gt;
  
  
  Microsoft Excel
&lt;/h1&gt;

&lt;p&gt;Microsoft Excel is a spreadsheet that has been designed for data entry methods, basic formula creation, data sorting and filtering, basic charts and visualizations and file management. Through Excel one gets to identify the knowledge level, explore specific features of interests and applies it through practical examples.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Excel is used in Real World Scenarios
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Personal and project management
Excel is used for personal finances an individual tracks their budgets, calculate expenses and visualize spending trends with charts. Whereas students; it helps them analyze academic performance, for researching data and organizing course schedules.&lt;/li&gt;
&lt;li&gt;Business and Financial Application
Excel is used widely in business for organizing data, creating budget forecasts, analyze revenue trends, manage cash flows data analysis and reporting, operational and resource management, administrative and scheduling, inventory and pharmacy management, financial and billing, patient monitoring and research to track the performance.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Examples of features and formulas
&lt;/h3&gt;

&lt;p&gt;Excel has different functions which are used in the worksheet to perform calculations in the cell values provided.&lt;/p&gt;

&lt;h4&gt;
  
  
  Basic Functions
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;SUM, AVERAGE, COUNT, MAX, MIN&lt;/li&gt;
&lt;li&gt;Mathematical operations&lt;/li&gt;
&lt;li&gt;Text manipulation functions&lt;/li&gt;
&lt;li&gt;Date and time functions&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  Intermediate Functions
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;VLOOKUP, HLOOKUP, INDEX, MATCH
-Logical functions (IF, AND, OR, NOT)
-Error handling (IFERROR, IFNA)&lt;/li&gt;
&lt;li&gt;COUNTIF, SUMIF and the variants&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;
  
  
  Advanced Functions
&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;Array formulas&lt;/li&gt;
&lt;li&gt;Financial functions (NPV, PMT)&lt;/li&gt;
&lt;li&gt;Statical analysis function&lt;/li&gt;
&lt;li&gt;Database functions &lt;/li&gt;
&lt;li&gt;Power Query introduction&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;
  
  
  # Data analysis Features
&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;PivotTables and Pivot Charts&lt;/li&gt;
&lt;li&gt;Data validation techniques&lt;/li&gt;
&lt;li&gt;Conditional formatting strategies&lt;/li&gt;
&lt;li&gt;What-if analysis tools&lt;/li&gt;
&lt;li&gt;Dashboard creation techniques&lt;/li&gt;
&lt;/ul&gt;

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