<?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: Kelvin Katwai</title>
    <description>The latest articles on DEV Community by Kelvin Katwai (@kelvin_katwai_a8f64e9e502).</description>
    <link>https://dev.to/kelvin_katwai_a8f64e9e502</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%2F3266760%2Fa53ea157-5005-4d0c-83ae-eaf7e266f962.jpg</url>
      <title>DEV Community: Kelvin Katwai</title>
      <link>https://dev.to/kelvin_katwai_a8f64e9e502</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kelvin_katwai_a8f64e9e502"/>
    <language>en</language>
    <item>
      <title>🚀 Getting Started with Data Analytics Using Python: A Beginner’s Guide</title>
      <dc:creator>Kelvin Katwai</dc:creator>
      <pubDate>Tue, 22 Jul 2025 08:01:10 +0000</pubDate>
      <link>https://dev.to/kelvin_katwai_a8f64e9e502/getting-started-with-data-analytics-using-python-a-beginners-guide-ok</link>
      <guid>https://dev.to/kelvin_katwai_a8f64e9e502/getting-started-with-data-analytics-using-python-a-beginners-guide-ok</guid>
      <description>&lt;p&gt;&lt;strong&gt;👋 Introduction&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Data is everywhere—shaping how businesses grow, how products are built, and how decisions are made. But how do we extract value from it?&lt;/p&gt;

&lt;p&gt;That’s where &lt;strong&gt;data analytics&lt;/strong&gt; comes in.&lt;/p&gt;

&lt;p&gt;As someone who's recently stepped into the world of data, I’ve learned that &lt;strong&gt;Python&lt;/strong&gt; is one of the most powerful and beginner-friendly tools for data analysis. In this post, I’ll walk you through what you need to get started, the core libraries you'll use, and even a small example script to try out on your own.&lt;/p&gt;




&lt;h2&gt;
  
  
  📌 Why Python for Data Analytics?
&lt;/h2&gt;

&lt;p&gt;Python is the go-to language for data analytics because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It has &lt;strong&gt;simple, readable syntax&lt;/strong&gt; (great for beginners)&lt;/li&gt;
&lt;li&gt;A large community and ecosystem of tools&lt;/li&gt;
&lt;li&gt;Plenty of libraries specifically built for data tasks&lt;/li&gt;
&lt;li&gt;It's widely used in the industry&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whether you're analyzing survey results, building dashboards, or exploring big datasets—Python gets the job done.&lt;br&gt;
**&lt;br&gt;
🧰 What You Need to Get Started**&lt;/p&gt;

&lt;p&gt;Before writing your first line of code, here’s a checklist of what you’ll need:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;✅ Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python 3.8+&lt;/strong&gt; – Download from &lt;a href="https://www.python.org" rel="noopener noreferrer"&gt;python.org&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text Editor or IDE&lt;/strong&gt; – Use &lt;a href="https://code.visualstudio.com" rel="noopener noreferrer"&gt;VS Code&lt;/a&gt;, Jupyter Notebook, or PyCharm&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;pip&lt;/strong&gt; – Python’s package manager (comes pre-installed)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Virtual Environment (recommended)&lt;/strong&gt; – Keeps your project dependencies isolated&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;🎯 Setting up a Virtual Environment:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Create a virtual environment&lt;/span&gt;
python &lt;span class="nt"&gt;-m&lt;/span&gt; venv venv

&lt;span class="c"&gt;# Activate it&lt;/span&gt;
&lt;span class="c"&gt;# On Windows:&lt;/span&gt;
venv&lt;span class="se"&gt;\S&lt;/span&gt;cripts&lt;span class="se"&gt;\a&lt;/span&gt;ctivate

&lt;span class="c"&gt;# On macOS/Linux:&lt;/span&gt;
&lt;span class="nb"&gt;source &lt;/span&gt;venv/bin/activate
&lt;span class="k"&gt;**&lt;/span&gt;
🧠 Essential Python Libraries &lt;span class="k"&gt;for &lt;/span&gt;Data Analytics&lt;span class="k"&gt;**&lt;/span&gt;
Let’s look at the four most commonly used Python libraries &lt;span class="k"&gt;in &lt;/span&gt;data analytics:

1. NumPy
For working with arrays and performing numerical calculations.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
import numpy as np&lt;br&gt;
data = np.array([10, 20, 30])&lt;br&gt;
print(data.mean())  # Output: 20.0&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
2. Pandas
For working with structured data using DataFrames (think spreadsheets).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
import pandas as pd&lt;br&gt;
df = pd.read_csv("your_data.csv")&lt;br&gt;
print(df.head())  # Displays the first 5 rows&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
3. Matplotlib
For basic plotting like bar charts, line graphs, and histograms.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
import matplotlib.pyplot as plt&lt;br&gt;
x = [1, 2, 3]&lt;br&gt;
y = [4, 5, 6]&lt;br&gt;
plt.plot(x, y)&lt;br&gt;
plt.title("Simple Line Plot")&lt;br&gt;
plt.show()&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
4. Seaborn
For statistical data visualizations with style and ease.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
import seaborn as sns&lt;br&gt;
sns.set(style="darkgrid")&lt;br&gt;
sns.histplot(data=df, x="Age")&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
These libraries form the foundation of most Python data analytics workflows.


**🧪First Python Data Script
Let’s put it all together with a simple data analytics example:**

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
import pandas as pd&lt;/p&gt;
&lt;h1&gt;
  
  
  Sample dataset
&lt;/h1&gt;

&lt;p&gt;data = {&lt;br&gt;
    "Name": ["Alice", "Bob", "Charlie", "Diana"],&lt;br&gt;
    "Scores": [85, 90, 78, 88]&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;df = pd.DataFrame(data)&lt;/p&gt;
&lt;h1&gt;
  
  
  Filter students with scores &amp;gt; 80
&lt;/h1&gt;

&lt;p&gt;top_students = df[df["Scores"] &amp;gt; 80]&lt;/p&gt;

&lt;p&gt;print("Top Students:")&lt;br&gt;
print(top_students)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


**💡 Final Thoughts**
Starting with data analytics can feel overwhelming, but with Python, it becomes accessible and even fun. Focus on learning one thing at a time—start with Pandas and NumPy, build small projects, and soon, the pieces will click together.

In future posts, I’ll dive deeper into real projects, EDA techniques, and visual storytelling with data.

Thanks for reading! 🙌
If you’re just starting out or want to connect and share ideas, feel free to leave a comment below or follow my journey.

#python #dataanalytics #beginners #pandas #numpy #seaborn #learning
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Kelvin Katwai</dc:creator>
      <pubDate>Tue, 22 Jul 2025 06:39:10 +0000</pubDate>
      <link>https://dev.to/kelvin_katwai_a8f64e9e502/-jg0</link>
      <guid>https://dev.to/kelvin_katwai_a8f64e9e502/-jg0</guid>
      <description></description>
    </item>
  </channel>
</rss>
