<?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: Noel Mwami</title>
    <description>The latest articles on DEV Community by Noel Mwami (@noelmwamilab).</description>
    <link>https://dev.to/noelmwamilab</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3818884%2Fa6f70048-68db-4329-83ad-0f69f41d1e65.png</url>
      <title>DEV Community: Noel Mwami</title>
      <link>https://dev.to/noelmwamilab</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/noelmwamilab"/>
    <language>en</language>
    <item>
      <title># Python and Data Analytics</title>
      <dc:creator>Noel Mwami</dc:creator>
      <pubDate>Mon, 11 May 2026 05:17:23 +0000</pubDate>
      <link>https://dev.to/noelmwamilab/-python-and-data-analytics-4e62</link>
      <guid>https://dev.to/noelmwamilab/-python-and-data-analytics-4e62</guid>
      <description>&lt;p&gt;I have been spending time exploring the world of data analytics, and came across Python in the recent weeks. I have seen it on job listings, online courses and YouTube tutorial. But what is it about this programming language — originally created in 1991 by Guido van Rossum — that has made it the go-to tool for data analysts, data scientists, and business intelligence professionals around the world?&lt;br&gt;
This article is for anyone who is curious about Python and wants to understand why it matters in the data space — no prior coding experience required as i don't have any myself.&lt;/p&gt;
&lt;h2&gt;
  
  
  What Is Python?
&lt;/h2&gt;

&lt;p&gt;Python is a general-purpose programming language. "General-purpose" means it wasn't built for just one thing. You can use it to build websites, automate boring tasks on your computer, control robots, and yes — analyze data.&lt;/p&gt;

&lt;p&gt;What sets Python apart from many other languages is how readable it is. Its syntax (that is the rules of how you write code) is designed to look almost like plain English. Here's a small example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;sales&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;1500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;900&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;total_sales&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sales&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;total_sales:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;total_sales&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Even if you've never written a line of code, you can probably guess what this does: it calculates the total sales of a list of sales figures and prints the result. This accessibility is one of the core reasons Python has taken over the data world.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Core Tools: Python's Data Analytics Ecosystem
&lt;/h2&gt;

&lt;p&gt;One of the most important things to understand is that "Python for data analytics" is not really just Python. It's Python plus a handful of incredibly powerful libraries. Think of Python as the hospital, and these libraries as the professional surgeons , nurses and everything inside it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Features of Python
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Easy to Learn:&lt;/strong&gt; Python uses simple English-like syntax.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Versatile:&lt;/strong&gt; It can be used for web development, automation, machine learning, and data analytics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Large Community:&lt;/strong&gt; There are millions of Python users worldwide, making it easy to find help.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rich Libraries:&lt;/strong&gt; Python has many libraries specifically built for data analytics.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is Data Analytics?
&lt;/h2&gt;

&lt;p&gt;Data analytics is the process of examining data to extract useful insights. It involves collecting, cleaning, analyzing, and interpreting data to support decision-making.&lt;/p&gt;

&lt;p&gt;Data analytics typically involves the following steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Data Collection&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data Cleaning&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data Exploration&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data Analysis&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data Visualization&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Decision Making&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Python supports all these steps, making it a complete solution for data analytics.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Python is Popular in Data Analytics
&lt;/h2&gt;

&lt;p&gt;Python has become the go-to language for data analytics for several reasons we will explore some of them below&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Simplicity and Readability
&lt;/h3&gt;

&lt;p&gt;Python code is easy to read and write. This allows analysts to focus more on solving problems rather than struggling with complex syntax.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Powerful Libraries
&lt;/h3&gt;

&lt;p&gt;Python has a wide range of libraries that make data analysis easier and faster. Some of the most commonly used ones include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pandas&lt;/strong&gt; – Used for data manipulation and analysis&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NumPy&lt;/strong&gt; – Used for numerical computations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Matplotlib&lt;/strong&gt; – Used for data visualization&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Seaborn&lt;/strong&gt; – Used for advanced data visualization&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scikit-learn&lt;/strong&gt; – Used for machine learning
These libraries reduce the need to write complex code from scratch.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Integration with Other Tools
&lt;/h3&gt;

&lt;p&gt;Python can easily integrate with databases, Excel, web applications, and big data platforms. This makes it very flexible in different working environments.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Open Source
&lt;/h3&gt;

&lt;p&gt;Python is free to use, which makes it accessible to individuals and organizations of all sizes.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Strong Community Support
&lt;/h3&gt;

&lt;p&gt;If you encounter a problem, chances are someone else has already solved it. There are countless tutorials, forums, and documentation available online.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Python is Used in Data Analytics
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Let’s explore how Python is applied at different stages of the data analytics process.
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Data Collection
&lt;/h3&gt;

&lt;p&gt;Data can come from many sources such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Excel files&lt;/li&gt;
&lt;li&gt;Databases&lt;/li&gt;
&lt;li&gt;APIs (Application Programming Interfaces)&lt;/li&gt;
&lt;li&gt;Web scraping
Python makes it easy to collect data from these sources.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Example:
&lt;/h4&gt;

&lt;p&gt;Using Python, you can read an Excel file in just a few lines of code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pandas&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;
&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pd&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_excel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sales_data.xlsx&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;head&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Data Cleaning
&lt;/h3&gt;

&lt;p&gt;Raw data is often messy. It may contain missing values, duplicates, or errors. Data cleaning is an important step before analysis.&lt;/p&gt;

&lt;p&gt;Python, especially the Pandas library, is very powerful for cleaning data.&lt;/p&gt;

&lt;h4&gt;
  
  
  Common Cleaning Tasks:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Removing duplicates&lt;/li&gt;
&lt;li&gt;Filling missing values&lt;/li&gt;
&lt;li&gt;Renaming columns&lt;/li&gt;
&lt;li&gt;Converting data types&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Example:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;drop_duplicates&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fillna&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  3. Data Exploration
&lt;/h3&gt;

&lt;p&gt;Data exploration helps you understand the structure and patterns in your data.&lt;br&gt;
With Python, you can quickly summarize and inspect your dataset.&lt;/p&gt;

&lt;h4&gt;
  
  
  Example:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;describe&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These commands provide useful information such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mean&lt;/li&gt;
&lt;li&gt;Standard deviation&lt;/li&gt;
&lt;li&gt;Data types&lt;/li&gt;
&lt;li&gt;Missing values&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  4. Data Analysis
&lt;/h3&gt;

&lt;p&gt;This is where you start extracting insights from the data.&lt;br&gt;
You can perform calculations, group data, and identify trends.&lt;/p&gt;

&lt;h4&gt;
  
  
  Example:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;total_sales&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sales&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;sales_by_region&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;groupby&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;region&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sales&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;total_sales&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sales_by_region&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  5. Data Visualization
&lt;/h3&gt;

&lt;p&gt;Data visualization helps present insights in a clear and understandable way.&lt;br&gt;
Python provides several libraries for creating charts and graphs.&lt;/p&gt;

&lt;h4&gt;
  
  
  Example:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;matplotlib.pyplot&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;plt&lt;/span&gt;
&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;groupby&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;region&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sales&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;plot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bar&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates a bar chart showing sales by region.&lt;/p&gt;




&lt;h3&gt;
  
  
  6. Reporting and Decision Making
&lt;/h3&gt;

&lt;p&gt;Once analysis is complete, results are shared with stakeholders.&lt;br&gt;
Python can generate reports, dashboards, or export results to Excel.&lt;/p&gt;




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

&lt;p&gt;Python is used across many industries. Here are some examples:&lt;/p&gt;

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

&lt;p&gt;In finance, Python is used for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Risk analysis&lt;/li&gt;
&lt;li&gt;Fraud detection&lt;/li&gt;
&lt;li&gt;Financial forecasting&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;In healthcare, Python helps with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Patient data analysis&lt;/li&gt;
&lt;li&gt;Disease prediction&lt;/li&gt;
&lt;li&gt;Medical research&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Retail businesses use Python to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Analyze customer behavior&lt;/li&gt;
&lt;li&gt;Optimize pricing&lt;/li&gt;
&lt;li&gt;Manage inventory&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;In marketing, Python is used for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Campaign analysis&lt;/li&gt;
&lt;li&gt;Customer segmentation&lt;/li&gt;
&lt;li&gt;Social media analytics&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Python Tools for Data Analytics
&lt;/h2&gt;

&lt;p&gt;There are several tools that make working with Python easier&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Jupyter Notebook
&lt;/h3&gt;

&lt;p&gt;Jupyter Notebook is an interactive environment where you can write and run Python code. It is widely used in data analytics because it allows you to combine code, text, and visualizations in one place.&lt;/p&gt;

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

&lt;p&gt;Anaconda is a distribution of Python that comes with many pre-installed libraries for data analytics.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Visual Studio Code
&lt;/h3&gt;

&lt;p&gt;This is a popular code editor that supports Python development.&lt;/p&gt;




&lt;h2&gt;
  
  
  Advantages of Using Python in Data Analytics
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Easy to learn for beginners&lt;/li&gt;
&lt;li&gt;Large ecosystem of libraries&lt;/li&gt;
&lt;li&gt;Strong community support&lt;/li&gt;
&lt;li&gt;Works well with big data tools&lt;/li&gt;
&lt;li&gt;Suitable for automation&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Challenges of Using Python
&lt;/h2&gt;

&lt;p&gt;While Python is powerful, it also has some limitations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Slower than some languages like C++&lt;/li&gt;
&lt;li&gt;Requires memory for large datasets&lt;/li&gt;
&lt;li&gt;Can be overwhelming due to many libraries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, these challenges can be managed with experience and proper tools.&lt;/p&gt;




&lt;h2&gt;
  
  
  Getting Started with Python for Data Analytics
&lt;/h2&gt;

&lt;p&gt;If you are new to Python, here are some steps to begin:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install Python or Anaconda&lt;/li&gt;
&lt;li&gt;Learn basic Python syntax&lt;/li&gt;
&lt;li&gt;Practice using Pandas and NumPy&lt;/li&gt;
&lt;li&gt;Work on small projects&lt;/li&gt;
&lt;li&gt;Explore real datasets&lt;/li&gt;
&lt;/ol&gt;




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

&lt;p&gt;Python has become one of the most important tools in data analytics. Its simplicity, flexibility, and powerful libraries make it ideal for beginners and professionals alike.&lt;/p&gt;

&lt;p&gt;From data collection to visualization, Python provides everything you need to analyze data and make informed decisions. Whether you are working in finance, healthcare, marketing, or any other field, learning Python can significantly enhance your data analytics skills.&lt;/p&gt;

&lt;p&gt;As you continue your journey, remember that practice is key. The more you work with data using Python, the more confident and skilled you will become.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Data analytics is not just about tools; it is about solving problems and making better decisions. Python simply makes that process easier and more efficient.&lt;/p&gt;

&lt;p&gt;If you are starting your career in data analytics, Python is one of the best investments you can make in your learning journey.&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>beginners</category>
      <category>datascience</category>
      <category>python</category>
    </item>
    <item>
      <title>SQL Concepts and Practical Application</title>
      <dc:creator>Noel Mwami</dc:creator>
      <pubDate>Sat, 11 Apr 2026 12:24:07 +0000</pubDate>
      <link>https://dev.to/noelmwamilab/sql-concepts-and-practical-application-17dd</link>
      <guid>https://dev.to/noelmwamilab/sql-concepts-and-practical-application-17dd</guid>
      <description>&lt;p&gt;&lt;strong&gt;SQL is a language used to store, retrieve, and analyze data in databases.&lt;/strong&gt;&lt;br&gt;
SQL commands are grouped into categories based on their purpose.&lt;br&gt;
The main two categories are;&lt;br&gt;
&lt;strong&gt;DDL (&lt;em&gt;Data Definition Language&lt;/em&gt;) vs DML (&lt;em&gt;Data Manipulation Language&lt;/em&gt;) explained briefly below&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DDL (Data Definition Language):&lt;/strong&gt; Used to define and structure database objects such as tables.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DML (Data Manipulation Language):&lt;/strong&gt; Used to manage and manipulate data inside those tables.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Difference between DDL &amp;amp; DML&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Aspect&lt;/th&gt;
&lt;th&gt;DDL (Data Definition Language)&lt;/th&gt;
&lt;th&gt;DML (Data Manipulation Language)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Purpose&lt;/td&gt;
&lt;td&gt;Defines database structure&lt;/td&gt;
&lt;td&gt;Manipulates data in tables&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commands&lt;/td&gt;
&lt;td&gt;CREATE, ALTER, DROP&lt;/td&gt;
&lt;td&gt;INSERT, UPDATE, DELETE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Effect&lt;/td&gt;
&lt;td&gt;Changes schema&lt;/td&gt;
&lt;td&gt;Changes records/data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Example&lt;/td&gt;
&lt;td&gt;CREATE TABLE students&lt;/td&gt;
&lt;td&gt;INSERT INTO students VALUES (...)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  2. Use of CREATE, INSERT, UPDATE, DELETE
&lt;/h2&gt;

&lt;p&gt;In my assignment this week i was able to do the to use the below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CREATE&lt;/strong&gt; was used to define tables such as students, exam results, and subjects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;INSERT&lt;/strong&gt; was used to add records into the tables.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UPDATE&lt;/strong&gt; was used to correct or modify existing data, such as updating a student’s city or correcting marks in the exam results table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DELETE&lt;/strong&gt; was used to remove incorrect or cancelled records. For example, &lt;code&gt;result_id 9&lt;/code&gt; was deleted from the exam results table.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  3. Filtering Data Using WHERE
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;WHERE&lt;/code&gt; clause was used to filter records based on specific conditions. It supports several operators including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;=&lt;/code&gt; (equal to)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;&lt;/code&gt; (greater than / less than)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;BETWEEN&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;IN&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;LIKE&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Examples:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;LIKE (pattern matching):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;'A%'&lt;/code&gt; → starts with A
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;'E%'&lt;/code&gt; → starts with E
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;'%Studies%'&lt;/code&gt; → contains "Studies"&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;strong&gt;IN (multiple values):&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
WHERE city IN ('Nairobi', 'Mombasa', 'Kisumu')&lt;br&gt;&lt;br&gt;
WHERE marks BETWEEN 50 AND 80&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. CASE WHEN for Data Transformation
&lt;/h2&gt;

&lt;p&gt;CASE WHEN was used to create conditional logic in SQL queries.&lt;/p&gt;

&lt;p&gt;It helped transform raw data into meaningful categories. For example, exam marks were classified into:&lt;br&gt;
Distinction,Merit,Pass,Fail based on score ranges.&lt;/p&gt;

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

&lt;p&gt;This being my first week in using SQL .I learned how SQL is used to manage and analyze data efficiently.&lt;/p&gt;

&lt;p&gt;The most interesting part was creating tables from scratch and adding data into them. Seeing the results using SELECT * was fascinating.&lt;/p&gt;

&lt;p&gt;The most challenging part was ensuring correct syntax when writing multiple-row INSERT statements and using filtering conditions correctly. It was surprising how a small mistake like a missing comma could cause errors.&lt;/p&gt;

&lt;p&gt;Overall, this has improved my understanding of how databases are structured and how data is manipulated in real-world scenarios. Its only the beginning and i already love it.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>database</category>
      <category>sql</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>A Guide on Publishing Power BI Report and Embedding It on a Website Using iFrames</title>
      <dc:creator>Noel Mwami</dc:creator>
      <pubDate>Fri, 10 Apr 2026 15:51:52 +0000</pubDate>
      <link>https://dev.to/noelmwamilab/a-guide-on-publishing-power-bi-report-and-embedding-it-on-a-website-using-iframes-4a68</link>
      <guid>https://dev.to/noelmwamilab/a-guide-on-publishing-power-bi-report-and-embedding-it-on-a-website-using-iframes-4a68</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Introduction
Power BI is a business analytics tool that allows users to visualize data and share views across organizations. It has features that allows publishing of reports online and embedding them into websites using iframes.&lt;/li&gt;
&lt;li&gt;Requirements 
Before you begin or publish the power BI report , ensure you have:&lt;/li&gt;
&lt;li&gt;A Power BI account&lt;/li&gt;
&lt;li&gt;A completed Power BI report&lt;/li&gt;
&lt;li&gt;Access to Power BI Service (app.powerbi.com)&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Basic understanding of HTML&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Step 1: Create Your Report in Power BI Desktop&lt;br&gt;
Design your report with visuals, charts, and filters.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fukhg8n3h6dj168bb44w8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fukhg8n3h6dj168bb44w8.png" alt="Report in power BI" width="800" height="502"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Step 2: Publish to Power BI Service
Log into Power BI service 
Under workspace , create new work space with your name&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvonf6xtdn25iylukaugn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvonf6xtdn25iylukaugn.png" alt="Creating workspace in power service" width="569" height="587"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open the power BI report to publish &lt;br&gt;
Go to file. Click "Publish" in Power BI Desktop choose the work space to publish report to&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz8wwjro02uyy1fth3t48.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz8wwjro02uyy1fth3t48.png" alt="Publish in power BI" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Step 3: Open Report in Power BI Service&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Step 4: Generate Embed Code&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open report&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click File &amp;gt; Embed Report &amp;gt; Publish to Web&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0snh1fakscf56ltcx7ww.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0snh1fakscf56ltcx7ww.png" alt="Embedding Report" width="800" height="319"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7 step 5:- Confirm and copy iframe code&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fec4btf3tgn8gjwuzd7ex.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fec4btf3tgn8gjwuzd7ex.png" alt="Copying the iframe" width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Step 6: Embed in Website
Paste iframe into your HTML file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Firpi46ctb2an68n8raeb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Firpi46ctb2an68n8raeb.png" alt="Pasting iframe link in html code" width="800" height="269"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Save the file with .html extension&lt;br&gt;
Click the file copy the path and paste in your browser if it works.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fshcgacry56f1y77wlguo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fshcgacry56f1y77wlguo.png" alt="saved file in html" width="800" height="531"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For  example my link to the above file is a below click on it and see how a practiced power BI recently file:///C:/Users/nmwami/Desktop/PUBLISHING/Electronic%20sales%20Assignment.html&lt;br&gt;
Conclusion&lt;br&gt;
Embedding Power BI reports enhances interactivity and data sharing on websites.&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>microsoft</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How Excel is Used in Real-World Data Analysis</title>
      <dc:creator>Noel Mwami</dc:creator>
      <pubDate>Fri, 27 Mar 2026 16:32:36 +0000</pubDate>
      <link>https://dev.to/noelmwamilab/how-excel-is-used-in-real-world-data-analysis-2lkg</link>
      <guid>https://dev.to/noelmwamilab/how-excel-is-used-in-real-world-data-analysis-2lkg</guid>
      <description>&lt;p&gt;Description: Explore the enduring relevance of Microsoft Excel in professional data analysis, from auditing to business decision-making.&lt;br&gt;
tags: data analysis, excel, tutorial, productivity&lt;/p&gt;

&lt;p&gt;In today’s data-driven world, organizations rely heavily on tools that can help them organize, analyze, and interpret data efficiently. One of the most widely used tools for this purpose is Microsoft Excel. Despite the rise of advanced data analytics platforms, Excel remains a powerful and accessible solution for professionals across finance, auditing, operations, and many other fields.&lt;/p&gt;

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

&lt;p&gt;Excel is a spreadsheet application developed by Microsoft that allows users to store, organize, and analyze data using rows and columns. It provides a wide range of features such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Formulas and Functions:&lt;/strong&gt; For automated calculations.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Charts and Graphs:&lt;/strong&gt; For data visualization.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Pivot Tables:&lt;/strong&gt; For summarizing large datasets.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These tools make it suitable for both simple calculations and complex data analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real-World Applications of Excel in Data Analysis
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Internal Audit and Risk Analysis
&lt;/h3&gt;

&lt;p&gt;In audit environments, Excel is essential for testing controls and identifying anomalies in data. Auditors use Excel to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Detect duplicate transactions.&lt;/li&gt;
&lt;li&gt;  Identify gaps in voucher sequences.&lt;/li&gt;
&lt;li&gt;  Analyze unusual posting dates.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For instance, using sorting and filtering, an auditor can quickly highlight missing sequence numbers in payment vouchers, which may indicate control weaknesses.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Data Cleaning and Preparation
&lt;/h3&gt;

&lt;p&gt;Raw data is often "messy" and needs cleaning before analysis. Excel helps users:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Remove duplicates.&lt;/li&gt;
&lt;li&gt;  Split or combine text fields.&lt;/li&gt;
&lt;li&gt;  Standardize formats.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Functions like &lt;code&gt;TRIM&lt;/code&gt;, &lt;code&gt;LEFT&lt;/code&gt;, &lt;code&gt;RIGHT&lt;/code&gt;, and &lt;code&gt;MID&lt;/code&gt; are commonly used to clean and manipulate text data.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Business Decision-Making
&lt;/h3&gt;

&lt;p&gt;Managers and analysts use Excel dashboards and charts to visualize trends and support decision-making. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Sales trends over time.&lt;/li&gt;
&lt;li&gt;  Customer purchasing patterns.&lt;/li&gt;
&lt;li&gt;  Inventory levels.&lt;/li&gt;
&lt;li&gt;  Customer satisfaction by analyzing product rejection rates.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Excel Features and Formulas
&lt;/h2&gt;

&lt;h3&gt;
  
  
  VLOOKUP / XLOOKUP
&lt;/h3&gt;

&lt;p&gt;These functions are used to retrieve data from a table based on a matching value. For example, matching customer IDs with names from a separate dataset.&lt;/p&gt;

&lt;h3&gt;
  
  
  IF Function
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;IF&lt;/code&gt; function applies logical conditions to data.&lt;br&gt;
&lt;strong&gt;Example:&lt;/strong&gt; Classifying transactions as “High Risk” or “Low Risk” based on value:&lt;br&gt;
&lt;code&gt;=IF(A2&amp;gt;100000,"High Risk","Low Risk")&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Pivot Tables
&lt;/h3&gt;

&lt;p&gt;Pivot tables summarize large datasets quickly. An auditor can summarize total expenses by department or month without writing complex formulas.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Excel Remains Relevant
&lt;/h2&gt;

&lt;p&gt;Even with advanced tools like Python and Power BI, Excel remains a staple because:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Accessibility:&lt;/strong&gt; It is easy to learn and widely available.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;No Programming Needed:&lt;/strong&gt; It requires no coding knowledge to get started.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Integration:&lt;/strong&gt; It integrates well with almost every enterprise system.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Flexibility:&lt;/strong&gt; It is effective for both small and large datasets.&lt;/li&gt;
&lt;/ol&gt;

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

&lt;p&gt;Excel continues to be a vital tool in real-world data analysis across various industries. From financial reporting to audit testing and decision-making, its features enable users to transform raw data into meaningful insights. &lt;/p&gt;

&lt;p&gt;Mastering Excel is an essential foundation that opens the door to more advanced analytical tools. Give it a try—you won't regret it! Start Learning Excel Today&lt;/p&gt;

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