<?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: Christopher Njoroge</title>
    <description>The latest articles on DEV Community by Christopher Njoroge (@njorogekristofa).</description>
    <link>https://dev.to/njorogekristofa</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%2F1882263%2F5620f7f6-5f3a-4ca1-a0fd-ebb307d84b3f.png</url>
      <title>DEV Community: Christopher Njoroge</title>
      <link>https://dev.to/njorogekristofa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/njorogekristofa"/>
    <language>en</language>
    <item>
      <title>Understanding the Git Workflow:Working directory,staging ,commit and push.</title>
      <dc:creator>Christopher Njoroge</dc:creator>
      <pubDate>Mon, 24 Aug 2026 12:42:33 +0000</pubDate>
      <link>https://dev.to/njorogekristofa/understanding-the-git-workflowworking-directorystaging-commit-and-push-5d3f</link>
      <guid>https://dev.to/njorogekristofa/understanding-the-git-workflowworking-directorystaging-commit-and-push-5d3f</guid>
      <description>&lt;h2&gt;
  
  
  What is Git and Github
&lt;/h2&gt;

&lt;p&gt;This is a version control system or tool used to track changes by developers.&lt;br&gt;
When one installs git it comes with an inbuilt terminal called &lt;strong&gt;gitbash&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Github is a cloud based platform for storing git repositories online.&lt;br&gt;
Just sign up for free,verify via email and your account is created.&lt;br&gt;
git and github are connected using a SSH KEY.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Git works.
&lt;/h2&gt;

&lt;p&gt;We start by installing git on my Pc, after installation check if git is installed by opening a terminal eg powershell on windows and run &lt;code&gt;git --version&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Stages
&lt;/h2&gt;

&lt;p&gt;Git/Github is broken into four simple stages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;working directory&lt;/strong&gt; is where we write code and amend and delete files. Here changes are made but cannot be tracked unless they are instructed to commit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;staging phase&lt;/strong&gt; is an area where files are modified.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;commit phase&lt;/strong&gt; is where git takes everything from the staging area and sends it to our local repository.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;push phase&lt;/strong&gt; is where the saved commits are sent to a remote repository like GitHub.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Creating folders and files on git bash
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;First identify where we want the folder to be located
&lt;code&gt;ls&lt;/code&gt; is used to list
&lt;code&gt;mkdir "name of the folder"&lt;/code&gt; (means make directory)
&lt;code&gt;cd " name of the folder"&lt;/code&gt;(change directory)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Readme texts &lt;code&gt;README.md&lt;/code&gt; end with .md since they are written using markdown language.Can use echo,touch or nano commands to write a readme file.&lt;br&gt;
If i want to know the contents of my readme file we use:&lt;code&gt;cat README.md&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;git config-this is basically telling it my identity&lt;br&gt;
&lt;code&gt;git config --user.name"user"&lt;br&gt;
git config --user.email "useremail"&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;git init-this command is used to create or initialize a repository in main/master.&lt;br&gt;
&lt;code&gt;git init main&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;git status-shows the repository status. This command shows changes and what is happening in git&lt;br&gt;
&lt;code&gt;git status&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;git add-stages changes made&lt;br&gt;
&lt;code&gt;git add .&lt;/code&gt;this means stage all or one can specify what to be added e.g i want to add only a javascript folder &lt;code&gt;git add script.js&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;git commit-commits records that have been staged in the local git repository.Its like getting a snapshot or memory of the file.&lt;br&gt;
&lt;code&gt;git commit -m "commit message"&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;git log-shows a history of all the commits that were made.&lt;br&gt;
&lt;code&gt;git log&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;git branch&lt;/code&gt; should return main&lt;/p&gt;

&lt;h2&gt;
  
  
  To upload my git folder on github:
&lt;/h2&gt;

&lt;p&gt;Open the github account,create a new repository,click on ssh and copy the link&lt;br&gt;
&lt;code&gt;git remote add origin "paste the ssh key link"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git remote -v&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;git push-this command to send commits to the remote repository &lt;code&gt;git push -u origin main&lt;/code&gt;. Git will send the files to my github repository,i can refresh my github and see them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is a SSH KEY?
&lt;/h2&gt;

&lt;p&gt;SSH stands for secure shell which is a protocol that allows a computer to communicate with another computer over a network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Generating an SSH key?&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;ssh-keygen -t ed25519 -C "email signed on github.com"&lt;/code&gt;and press enter, the passphase(password authentication)is optional.&lt;br&gt;
This command will generate two keys:example&lt;br&gt;
ed25518&lt;br&gt;
ed25518.pub&lt;br&gt;
The one with .pub is the public key which is the one that we share with github while the other one is a private key which should not be shared.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Adding the SSH Key to Github&lt;/strong&gt;-open my github account,on settings click on SSH and GPG keys, create a new key and copy the public key that we generated.&lt;br&gt;
&lt;strong&gt;Testing the SSH connection&lt;/strong&gt;&lt;br&gt;
Test before pushing a project using ssh -T &lt;a href="mailto:git@github.com"&gt;git@github.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>git</category>
      <category>github</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Understanding Your Data: The Essentials of Exploratory Data Analysis</title>
      <dc:creator>Christopher Njoroge</dc:creator>
      <pubDate>Fri, 16 Aug 2024 10:41:36 +0000</pubDate>
      <link>https://dev.to/njorogekristofa/understanding-your-data-the-essentials-of-exploratory-data-analysis-5aip</link>
      <guid>https://dev.to/njorogekristofa/understanding-your-data-the-essentials-of-exploratory-data-analysis-5aip</guid>
      <description>&lt;p&gt;Exploratory Data Analysis(EDA) is a vital process in Data science since it helps in understanding the data you are dealing with and also making conclusions about it. EDA serves as a bridge between the process of data collection and the processes of building machine learning models.&lt;/p&gt;

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

&lt;p&gt;EDA is the process of analyzing data the discover insights, trends, patterns, anomalies, test hypotheses and also making conclusions from the data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Types of EDA
&lt;/h2&gt;

&lt;p&gt;1.Univariate Non-graphical- The data has only one variable and no relationships in univariate non-graphical EDA.&lt;/p&gt;

&lt;p&gt;2.Multivariate Non-graphical- This depicts the relationship between two or more data variables using cross-tabulation or statistics.&lt;/p&gt;

&lt;p&gt;3.Univariate graphical- Quantitative and objective, they are not able to give the complete picture of the data; therefore, graphical methods are used more as they involve a degree of subjective analysis, also are required.&lt;/p&gt;

&lt;p&gt;4.Multivariate graphical- It represents the relationship between two or more data sets. It uses graphics to display relationships between two or more sets of knowledge. The most popular graphic is a bar plot or a bar chart.&lt;/p&gt;

&lt;h2&gt;
  
  
  Process of EDA
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1.Cleaning your Dataset&lt;/strong&gt;&lt;br&gt;
When your dataset is first loaded into the coding environment of your choice, the most crucial step is to clean the dataset before analysis begins as a 'dirty' dataset is compromised and will affect the accuracy of your analysis. Some of the key steps in this stage including&lt;br&gt;
checking for null values; once you have identified any null values in your dataset you can replace them using the mean, median or mode of that column. In some instances where there are too many null values in one column you can drop the entire column.&lt;br&gt;
checking for outliers; outliers are data points that significantly deviate from the norm of your dataset. They can impact your data visualization, distort your summary statistic and negatively affect your models.&lt;br&gt;
identifying duplicate data; duplicate data is another factor that affects the integrity of your data and accuracy of your analysis. The most common practice when dealing with duplicate data is to drop the duplicate.&lt;br&gt;
Then the final stage of data cleaning is to ensure that there is data uniformity in your columns. Ensure that none of your columns has two or more distinct data types within it simultaneously.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Visualize your Dataset&lt;/strong&gt;&lt;br&gt;
Once you have cleaned up your original dataset, you can now visualize what remains. Depending on the numbers and type of variables you can choice any means of visualization. For instance you can elect correlation matrices or scatter plots to visualize data with 2 or more variables, you can choose bar graphs or pie charts to visualize categorical data and box plots for visualizing data with one variable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.Perform analyses on your variables&lt;/strong&gt;&lt;br&gt;
This step will help us gain insight into the distribution of and correlation between our variables. Once again the technique of analysis varies depending on the number of variables and datatypes. Once we analyze our variables, we can then identify the relationships between them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.Identifying data Patterns&lt;/strong&gt;&lt;br&gt;
This step is crucial because it allows us to observe the behavior of our variables and in the long term make predictions on them, both independent and dependent. This is a major step because it is a core reason for why EDA is performed in the first place.&lt;/p&gt;

&lt;p&gt;The final step of EDA is &lt;strong&gt;documentation and reporting&lt;/strong&gt; as you will need to present your findings in an 'easy to understand' manner. After all, the whole point of data analysis is to make sense of facts and figures.&lt;br&gt;
Some of the tools that are necessary for EDA are Python, R and in some cases even SQL.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Building a successful Career in Data science</title>
      <dc:creator>Christopher Njoroge</dc:creator>
      <pubDate>Sun, 04 Aug 2024 18:27:01 +0000</pubDate>
      <link>https://dev.to/njorogekristofa/building-a-successful-career-in-data-science-54i3</link>
      <guid>https://dev.to/njorogekristofa/building-a-successful-career-in-data-science-54i3</guid>
      <description>&lt;p&gt;Data science is currently among the fields that are growing at a very high rate in the modern day world. The field is basically a combination of statistics, Computer science and also some knowledge in the domain you are specializing in. In this article we delve in some ways to succeed as a data scientist.&lt;/p&gt;

&lt;h2&gt;
  
  
  Education
&lt;/h2&gt;

&lt;p&gt;To succeed in this area one has to have enhance your education in some areas such as computer science, Mathematics and more so statistics. These two are the fundamental incase one is building a career in Data science.&lt;/p&gt;

&lt;h2&gt;
  
  
  Skills
&lt;/h2&gt;

&lt;p&gt;Some of the skills needed in this field include.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Programming&lt;/strong&gt;- Some knowledge in programming is needed for data manipulation, doing analysis, and also Modelling. Some of the languages mostly used in data science include &lt;em&gt;R&lt;/em&gt; and &lt;em&gt;Python&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Statistics&lt;/strong&gt;- Knowledge in mathematics and statistics come in handy for any data scientists. Understanding of certain mathematical concepts helps one perfect in this field.Some of the concepts include &lt;em&gt;probability, time series, linear algebra&lt;/em&gt; among others.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Machine learning&lt;/strong&gt;- This assists in building of models that could be used in predicting. Some of the frameworks used for this include &lt;em&gt;scikit-learn&lt;/em&gt;, &lt;em&gt;tensor flow&lt;/em&gt; and &lt;em&gt;pytorch&lt;/em&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Data Visualization&lt;/strong&gt;- Visualizing data assists one to communicate easily what the data shows. This could include graphs that show trends, distributions among others. Some tools that could assist in visualizations are &lt;em&gt;Power BI&lt;/em&gt;, &lt;em&gt;SQL&lt;/em&gt; and &lt;em&gt;python libraries&lt;/em&gt; such as pandas, seaborn and matplotlib.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Big Data&lt;/strong&gt; - One should also be aware of how to handle large or big data sets. Several tools such as &lt;em&gt;hadoop&lt;/em&gt; and &lt;em&gt;spark&lt;/em&gt; could assist in this.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Job Searching
&lt;/h2&gt;

&lt;p&gt;As any other job, job searching could be an uphill task to any candidate. Quick tips that would assist a data scientist in getting a job or accelerating their career include;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Networking&lt;/strong&gt; - This invloves linking up with other like minded persons. This could be either in social media, joining data science workshops and communities and also participating in online forums.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Learning and knowledge acquiring&lt;/strong&gt;- Data science is an evolving field and hence requires one to continously expand their knowledge. This could include online classes, learning from other people and also participating in projects.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Building a good portfolio&lt;/strong&gt; - Taking up projects and working on them has proven to be the best way of learning things. It also assists in demonstrating your ability to solve real world problems. Also Showcasing these projects to people could help in job searching.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Improving you curriculum vitae/resume&lt;/strong&gt; - Go through an application, understanding what are the requirements and customize your application well to ensure you meet the set requirements.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;By combining all the above factors, one is in a position to create a successful career in data science.&lt;/p&gt;

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