<?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: Peter Maina</title>
    <description>The latest articles on DEV Community by Peter Maina (@pmkanyora).</description>
    <link>https://dev.to/pmkanyora</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%2F398065%2F56ff01ac-db92-4722-ac4f-56680434f2a3.png</url>
      <title>DEV Community: Peter Maina</title>
      <link>https://dev.to/pmkanyora</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pmkanyora"/>
    <language>en</language>
    <item>
      <title>Understanding the Git Workflow: Working Directory, Staging, Commit and Push</title>
      <dc:creator>Peter Maina</dc:creator>
      <pubDate>Sun, 23 Aug 2026 12:35:02 +0000</pubDate>
      <link>https://dev.to/pmkanyora/understanding-the-git-workflow-working-directory-staging-commit-and-push-fpo</link>
      <guid>https://dev.to/pmkanyora/understanding-the-git-workflow-working-directory-staging-commit-and-push-fpo</guid>
      <description>&lt;p&gt;Git is a version control system used in data and software related projects. It helps the analysts and engineers in tracking the changes of their projects, collaborating with other engineers and maintaining the history of their projects. &lt;br&gt;
The git workflow can be categorized into four main stages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Working Directory&lt;/li&gt;
&lt;li&gt;Staging Area&lt;/li&gt;
&lt;li&gt;Commit&lt;/li&gt;
&lt;li&gt;Push&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Knowing how to use the above stages makes it easier for you to manage projects using GitHub platform and git.&lt;/p&gt;
&lt;h2&gt;
  
  
  Working Directory
&lt;/h2&gt;

&lt;p&gt;It is a folder in your local repository where the project files are located. If you have a folder called Weather_Project_Analysis. Inside the folder, you can have project files such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Weather_statistics.csv&lt;/li&gt;
&lt;li&gt;README.md&lt;/li&gt;
&lt;li&gt;Weather_analysis.sql&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Git tracks the changes and manages the history of these files.&lt;br&gt;
First command;&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="nb"&gt;pwd&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;which means Print Working Directory. It helps you locate your project folder in your local computer before running git commands.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Git status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It checks the status of your project. Which projects are untracked and modified.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flf1p8r22o09ambzs3oc1.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flf1p8r22o09ambzs3oc1.png" alt="Git status on untracked files" width="800" height="263"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The above screenshot shows the output after running a git status command. It shows that my files are untracked by git and the changes only exist in my working directory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Staging Area
&lt;/h2&gt;

&lt;p&gt;A staging area is a preparation area where you tell git which files to be included for tracking changes.&lt;/p&gt;

&lt;p&gt;To add a README.MD file to the staging area use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add README.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To add several files in your staging area, you add by specifying their names;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Git add README.md weather_analysis.sql weather_statistics.csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To add all the files use the command;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Git add &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we have staged the files, lets now check the status.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7wg31cnanbfdxh67zfa4.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7wg31cnanbfdxh67zfa4.png" alt="Adding all the files in the staging area" width="799" height="231"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The screenshot above shows that our files are ready to be committed. The staging area is very important since it controls which files you want to be committed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Commit
&lt;/h2&gt;

&lt;p&gt;It is a saved snapshot of your project at a particular point so that git remembers how your project looked like at that particular time.&lt;br&gt;
Now you can create a commit of your changes in the staging area using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Git commit &lt;span class="nt"&gt;-m&lt;/span&gt; ”Add my weather project files”
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The text inside your double quotation marks is called a commit message. A commit message describes which changes were made. At this point, the changes are now saved in your local git repository.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsifo1d44m6yovxzzvez1.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsifo1d44m6yovxzzvez1.png" alt="Commiting your changes" width="800" height="148"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The above screenshot shows that your changes are committed and saved in your local git repository. &lt;/p&gt;

&lt;h2&gt;
  
  
  Push
&lt;/h2&gt;

&lt;p&gt;The last stage is publishing your commit to a remote repository such as GitHub, GitLab etc. A remote repository is an online storage that allows you to back up your project files. Allows you to access your work from any other computer and also collaborate with other engineers and developers.&lt;br&gt;
To publish your changes to GitHub, use the command;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Git push origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Git push; pushes your commits to an online repository.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Origin; It’s the remote repository.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Main; It’s the branch you are pushing your commits to.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After a successful push, your changes will be published on GitHub.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiolwrfa1p9wx6s2fp3l0.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiolwrfa1p9wx6s2fp3l0.png" alt="Pushing files to a remote repository" width="800" height="220"&gt;&lt;/a&gt;&lt;br&gt;
The git workflow can be simplified as follows:&lt;/p&gt;

&lt;p&gt;Working Directory&lt;/p&gt;




&lt;p&gt;git add&lt;/p&gt;




&lt;p&gt;Staging Area&lt;/p&gt;




&lt;p&gt;git commit&lt;/p&gt;




&lt;p&gt;git commit&lt;/p&gt;




&lt;p&gt;Local Repository&lt;/p&gt;




&lt;p&gt;git push&lt;/p&gt;




&lt;p&gt;Remote repository (GitHub)&lt;/p&gt;

&lt;p&gt;The commands move your changes from one point to another.&lt;/p&gt;

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

&lt;p&gt;Git workflow is a critical skill for any software developer/engineer, data analyst/engineer or data scientist. The git workflow follows a simple sequence.&lt;/p&gt;

&lt;p&gt;Working Directory -&amp;gt; Staging Area -&amp;gt; Commit -&amp;gt; Push&lt;/p&gt;

&lt;p&gt;A working Directory is where you make changes, staging area is where you want your changes to be saved, a commit records your changes in your local repository and a push publishes your commits to a remote repository such as GitHub.&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>softwaredevelopment</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Introduction to python as a data analytics tool</title>
      <dc:creator>Peter Maina</dc:creator>
      <pubDate>Thu, 10 Oct 2024 09:06:26 +0000</pubDate>
      <link>https://dev.to/pmkanyora/introduction-to-python-as-a-data-analytics-tool-36eb</link>
      <guid>https://dev.to/pmkanyora/introduction-to-python-as-a-data-analytics-tool-36eb</guid>
      <description>&lt;p&gt;Python is one of the most popular programming language for data analysis, because of its simplicity and flexibility. It also has a lot of frameworks and libraries designed to handle analysis and visualization of data. Its friendly to both beginners and experienced analysts as it offers a wide range of tools that optimizes and streamlines their workflows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why python for data analytics?&lt;/strong&gt;&lt;br&gt;
Easy to learn. Python is very easy for beginners since its syntax is clear and readable. It helps analysts to focus more on problem solving rather than trying to understand complex syntax.&lt;/p&gt;

&lt;p&gt;Data manipulation and cleaning. Pandas is a powerful Python library tool for cleaning and manipulating data into useful and insightful data. These tasks include handling missing values, filtering data, creating new features , and merging datasets. &lt;/p&gt;

&lt;p&gt;Data visualization. Libraries such as matplotlib and seaborn has a range of plots and charts for data visualization, helping analysts to communicate insights visually. These libraries can generate bar plots, line charts, heatmaps, and many more.&lt;/p&gt;

&lt;p&gt;Integration with databases. Python is able to integrate with a wide range of databases such as SQL, Mongo dB, and SQLite which makes it easier to extract, manipulate, and analyze data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Basic workflow of data analytics with python.&lt;/strong&gt;&lt;br&gt;
Data collection. Involves extracting data from various sources such as excel, databases, APIs, and scrapping the web.&lt;/p&gt;

&lt;p&gt;Data cleaning. Handling missing data, correcting data types, removing duplicates, and filtering irrelevant data.&lt;/p&gt;

&lt;p&gt;Exploratory Data Analysis. Analyzing data and generating visualizations to identify patterns and to draw insights.&lt;/p&gt;

&lt;p&gt;Visualization and reporting. Visualization tools and libraries are used to create dashboards, plots and reports.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion.&lt;/strong&gt;&lt;br&gt;
Python is a powerful and flexible tool for data analytics. Its ecosystem provides everything from basic data manipulation and cleaning to advanced machine learning. Python libraries offer solutions for analyzing and visualizing data while working with both small and large datasets.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>AN ULTIMATE GUIDE TO DATA ANALYTICS, TECHNIQUES AND TOOLS</title>
      <dc:creator>Peter Maina</dc:creator>
      <pubDate>Tue, 06 Aug 2024 14:12:41 +0000</pubDate>
      <link>https://dev.to/pmkanyora/an-ultimate-guide-to-data-analytics-techniques-and-tools-31ap</link>
      <guid>https://dev.to/pmkanyora/an-ultimate-guide-to-data-analytics-techniques-and-tools-31ap</guid>
      <description>&lt;p&gt;An ultimate guide to Data analytics, techniques and Tools&lt;/p&gt;

&lt;p&gt;Data analytics is the process of analyzing raw data in order to draw meaningful and useful insights, which are used by businesses to make informed and smart business decisions. It helps to predict future trends and behaviors instead of basing your strategies and decisions on guess work, thus making informed decisions according to what the data is telling you.&lt;/p&gt;

&lt;p&gt;There are four key types of data analytics: predictive, descriptive, diagnostic, and prescriptive. Each of them helps the organization to make informed decisions and they tells us the following:&lt;br&gt;
 Descriptive analytics tells us what happened in the past.&lt;br&gt;
 Diagnostic analytics tells us why something happened.&lt;br&gt;
 Predictive analytics tells us what will likely happen in the future.&lt;br&gt;
 Prescriptive analytics tells us how to act and decisions that should happen.&lt;br&gt;
The engineers who work with data explores these four areas using data analysis process, which includes identifying the question, collecting raw data, cleaning data, analyzing data, and interpreting the results.&lt;br&gt;
Below are some of the data analytics techniques used by data analysts.&lt;br&gt;
 Regression analysis which is used to estimate the relationship between a set of variables.&lt;br&gt;
 Factor analysis helps the data analysts to identify the underlying variables that drives people’s behavior and the choices they make.&lt;br&gt;
 Cluster analysis helps in identifying structures within a dataset.&lt;br&gt;
 Time-series analysis helps in measuring the same variable at different points in time&lt;br&gt;
Now lets us look at some of the tools which data analytics engineers might work with.&lt;br&gt;
 Microsoft Excel&lt;br&gt;
 Tableau&lt;br&gt;
 SAS&lt;br&gt;
 RapidMiner&lt;br&gt;
 PowerBI&lt;/p&gt;

</description>
      <category>data</category>
      <category>analytics</category>
    </item>
  </channel>
</rss>
