<?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 Ebru İşeri Sobay on Medium]]></title>
        <description><![CDATA[Stories by Ebru İşeri Sobay on Medium]]></description>
        <link>https://medium.com/@ebruiserisobay?source=rss-c89ffc6bee2f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3VuX5u6Skyfpb3jBs564-w.png</url>
            <title>Stories by Ebru İşeri Sobay on Medium</title>
            <link>https://medium.com/@ebruiserisobay?source=rss-c89ffc6bee2f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 15:33:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ebruiserisobay/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[Basic Statistical Operations in Python]]></title>
            <link>https://medium.com/@ebruiserisobay/basic-statistical-operations-in-python-44a487eed8a3?source=rss-c89ffc6bee2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/44a487eed8a3</guid>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[descriptive-statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ebru İşeri Sobay]]></dc:creator>
            <pubDate>Thu, 30 May 2024 03:56:51 GMT</pubDate>
            <atom:updated>2024-05-30T03:56:51.385Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey Data Science &amp; Machine Learning enthusiasts! 🚀</p><p>Ready to dive into statistical operations with Python? Don’t worry, you’re not alone on this journey. Let’s explore this topic together in a fun and understandable way!</p><h3><strong>Python and Statistics</strong> 🐍📊:</h3><p>First of all, Python is an amazing friend! Why? Because it has great libraries for data analysis and statistical operations. These libraries are here to make our job easier and make us feel super powerful.</p><h3><strong>Basic Statistical Operations: First Steps 🚶</strong></h3><p>Let’s take a look at a few basic statistical operations. These operations are the first steps to creating wonders with data.</p><h4><strong>Mean:</strong></h4><p>Calculating the average of the data helps us understand their general trend. The mean is found by dividing the sum of all data values by the number of data values.</p><p>It shows the general trend of the data but can be affected by outliers.</p><p>If we want to calculate the “mean” in Python, we can use the np.mean(data_to_calculate_mean) method as shown in the example below.</p><p>First, we need to install the numpy library and give it the commonly used alias “np”. We need to import any library before we can use it, and here we do just that.</p><p><strong>NOTE</strong>:</p><p>In the following steps, assume that the numpy library has been installed if you see “np” being used.</p><p>In the example below, we see the mean of a list being calculated.</p><p><strong>Example</strong>:</p><p>Input:</p><pre>import numpy as np<br>data = [2, 4, 6, 8, 10]<br>mean = np.mean(data)<br>print(&quot;Mean:&quot;, mean)</pre><p>Output:</p><p>Mean: 6.0</p><h4><strong>Median:</strong></h4><p>The median value of the data divides it into two equal parts. When you sort the data and find the middle value, you get the median.</p><p>It is more resistant to outliers. It can better represent the central tendency in asymmetric distributions.</p><p>If you want to calculate the median in Python, you can use the np.median(data_to_calculate_median) method as shown in the example below. In the example below, we see the median of a list being calculated.</p><p><strong>Example</strong>:</p><p>Input:</p><pre>data = [2, 4, 6, 8, 10]<br>median = np.median(data)<br>print(&quot;Median:&quot;, median)</pre><p><strong>Output</strong>:</p><p>Median: 6.0</p><h4><strong>Mode:</strong></h4><p>The most frequently occurring value. It represents the most seen value in the data. It is useful for identifying repeating values in the dataset.</p><p>If we want to calculate the mode in Python, we can use the stats.mode(data_to_calculate_mode) method as shown in the example below. This method gives us information about what the mode is and how many times it appears.</p><p><strong>Example:</strong></p><p>Input:</p><pre>from scipy import stats<br>data_1 = [2, 2, 4, 6, 8, 2, 10]<br>mode = stats.mode(data_1)<br>print(&quot;Mode:&quot;, mode[0])<br>print(&quot;Count:&quot;, mode[1])</pre><p>Output:</p><p>Mode: 2</p><p>Count: 3</p><h4><strong>Central Tendency:</strong></h4><p>Central tendency refers to measures that indicate the average (center) value of a dataset.</p><p>The most common measures of central tendency are:</p><ul><li>Mean</li><li>Median</li><li>Mod</li></ul><p>Libraries like numpy and pandas are used in Python to calculate measures of central tendency. We saw some examples above.</p><p>Now, let’s look at an example using Pandas:</p><p><strong>Example</strong>:</p><p>Input:</p><pre># Importing the pandas library<br>import pandas as pd<br># Sample dataset<br>data = [1, 2, 2, 3, 4, 7, 9, 9, 10]<br># Creating a Pandas Series<br>data_series = pd.Series(data)<br># Calculating the Mean<br>mean = data_series.mean()<br>print(f&quot;Mean: {mean}&quot;)<br># Calculating the Median<br>median = data_series.median()<br>print(f&quot;Median: {median}&quot;)<br># Calculating the Mode<br>mode = data_series.mode()<br>print(f&quot;Mode: {mode[0]}&quot;)</pre><p>Output<strong>:</strong></p><p>Mean: 5.222222222222222</p><p>Median: 4.0</p><p>Mode: 2</p><h4>Measures of Dispersion:</h4><p>The most common measures of dispersion are:</p><ol><li><strong>Standard Deviation</strong></li><li><strong>Variance</strong></li><li><strong>Range</strong></li><li><strong>Quartiles</strong></li><li><strong>IQR (Interquartile Range)</strong></li><li><strong>Kurtosis</strong></li><li><strong>Skewness</strong></li></ol><h4><strong>1.Standard Deviation:</strong></h4><p>It shows how much the data is spread out.</p><p>It measures the deviation around the mean. A small standard deviation indicates that the data is close to the mean, while a large standard deviation indicates that the data is more spread out from the mean.</p><p>If we want to calculate the standard deviation in Python, you can use as shown in the example below.</p><p>Example:</p><p>Input:</p><pre>data = [2, 4, 6, 8, 10]<br>std_dev = np.std(data)<br>print(&quot;Standard Deviation:&quot;, std_dev)</pre><p>Output:</p><p>Standard Deviation: 2.8284271247461903</p><h4><strong>2.Variance:</strong></h4><p>It shows how much the data deviates from the mean.</p><p>Variance is the average of the squared deviations from the mean. Variance measures the spread of the dataset and is the square of the standard deviation.</p><p>If you want to calculate the variance in Python, you can use as shown in the example below.</p><p><strong>Example</strong>:</p><p>Input:</p><pre>data = [2, 4, 6, 8, 10]<br>variance = np.var(data)<br>print(&quot;Variance:&quot;, variance)</pre><p>Output:</p><p>Variance: 8.0</p><h4><strong>3.Range</strong>:</h4><p>It is the difference between the highest and lowest values in the dataset. The range helps in understanding the spread and distribution of the dataset.</p><p>Example 1:</p><p>Input:</p><pre># Sample dataset<br>data = [12, 7, 22, 9, 17, 5]<br># Finding the maximum and minimum values<br>max_value = max(data)<br>min_value = min(data)<br># Calculating the range<br>range_value = max_value - min_value<br>print(f&quot;Range: {range_value}&quot;)</pre><p>Output:</p><p>Range: 17</p><p><strong>Example 2:</strong></p><p>Input:</p><pre>import numpy as np<br># Sample dataset<br>data = np.array([12, 7, 22, 9, 17, 5])<br># Calculating the range<br>range_value = np.ptp(data)<br>print(f&quot;Range: {range_value}&quot;)</pre><p>Output:</p><p>Range: 17</p><h4><strong>4.Quartiles</strong>:</h4><p>Quartiles are values that divide a dataset into four equal-sized parts. These four parts provide information about the distribution of the dataset, and there are three main quartiles:</p><ul><li><strong>First Quartile (Q1):</strong> It represents the value below which 25% of the data lies. Also known as the lower quartile. It means that 25% of the data is below this value. This value indicates the central tendency of the lower part of the dataset.</li><li><strong>Second Quartile (Q2):</strong> It represents the value below which 50% of the data lies and is also known as the median. It means that 50% of the data is below this value. This value, also known as the median, represents the central tendency of the dataset.</li><li><strong>Third Quartile (Q3)</strong>: It represents the value below which 75% of the data lies. Also known as the upper quartile. It means that 75% of the data is below this value. This value indicates the central tendency of the upper part of the dataset.</li></ul><p>Quartiles help in better understanding the central tendency and distribution of the dataset.</p><p><strong>Example:</strong></p><p>Input:</p><pre>import numpy as np<br># Sample dataset<br>data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]<br># Quartile calculation<br>Q1 = np.percentile(data, 25)<br>Q2 = np.percentile(data, 50)  # Median<br>Q3 = np.percentile(data, 75)<br>print(f&quot;First Quartile (Q1): {Q1}&quot;)<br>print(f&quot;Second Quartile (Q2/Median): {Q2}&quot;)<br>print(f&quot;Third Quartile (Q3): {Q3}&quot;)</pre><p><strong>Output:</strong></p><p>First Quartile (Q1): 3.25</p><p>Second Quartile (Q2/Median): 5.5</p><p>Third Quartile (Q3): 7.75</p><p>Calculating quartiles can also be done using the pandas library.</p><p><strong>Example</strong>:</p><p>Input:</p><pre>import pandas as pd<br># Sample dataset<br>data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]<br># Creating a Pandas Series<br>data_series = pd.Series(data)<br># Quartile calculation<br>Q1 = data_series.quantile(0.25)<br>Q2 = data_series.quantile(0.50)  # Median<br>Q3 = data_series.quantile(0.75)<br>print(f&quot;First Quartile (Q1): {Q1}&quot;)<br>print(f&quot;Second Quartile (Q2/Median): {Q2}&quot;)<br>print(f&quot;Third Quartile (Q3): {Q3}&quot;)</pre><p>Output<strong>:</strong></p><p>First Quartile (Q1): 3.25</p><p>Second Quartile (Q2/Median): 5.5</p><p>Third Quartile (Q3): 7.75</p><h4><strong>5.IQR (Interquartile Range)</strong></h4><p>IQR is a statistical measure used to measure the spread of a dataset. It covers the middle 50% of a dataset and is used to understand the spread and outliers of the dataset.</p><p>IQR is calculated as follows:</p><ul><li>First quartile (Q1) — median of the lower 25% of the dataset.</li><li>Third quartile (Q3) — median of the upper 75% of the dataset.</li><li>IQR = Q3 — Q1.</li></ul><p>The most common methods to calculate IQR in Python are to use the NumPy or SciPy libraries.</p><p><strong>Example :</strong></p><p>Input:</p><pre>import pandas as pd<br># Create an example DataFrame<br>data = {&#39;values&#39;: [10, 12, 14, 15, 18, 21, 22, 23, 25, 30]}<br>df = pd.DataFrame(data)<br># Calculate the first quartile (Q1) and the third quartile (Q3)<br>Q1 = df[&#39;values&#39;].quantile(0.25)<br>Q3 = df[&#39;values&#39;].quantile(0.75)<br># Calculate the IQR<br>IQR = Q3 - Q1<br>print(&quot;Q1: &quot;, Q1)<br>print(&quot;Q3: &quot;, Q3)<br>print(&quot;IQR: &quot;, IQR)</pre><p>Output:</p><p>Q1: 14.25</p><p>Q3: 22.75</p><p>IQR: 8.5</p><h4><strong>*Normal Distribution:</strong></h4><p>Normal distribution is a distribution type that is symmetrically bell-shaped and has more values at the center, with fewer values towards the extremes.</p><p>In a dataset with a normal distribution, the majority of the data is clustered around the mean value, while outliers are less common.</p><p>In a perfect normal distribution, the tails are of equal length. However, when there is asymmetry between the tails, giving it a skewed, rectangular appearance to one side, we say it is skewed.</p><ol><li>It is symmetric. The mean, median, and mode are all at the center point. They may not form a perfect overlapping straight line. They may be slightly away from each other but the difference would be too small to matter.</li><li>The area under the bell curve is 1.</li><li>The probability never reaches 0 at the tails.</li><li>The mean of the standard normal distribution is 0, and the standard deviation is 1.</li></ol><p>In Python, you can use numpy and scipy libraries to calculate normal distribution and distribution measures.</p><p><strong>Example</strong>:</p><p>Input:</p><pre>import numpy as np<br>import matplotlib.pyplot as plt<br>from scipy.stats import norm<br># Mean and standard deviation<br>mean = 0<br>std_dev = 1<br># Range of data points<br>x = np.linspace(-4, 4, 1000)<br># Calculation of the normal distribution function<br>y = norm.pdf(x, mean, std_dev)<br># Plotting the graph<br>plt.plot(x, y)<br>plt.title(&#39;Normal Distribution&#39;)<br>plt.xlabel(&#39;X&#39;)<br>plt.ylabel(&#39;Probability Density&#39;)<br>plt.grid(True)<br>plt.show()<br>Output:</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*qyZLFwfIe60EyjMNLfo3Cw.png" /></figure><h4><strong>6. Skewness</strong>:</h4><p>Skewness is a measure of how asymmetrically a data distribution is shaped.</p><p>Positive skewness indicates that the data distribution is skewed to the right, while negative skewness indicates a skew to the left. Skewness is important for understanding how closely the dataset resembles a normal distribution.</p><ul><li><strong>If the output is negative (skewness &lt; 0)</strong>, the distribution is left-skewed. In this case, larger values are more common in the dataset. These distributions often have outliers on the lower end. There is typically a ranking of magnitudes as mean &lt; median &lt; mode (left-tailed).</li><li><strong>If the output is positive (skewness &gt; 0)</strong>, the distribution is right-skewed. In this case, smaller values are more common in the dataset. These distributions often have outliers on the higher end. There is typically a ranking of magnitudes as mean &gt; median &gt; mode (right-tailed).</li><li><strong>If the output is close to zero (skewness ≈ 0)</strong>, the distribution can be considered symmetric. In this case, there is a symmetric distribution with values equally centered around the mean. However, the mean, median, and mode may not perfectly overlap. They may be slightly apart, but the difference would be insignificant. (No skewness, kurtosis, or tails on either side.)</li></ul><p>In Python, skewness is typically calculated using the skew() function from the pandas or scipy library.</p><p><strong>Example:</strong></p><p>Input:</p><pre># Import the scipy library:<br>from scipy.stats import skew<br># Sample dataset<br>data = [1, 2, 2, 3, 4, 4, 4, 5, 5, 5, 5]<br># Calculate skewness<br>skewness = skew(data)<br>print(&quot;Skewness:&quot;, skewness)</pre><p>Output:</p><p>Skewness: -0.6075010518631389</p><p>This code calculates the skewness coefficient of the specified dataset.</p><h4><strong>7.Kurtosis:</strong></h4><p>Kurtosis measures the peakedness or flatness of a dataset’s distribution. It indicates how sharp or flat the peak of the distribution is.</p><p>While skewness focuses on the spread (tails) of the normal distribution, kurtosis focuses more on the height. It tells us how peaked or flat our normal (or normal-like) distribution is.</p><p>The interpretation of kurtosis is as follows:</p><ul><li><strong>If kurtosis &gt; 3, and excess kurtosis &gt; 0</strong>; the distribution is leptokurtic. A positive kurtosis indicates that the distribution is sharper (more outliers) than the normal distribution. There are more values concentrated around the mean compared to the normal distribution.</li><li><strong>If kurtosis &lt; 3, and excess kurtosis &lt; 0</strong>; the distribution is platykurtic. A negative kurtosis indicates that the distribution is flatter (fewer outliers) than the normal distribution. There are fewer values concentrated around the mean, but still more than the normal distribution.</li><li><strong>If kurtosis = 3, and excess kurtosis = 0;</strong> the distribution is considered normal. If the kurtosis coefficient is close to 0, the data is closer to a normal distribution.</li></ul><h4><strong>Note</strong>:</h4><p>Excess kurtosis is obtained by subtracting 3 from the kurtosis value of a dataset.</p><p>So, excess kurtosis = kurtosis — 3.</p><p>It is used to measure deviation from the normal distribution. As mentioned above, the excess kurtosis value for a normal distribution is 0.</p><p>In Python, the kurtosis() function from the scipy.stats library is commonly used to calculate and interpret kurtosis.</p><p><strong>Example</strong>:</p><p><strong>Input</strong>:</p><pre># Import the scipy library:<br>from scipy.stats import kurtosis<br># Sample dataset<br>data = [12, 7, 22, 9, 17, 5]<br># Calculate excess kurtosis (subtract 3 for normality)<br>excess_kurt = kurtosis(data)<br>print(f&quot;Excess Kurtosis: {excess_kurt}&quot;)</pre><p><strong>Output:</strong></p><p>Excess Kurtosis: -1.0955991124260354</p><h4><strong>Note:</strong></h4><p>The kurtosis function in the Scipy library returns the excess kurtosis value by default (since fisher=True). Therefore, the result calculated in the above code would be the excess kurtosis. If the kurtosis value (without subtracting 3 for normality) is desired, the fisher parameter should be set to False.</p><h4><strong>*Correlation</strong>:</h4><p>Correlation indicates the direction and strength of the relationship between two variables. It helps us understand how two variables move together. Positive correlation indicates that two variables increase or decrease together, while negative correlation indicates that one decreases as the other increases.</p><p>Correlation ranges between -1 and 1. If the correlation value between two variables;</p><ul><li><strong>Is 0;</strong> it means there is no linear relationship between the two variables.</li><li><strong>Is less than 0</strong>; it indicates negative correlation, and the closer it is to -1, the stronger the relationship between them.</li><li><strong>Is greater than 0</strong>; it indicates positive correlation, and the closer it is to 1, the stronger the relationship between them.</li></ul><p><strong>Example:</strong></p><p>Input:</p><pre>import pandas as pd<br># Sample dataset<br>np.random.seed(0)<br>x = np.arange(10)<br>y = x + np.random.normal(0, 1, 10) <br>z = -x + np.random.normal(0, 1, 10)<br>w = np.random.normal(0, 10, 10)    <br># Create a DataFrame<br>data = pd.DataFrame({&#39;x&#39;: x, &#39;y&#39;: y, &#39;z&#39;: z, &#39;w&#39;: w})<br># Calculate the correlation matrix<br>correlation_matrix = data.corr()<br>print(correlation_matrix)</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*aMAu037ebq5ZIyFl9cWNNg.png" /></figure><h4><strong>A little fun! ☕</strong></h4><p>While coding, you can sip your favorite coffee or tea while listening to your favorite music.</p><p>Enjoy your coding and exploration 🚀</p><p>Let’s close with a song then, until next time! 🤩</p><p><a href="https://open.spotify.com/track/4txaBpmZBOneum5HnxKKnJ?si=01d60b1d89884e6b">https://open.spotify.com/track/4txaBpmZBOneum5HnxKKnJ?si=01d60b1d89884e6b</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44a487eed8a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Data Analysis and Visualization: Libraries, Data Types, and Graphs]]></title>
            <link>https://medium.com/@ebruiserisobay/python-data-analysis-and-visualization-libraries-data-types-and-graphs-7f9882159922?source=rss-c89ffc6bee2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f9882159922</guid>
            <category><![CDATA[data-types-in-python]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[libraries]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ebru İşeri Sobay]]></dc:creator>
            <pubDate>Thu, 30 May 2024 03:54:29 GMT</pubDate>
            <atom:updated>2024-05-30T03:54:29.184Z</atom:updated>
            <content:encoded><![CDATA[<p>🦾 Let’s explore together the fundamental tools, data types, and visualization techniques that constitute the backbone of insightful data discovery.</p><h3>1- Libraries 🛠️:</h3><p>•<strong> NumPy: </strong>It will be our best friend when working with numerical operations and large datasets.</p><p>• <strong>Pandas:</strong> Perfect for organizing, analyzing, and displaying data in tabular form.</p><p>• <strong>SciPy:</strong> A scientific hero for more complex statistical analyses.</p><p>• <strong>Matplotlib &amp; Seaborn: </strong>Want to visualize data? Here are our friends who will draw colorful and beautiful graphs.</p><h3>2- Data Types 🧱:</h3><p>Data types are very important when doing data analysis and are the building blocks of data analysis.</p><h4>Common data types in Python:</h4><ul><li><strong>Integer:</strong> Whole numbers, e.g., 1, 2, 3</li><li><strong>Float: </strong>Decimal numbers, e.g., 1.5, 2.75</li><li><strong>String:</strong> Text data, e.g., “Hello”, “Data Science”</li><li><strong>Boolean: </strong>True or False values</li><li><strong>List</strong>: A collection of values, recognized by square brackets. e.g., [1, 2, 3]</li><li><strong>Tuple</strong>: Immutable list, recognized by parentheses. e.g., (1, 2, 3)</li><li><strong>Dictionary: </strong>Key-value pairs and recognized by curly braces. e.g., {‘name’: ‘John’, ‘age’: 25}</li><li><strong>Set: </strong>A collection of unique values, recognized by curly braces like dictionaries but without key-value pairs. e.g., {1, 2, 3}</li><li><strong>NumPy Array: </strong>The fundamental data type of the NumPy library, ideal for working with numerical data</li><li><strong>Pandas Series:</strong> The one-dimensional data structure of the Pandas library.</li><li><strong>Pandas DataFrame: </strong>The multi-dimensional and indexed fundamental data structure of the Pandas library.</li></ul><h3><strong>3- Data Visualization </strong>📉<strong>:</strong></h3><p>Graphs are a fun and visual way to understand data. Visualizing data is essential for data analysis.</p><p>Here are some information about graphs according to the types of data we frequently encounter in Python:</p><h4><strong>Numerical Data:</strong></h4><p>• <strong>Histogram:</strong> Excellent for visualizing the distribution of numerical data. It displays the frequency of data grouped into bins.</p><p>• <strong>Box Plot: </strong>Shows the distribution, median, quartiles, and outliers of the data.</p><p>• <strong>Scatter Plot: </strong>Used to show the relationship between two numerical variables.</p><h4><strong>Categorical Data:</strong></h4><p>• <strong>Bar Plot: </strong>Used to visualize the frequency or mean value of categorical data.</p><p>• <strong>Pie Chart: </strong>Excellent for showing the percentage distribution of categorical data.</p><h4><strong>Time Series Data:</strong></h4><p>• <strong>Line Plot: </strong>Ideal for showing changes over time.</p><h4><strong>Distribution and Density:</strong></h4><p>• <strong>Density Plot:</strong> Used to show the density distribution of data.</p><p>• <strong>Violin Plot:</strong> A combination of a density plot and a box plot, showing both the distribution and density of data.</p><p>As an example of graphs, let’s draw a simple histogram!</p><p><strong>Input:</strong></p><pre>data_2 = [2, 2, 4, 10, 6, 6, 8, 2, 8, 4, 10, 6, 10, 10]<br>import matplotlib.pyplot as plt<br>plt.hist(data_2, bins=5, color=&#39;green&#39;, edgecolor=&#39;black&#39;)<br>plt.title(&#39;Distribution of data&#39;)<br>plt.xlabel(&#39;Values&#39;)<br>plt.ylabel(&#39;Frequency&#39;)<br>plt.show()</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*mXf7WrS_kfA76Lz9n8BFEA.png" /></figure><p>Enjoy your coding and exploration 🚀</p><p>See you soon 🤩</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f9882159922" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>