<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ruth Ngiciri on Medium]]></title>
        <description><![CDATA[Stories by Ruth Ngiciri on Medium]]></description>
        <link>https://medium.com/@ruthngiciri?source=rss-53d03c7c59f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fiMjW2TlapxeVcHI</url>
            <title>Stories by Ruth Ngiciri on Medium</title>
            <link>https://medium.com/@ruthngiciri?source=rss-53d03c7c59f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 07:59:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ruthngiciri/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting Started with Sentiment Analysis]]></title>
            <link>https://medium.com/@ruthngiciri/getting-started-with-sentiment-analysis-e0a426af8379?source=rss-53d03c7c59f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0a426af8379</guid>
            <dc:creator><![CDATA[Ruth Ngiciri]]></dc:creator>
            <pubDate>Sat, 08 Apr 2023 12:00:52 GMT</pubDate>
            <atom:updated>2023-04-08T12:00:52.815Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Sentiment analysis is a popular natural language processing (NLP) technique that involves analyzing the subjective information conveyed in a text. It is a method of determining the sentiment or emotion of a piece of text, such as a product review or a social media post. Sentiment analysis has numerous applications in different fields such as marketing, customer service, and social media analysis. In this article, we will discuss the basics of sentiment analysis and how to get started with it.</p><h4>What is Sentiment Analysis?</h4><p>Sentiment analysis, also known as opinion mining, is a process of extracting subjective information from text data. It involves identifying and classifying opinions and emotions expressed in a piece of text, whether it’s positive, negative, or neutral. Sentiment analysis can be applied to various types of text data, including product reviews, social media posts, news articles, and customer feedback.</p><h4>Why Sentiment Analysis is Important</h4><p>Sentiment analysis is important because it enables businesses and organizations to understand the opinions and emotions of their customers, employees, or the general public. By analyzing sentiment, companies can gain insights into their customers’ preferences, likes, and dislikes, which can be used to improve their products or services. For example, a company can use sentiment analysis to analyze customer reviews and feedback to improve the quality of its products.</p><p>Sentiment analysis can also be used to monitor brand reputation on social media. With the rise of social media, it has become more important than ever for businesses to monitor what is being said about their brand online. By analyzing sentiment, businesses can identify negative comments and respond to them quickly, which can help to prevent reputational damage.</p><p>The sentiment analysis process typically involves several steps, including:</p><ol><li>Text pre-processing: This involves cleaning and formatting the text data to remove unwanted characters, stopwords, and punctuation marks.</li><li>Sentiment lexicon creation: A sentiment lexicon is a list of words and phrases that are associated with positive, negative, or neutral sentiments. These lexicons are used to classify the sentiment of a piece of text.</li><li>Sentiment classification: This step involves classifying the sentiment of a piece of text based on the sentiment lexicon. The sentiment can be classified as positive, negative, or neutral.</li><li>Sentiment analysis output: The output of sentiment analysis can be in various forms, including a score, a label, or a graphical representation.</li></ol><p>Getting Started with Sentiment Analysis</p><p>Here are the basic steps to get started with sentiment analysis:</p><p>Step 1: Choose a Programming Language</p><p>The first step in getting started with sentiment analysis is to choose a programming language that you are comfortable with. Some of the popular programming languages used for sentiment analysis include Python, R, Java, and Scala.</p><p>Python is a popular choice for sentiment analysis due to its simplicity and availability of several libraries and tools for natural language processing. R is another popular choice, particularly in the academic community, due to its strong statistical capabilities.</p><p>Step 2: Choose a Sentiment Analysis Library or Tool</p><p>The next step is to choose a sentiment analysis library or tool that you can use to perform sentiment analysis. There are several libraries and tools available for different programming languages that can simplify the sentiment analysis process. Some of the popular sentiment analysis libraries and tools include:</p><ol><li>NLTK: This is a popular natural language processing library in Python that can be used for sentiment analysis.</li><li>TextBlob: This is another popular Python library for sentiment analysis that provides an easy-to-use API.</li><li>VADER: This is a rule-based sentiment analysis tool that can be used in Python, R, and Java.</li><li>Stanford CoreNLP: This is a Java-based NLP library that provides sentiment analysis capabilities.</li></ol><p>Step 3: Prepare the Text Data</p><p>The next step is to prepare the text data for sentiment analysis. This involves cleaning the data to remove unwanted characters, stop words, and punctuation marks. Text normalization techniques such as stemming and lemmatization can also be applied to the text data to reduce the dimensionality of the feature space.</p><p>Step 4: Build the Sentiment Analysis Model</p><p>Once the text data is prepared, the next step is to build the sentiment analysis model. This involves selecting the appropriate sentiment lexicon and training a classifier to classify the sentiment of the text data.</p><p>Step 5: Evaluate the Model</p><p>After building the sentiment analysis model, the next step is to evaluate the model’s performance. This involves testing the model on a set of test data and comparing the predicted sentiment with the actual sentiment.</p><p>Step 6: Use the Model for Sent</p><h4>Conclusion</h4><p>In conclusion, sentiment analysis is an important application of machine learning and natural language processing that can provide valuable insights into customer preferences, opinions, and emotions. Getting started with sentiment analysis involves collecting data, pre-processing the data, extracting features, and classifying the sentiment of the text. With the rise of social media and the importance of online reputation, sentiment analysis has become a crucial tool for businesses and organizations to monitor their brand reputation and improve their products or services.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0a426af8379" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential SQL Commands for Data Science]]></title>
            <link>https://medium.com/@ruthngiciri/essential-sql-commands-for-data-science-922c2022664d?source=rss-53d03c7c59f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/922c2022664d</guid>
            <dc:creator><![CDATA[Ruth Ngiciri]]></dc:creator>
            <pubDate>Sat, 08 Apr 2023 11:38:38 GMT</pubDate>
            <atom:updated>2023-04-08T11:38:38.891Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction</h4><p>Are you ready to take a dive into the world of SQL commands for data science? SQL may seem like a daunting language at first, but fear not, because we’ve got you covered with the essential commands you need to know to become a SQL wizard.</p><p>Let’s start with the <strong>SELECT </strong>command, which is the bread and butter of SQL. It’s like a magic wand that allows you to retrieve data from a database. Think of it as a way to ask the database a question and get a specific answer. For example, if you want to know the names of all the employees in a company, you would use the SELECT command like this:</p><p>SELECT name FROM employees;</p><p>But what if you only want to see the names of employees who work in the sales department? Enter the <strong>WHERE </strong>command! This nifty little command allows you to filter data based on specific conditions. Here’s how you would use it:</p><p>SELECT name FROM employees WHERE department = ‘Sales’;</p><p>Now you’re only seeing the names of employees who work in the sales department. How cool is that?</p><p>But wait, there’s more! The <strong>GROUP BY</strong> command is another essential SQL command that is often used in data science. This command allows you to group data based on specific criteria, such as department or job title. Here’s an example:</p><p>SELECT department, COUNT(*) FROM employees GROUP BY department;</p><p>This command will give you a count of the number of employees in each department. Pretty neat, huh?</p><p>Last but not least, the <strong>JOIN </strong>command is another important SQL command that allows you to combine data from multiple tables. Let’s say you have two tables — one with employee information and another with salary information. You can use the JOIN command to combine these tables based on a common column, such as employee ID:</p><p>SELECT employees.name, salaries.salary FROM employees JOIN salaries ON employees.id = salaries.employee_id;</p><p>Now you have a list of employee names and their corresponding salaries. SQL makes it so easy!</p><p>In conclusion, SQL commands are essential for any data scientist who wants to work with relational databases. The <strong>SELECT, WHERE, GROUP BY</strong>, and <strong>JOIN </strong>commands are just a few examples of the many commands available in SQL. So don’t be afraid to dive in and start exploring the wonderful world of SQL!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=922c2022664d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploratory Data Analysis Ultimate Guide]]></title>
            <link>https://medium.com/@ruthngiciri/exploratory-data-analysis-ultimate-guide-800b3b5e673b?source=rss-53d03c7c59f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/800b3b5e673b</guid>
            <dc:creator><![CDATA[Ruth Ngiciri]]></dc:creator>
            <pubDate>Sun, 05 Mar 2023 19:59:16 GMT</pubDate>
            <atom:updated>2023-03-05T19:59:16.584Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction</h4><p>Exploratory Data Analysis (EDA) is like an adventurous journey that data analysts and data scientists embark on to discover the secrets hidden in their data. It is a process of analyzing, cleaning, and visualizing data to uncover patterns, relationships, and insights that can inform further analysis. In this ultimate guide, we will take you on a thrilling ride through the world of EDA.</p><h4>Understanding the data</h4><p>Every good adventure begins with understanding the terrain, and in the world of EDA, the terrain is the data. To understand the data, you need to gather information about it, such as the number of variables, the data type of each variable, and the range of values for each variable. This information can be obtained from data dictionaries, variable descriptions, or by examining the data itself.</p><h4>Cleaning the data</h4><p>Once you have mapped out the terrain, it’s time to start the cleanup. Like any adventure, there are obstacles in your path, and in EDA, these obstacles are errors, missing values, and outliers. Errors can be typos or inconsistent data that need to be corrected. Missing values can be imputed or removed, depending on the analysis. Outliers can be identified using statistical methods or visual inspection.</p><h4>Exploring the data</h4><p>With the terrain cleared, it’s time to explore the data. This is where the adventure gets exciting, as you start to discover hidden treasures in the form of patterns and relationships. Visualizations are the key to unlocking these treasures and can include histograms, box plots, scatter plots, and heat maps. Summary statistics can also be used to identify central tendencies, such as mean and median, and measures of variability, such as standard deviation and range.</p><h4>Identifying relationships</h4><p>As you delve deeper into the data, you will start to see connections between variables. These connections can be calculated using statistical methods such as Pearson’s correlation coefficient or Spearman’s rank correlation coefficient. Identifying relationships is like finding clues on your adventure, leading you closer to the treasure trove of insights hidden in the data.</p><h4>Developing hypotheses</h4><p>With the clues in hand, it’s time to develop hypotheses about the data. This is where the adventure turns into a quest, as you use your insights to form hypotheses about what the data is telling you. These hypotheses can be tested using further analysis, such as regression analysis or hypothesis testing.</p><h4>Conclusion</h4><p>Exploratory Data Analysis is an exciting adventure that data analysts and data scientists embark on to discover the secrets hidden in their data. Understanding the data, cleaning the data, exploring the data, identifying relationships, and developing hypotheses are the key steps on this adventure. So, grab your data and start your own EDA adventure today, who knows what treasures you may find!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=800b3b5e673b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Python for Data Science]]></title>
            <link>https://medium.com/@ruthngiciri/introduction-to-python-for-data-science-c61e3de88683?source=rss-53d03c7c59f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c61e3de88683</guid>
            <dc:creator><![CDATA[Ruth Ngiciri]]></dc:creator>
            <pubDate>Sat, 18 Feb 2023 18:20:01 GMT</pubDate>
            <atom:updated>2023-02-18T18:20:01.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*qaKpIyVKJeGmHbZrsADccg.png" /></figure><h3>1. Introduction</h3><p>Do you think programming is like solving a Rubik’s cube or cracking a secret code? Are you convinced that only tech-savvy individuals can excel at coding? Think again! In this article, we’ll explore the world of Python, a language that’s often touted as one of the easiest to learn, even for beginners. Whether you’re a seasoned developer or a newbie, Python is an accessible language that can help you build powerful applications and solve complex problems. Let’s dispel the myth that programming is a hard nut to crack and see how Python can make it accessible to everyone. In this article, we will do an introduction to Python for Data Science by exploring three different categories, the basics, Python Data Structures, and Python Libraries for Data Science.</p><h4><strong>2. Python Basics</strong></h4><p>Python is a high-level interpreted programming language that is easy to use. Due to its simplicity and readability, it has become the most popular. The language is also known for its versatility and can be used in a wide range of applications and purposes. For instance, Python can be applied in such operations as data science, web development, and machine learning. Among the professionals who use Python as their primary programming language are Web Developers, Data Scientists, Machine Learning Engineers, Scientists and Researchers, Financial Analysts, and Game Developers.</p><h4>3. Python Data Structures</h4><p>Data Structures are ways of organizing and storing data in computer memory. Python programming language supports several in-built data structures. There are four major built-in data structures in Python namely Lists, Tuples, Sets, and Dictionaries. Each of these data structures has its own unique properties.</p><ol><li><strong>Lists: </strong>A list is an ordered collection of elements, separated by commas, and enclosed in square brackets []. Lists are mutable i.e. their elements can be added, removed, or modified.</li><li><strong>Tuples: </strong>A tuple is almost similar to a List but is immutable, its elements cannot be modified. In addition, a tuple is enclosed in parentheses ().</li><li><strong>Sets: </strong>A set is a mutable collection of unique elements, and is enclosed in curly braces {}. Unique elements mean that each element in a set is distinct and appears only once. Sets are used to perform operations like union, intersection, and difference.</li><li>D<strong>ictionaries: </strong>A dictionary is an unordered collection of key-value pairs where each key is unique. Dictionaries are mutable and are enclosed in curly braces {}. They can be used to store and retrieve data efficiently.</li></ol><p>Besides these in-built data structures, Python also supports several third-party data structures such as NumPy arrays, Pandas data frames, and more. These data structures are commonly used in data science and analysis for performing complex data manipulations and computations.</p><h4>4. Python Libraries for Data Science</h4><p>Python is a popular programming language for data science due to its rich ecosystem of libraries and tools. The libraries can be categorized based on the type of operations they support such as Data Science and Data Analysis, Machine Learning Libraries, Web Development Libraries, and GUI Libraries. For this article, however, we will focus on Data Science Libraries which include:</p><ol><li><strong>Numpy: </strong>this is a library for numerical computing in Python. Numpy provides support for large multi-dimensional arrays, complex mathematical functions, and linear algebra operations.</li><li><strong>Pandas: </strong>this is a library for data manipulation and analysis. It provides support for working with structured data including CSV and Excel files, SQL Databases, and JSON and XML Data.</li><li><strong>Matplotlib: </strong>This a library for creating visualizations in Python. It provides support for creating line graphs, scatter plots, histograms, bar charts and other types of graphs and charts.</li><li><strong>Scikit-learn:</strong> This is a library for machine learning in Python. It provides support for many machine learning algorithms, including linear and logistic regression, decision trees, and clustering.</li></ol><p>These are just a few examples of the many libraries available for Python.</p><h4>5. Conclusion</h4><p>In conclusion, Python is a versatile and powerful language that is accessible to beginners and experts alike. Although programming can seem daunting, Python’s clear syntax and wealth of libraries make it an excellent choice for data science, web development, machine learning, and more. With the right resources and a willingness to learn, anyone can become proficient in Python. One interesting benefit of learning Python is the opportunity to automate repetitive tasks and streamline workflows, saving time and increasing efficiency. Python is also in high demand by employers, making it a valuable skill to have in the job market. So don’t be afraid to learn Python — like anything else, it only requires believing in oneself, beginning the journey, and soon enough, one can become an expert in this powerful language.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c61e3de88683" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>