<?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 Prajakta Mogare on Medium]]></title>
        <description><![CDATA[Stories by Prajakta Mogare on Medium]]></description>
        <link>https://medium.com/@prmogare17?source=rss-7be50ed0cf70------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Nl0Z1XGmDuo3Q05m9pkIJw.jpeg</url>
            <title>Stories by Prajakta Mogare on Medium</title>
            <link>https://medium.com/@prmogare17?source=rss-7be50ed0cf70------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:42:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prmogare17/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[Easiest Numpy Guide For Beginners Part-2]]></title>
            <link>https://pub.towardsai.net/easiest-numpy-guide-for-beginners-part-2-6b94c1466b6d?source=rss-7be50ed0cf70------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b94c1466b6d</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Prajakta Mogare]]></dc:creator>
            <pubDate>Thu, 21 Jan 2021 13:03:10 GMT</pubDate>
            <atom:updated>2021-01-21T13:03:10.814Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="https://towardsai.net/p/category/programming">Programming</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*9Vef2dHoj5TuRKKcfkDYiw.jpeg" /></figure><p>This part is the continuation of the part-1 of my blog. I appeal to you to please go through part-1 for a better understanding of this blog.</p><p><a href="https://medium.com/towards-artificial-intelligence/easiest-numpy-guide-for-beginners-part-1-c031a21c4c90">Easiest Numpy Guide For Beginners Part-1</a></p><ol><li>Where function in Numpy Array</li></ol><p>Where function in NumPy array is used for finding a group of values that satisfy the mentioned condition. This method returns the index of the values and not the values themselves.</p><pre><strong>Input:<br></strong>import numpy as np<br>arr=np.array([8,94,8,56,7,3,2,1,0])<br>print(np.where(arr&gt;10))</pre><pre><strong>Output:                           #Returns the index not values<br></strong>(array([1, 3], dtype=int64),)</pre><pre><strong>Input:<br></strong>val1= np.where(arr&gt;10)<br>print(arr[val1])</pre><pre><strong>Output:             #After passing index to array we can get values<br></strong>[94 56]                           </pre><p>2. min(),max(),argmin(),argmax()</p><ol><li>min() -Finds the <strong><em>minimum value</em></strong> in Numpy array.</li><li>max()-Finds the <strong><em>maximum value</em></strong> in Numpy array.</li><li>argmin()-Finds the <strong><em>index of minimum value</em></strong> in Numpy array.</li><li>argmax()-Finds the <strong><em>index of maximum value</em></strong> in Numpy array.</li></ol><pre><strong>Input:</strong><br>print(arr.min())<br>print(arr.max())<br>print(arr.argmax())<br>print(arr.argmin())</pre><pre><strong>Output:<br></strong>0                       #Min Value<br>94                      #Max Value<br>1                       #Index of Min Value<br>8                       #Index of Max Value</pre><p>3. Read and Write a File using Numpy</p><ol><li>savetxt() and loadtxt()</li></ol><p>savetxt()- Used for writing some text content into a file. We can use the savetxt() for the creation and writing of text files or CSV files.</p><p>CSV file is a file that has comma-separated values in it. This type of file can be made by using the delimiter keyword in savetxt().</p><pre><strong>Input:<br></strong>import numpy as np<br>arr=np.array([8,94,8,56,7,3,2,1,0])<br>np.savetxt(&#39;arr_file.csv&#39;,arr,delimiter=&#39;,&#39;)</pre><pre><strong>Output:</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*RnpqA3XliMdBTYVUYFUlVA.png" /></figure><pre><strong>Input:<br></strong>np.loadtxt(&#39;arr_file.csv&#39;,delimiter=&#39;,&#39;)</pre><pre><strong>Output:<br></strong>array([ 8., 94.,  8., 56.,  7.,  3.,  2.,  1.,  0.])</pre><p>2. save(),load(),savez()</p><p>.npy - It is a binary file in NumPy array which can hold only a single array in it.</p><p>.npz -It works like a zip file that contains the multiple numbers of .npy files in it.</p><p>save()- Saves file with .npy extension</p><p>load()- Loads file with .npy and .npz extension</p><p>savez()- Saves file with .npz extension</p><pre><strong>Input:</strong><br>arr_1=np.array([8,94,8,56,7,3,2,1,0])<br>arr_2=np.array([2,3,4,5,6,7,8,9])<br>np.save(‘data1.npy’,arr_1)              #creation of .npy<br>np.save(‘data2.npy’,arr_2)              #creation of .npy<br>np.savez(‘both.npz’,arr_1,arr_2)        #creation of .npz<br>d=np.load(‘both.npz’)<br>print(d.files)                          #Arrays in zip folder<br>print(d[d.files[0]])                    #First Array<br>print(d[d.files[1]])                    #Second Array</pre><pre><strong>Output:<br></strong>[&#39;arr_0&#39;, &#39;arr_1&#39;]<br>[ 8 94  8 56  7  3  2  1  0]<br>[2 3 4 5 6 7 8 9]</pre><p>4. Concatenation and Sorting in Numpy Array</p><ol><li>Concatenate method</li></ol><p><strong>axis=0 -</strong>Concatenation row-wise</p><p><strong>axis=1 -</strong>Concatenation column-wise</p><pre><strong>Input:</strong><br>arr_3=np.array([[1,2],[5,6],[7,8]])<br>np.concatenate([arr_3,arr_3],axis=0)</pre><pre><strong>Output:<br></strong>array([[1, 2],<br>       [5, 6],<br>       [7, 8],<br>       [1, 2],<br>       [5, 6],<br>       [7, 8]])</pre><pre><strong>Input:<br></strong>np.concatenate([arr_3,arr_3],axis=1)</pre><pre><strong>Output:<br></strong>array([[1, 2, 1, 2],<br>       [5, 6, 5, 6],<br>       [7, 8, 7, 8]])</pre><pre><strong>For concatenation the dimensions of two arrays should be exactly the same otherwise it will give valueError.</strong></pre><pre><strong>Input:</strong><br>np.concatenate([arr_1,arr_3],axis=0)</pre><pre><strong>Output:</strong></pre><pre><strong>ValueError</strong>                                Traceback (most recent call last)<br><strong>&lt;ipython-input-17-c9ceb2b572e7&gt;</strong> in &lt;module&gt;<br><strong>----&gt; 1 </strong>np<strong>.</strong>concatenate<strong>([</strong>arr_1<strong>,</strong>arr_3<strong>],</strong>axis<strong>=0)</strong><br><br><strong>&lt;__array_function__ internals&gt;</strong> in concatenate<strong>(*args, **kwargs)</strong><br><br><strong>ValueError</strong>: all the input arrays must have same number of dimensions, but the array at index 0 has 1 dimension(s) and the array at index 1 has 2 dimension(s)</pre><p>2. vstack() and hstack() methods</p><p>vstack() — Stacks the elements vertically.</p><p>hstack() — Stacks the elements horizontally.</p><pre><strong>Input:</strong><br>np.vstack([arr_3,arr_3])</pre><pre><strong>Output:<br></strong>array([[1, 2],<br>       [5, 6],<br>       [7, 8],<br>       [1, 2],<br>       [5, 6],<br>       [7, 8]])</pre><pre><strong>Input:<br></strong>np.hstack([arr_3,arr_3])</pre><pre><strong>Output:<br></strong>array([[1, 2, 1, 2],<br>       [5, 6, 5, 6],<br>       [7, 8, 7, 8]])</pre><p>Sorting-</p><p>Sorting is by default done row-wise</p><pre><strong>Input:</strong><br>npa=np.hstack([arr_3,arr_3])<br>print(npa)<br>npa.sort()<br>print(npa)</pre><pre><strong>Output:</strong><br>[[1 2 1 2]           #Before sorting<br> [5 6 5 6]<br> [7 8 7 8]]</pre><pre>[[1 1 2 2]           #Sorted Rowwise<br> [5 5 6 6]<br> [7 7 8 8]]</pre><p>5. Date and time in Numpy</p><p>Creation of a particular date and time</p><pre><strong>Input:</strong><br>import numpy as np<br>d = np.datetime64(‘2020–12–01 23:34:56’)<br>print(d)</pre><pre><strong>Output:<br></strong>2020-12-01T23:34:56</pre><pre><strong>Input:<br></strong>print(d+1)           #Extra second gets added</pre><pre><strong>Output:<br></strong>2020-12-01T23:34:57</pre><pre><strong>Adding a day into the date</strong></pre><pre><strong>Input:<br></strong>oneday = np.timedelta64(1,&#39;D&#39;)<br>print(oneday)<br>print(oneday+d)</pre><pre><strong>Output:<br></strong>1 days<br>2020-12-02T23:34:56</pre><pre><strong>Adding minute into time</strong></pre><pre><strong>Input:<br></strong>tenminutes = np.timedelta64(10,&#39;m&#39;)<br>print(tenminutes)<br>print(tenminutes+d)</pre><pre><strong>Output:<br></strong>10 minutes<br>2020-12-01T23:44:56</pre><p>6. Broadcasting in Numpy</p><p>Many of the times when we are performing arithmetic operations we face a problem with dimensionality but with the special property of NumPy, it is possible to have an automatic solution to this problem.</p><p>In broadcasting what it does is expands the array of smaller dimensions into the similar dimension of a larger array. So that now it can perform arithmetic operations easily as both arrays have a similar size.</p><p>For broadcasting the array there is one condition that we need to follow.</p><p><strong><em>At least one of the dimensions of the smaller array should be the same as the larger array.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*mT6LtBrduOynynR_aTcQyg.png" /></figure><p>The array b expands itself for getting a size similar to array a.</p><pre><strong>Input:</strong><br>a = np.array([[10.0,10.0,10.0],[20.0,20.0,20.0],[20.0,20.0,20.0],[40.0,40.0,40.0]]) <br>b = np.array([1.0,2.0,3.0])<br>print(a)<br>print(b)<br>print(a+b)</pre><pre><strong>Output:<br></strong>[[10. 10. 10.]<br> [20. 20. 20.]<br> [20. 20. 20.]<br> [40. 40. 40.]]</pre><pre>[1. 2. 3.]</pre><pre>[[11. 12. 13.]                  #10+1,10+2,10+3<br> [21. 22. 23.]                  #20+1,20+2,20+3<br> [21. 22. 23.]                  #20+1,20+2,20+3<br> [41. 42. 43.]]                 #40+1,40+2,40+3</pre><p><strong>If you really like this blog please give it a clap and Follow</strong>.</p><h3>Thank You.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b94c1466b6d" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/easiest-numpy-guide-for-beginners-part-2-6b94c1466b6d">Easiest Numpy Guide For Beginners Part-2</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easiest Numpy Guide For Beginners Part-1]]></title>
            <link>https://pub.towardsai.net/easiest-numpy-guide-for-beginners-part-1-c031a21c4c90?source=rss-7be50ed0cf70------2</link>
            <guid isPermaLink="false">https://medium.com/p/c031a21c4c90</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[numpy]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Prajakta Mogare]]></dc:creator>
            <pubDate>Fri, 15 Jan 2021 03:01:16 GMT</pubDate>
            <atom:updated>2021-01-15T03:01:16.303Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="https://towardsai.net/p/category/programming">Programming</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*9Vef2dHoj5TuRKKcfkDYiw.jpeg" /><figcaption>Source: <a href="https://www.fullstackpython.com/scipy-numpy.html">Full Stack Python</a></figcaption></figure><h4>What is Numpy?</h4><p>Numpy is a python library that is used for performing mathematical operations related to linear algebra, matrices. Numpy actually stands for <em>Numerical python</em> which works much faster than any other data type when working with numbers.</p><h4>What operations can we perform by using the NumPy library?</h4><ol><li>Creating an array</li></ol><pre><strong>Input:</strong><br>import numpy as np<br>l=[10,20,30]<br>np1=np.array(l)<br>type(np1)</pre><pre><strong>Output:<br></strong>[10 20 30]<br>numpy.ndarray</pre><pre><strong>Input:<br></strong>l=[[1,2],[5,6],[7,8]]<br>np2=np.array(l)<br>print(np2)</pre><pre><strong>Output:<br></strong>[[1 2]<br> [5 6]<br> [7 8]]</pre><p>In the above code, I have created a NumPy array by using a list or a list of list, we can also create an array by using a <strong><em>tuple or by simply passing a number.</em></strong></p><p>2. Changing the type of elements in a NumPy array</p><pre><strong>Input:</strong><br>np2_float= np.array(l,dtype=’float’)<br>print(np2_float)</pre><pre><strong>Output:<br></strong>[[1. 2.]<br> [5. 6.]<br> [7. 8.]]</pre><pre><strong>Input:</strong><br>print(np2.astype(&#39;float&#39;))     #np2 is name of the array declared</pre><pre><strong>Output:<br></strong>[[1. 2.]<br> [5. 6.]<br> [7. 8.]]</pre><p>The type of numbers in a NumPy array can be changed either by using dtype keyword or by using astype() function. The type can be change to float64, str,int32, and complex128 datatypes.</p><p>3.Knowing the dimension of NumPy array</p><p>ndmin stands for n-dimensional which is used for the creation of a multidimensional array by simply using a keyword ndimn</p><pre><strong>Input:</strong><br>x=np.array(10)<br>y=np.array([10,20])<br>z=np.array([[10,20],[30,40]])<br>print(x.ndim)<br>print(y.ndim)<br>print(z.ndim)</pre><pre><strong>Output:<br></strong>0<br>1<br>2</pre><pre><strong><em>Creating a multidiamensional numpy array</em></strong><br><strong>Input:<br></strong>arr = np.array([10, 20, 30, 40], ndmin=5)<br>print(arr)</pre><pre><strong>Output:</strong><br>[[[[[10 20 30 40]]]]]</pre><p>4. Working with Nan and Inf</p><p>Nan stands for Not a Number and Inf stands for infinity. Sometimes in a dataset, there are values that are undefined and which can affect the mathematical calculations adversely and cause a problem in the calculation which can be fixed by using Nan. These Nan values can also be replaced by using a suitable value calculated by using the mean, mode, and median of a column.</p><pre><strong>Input:</strong><br>np2_float= np.array(l,dtype=’float’)<br>print(np2_float)</pre><pre>np2_float[0][0]=np.nan<br>np2_float[1][1]=np.inf</pre><pre>print(np.isnan(np2_float))<br>print(np.isinf(np2_float))</pre><pre><strong>Output:<br></strong>[[1. 2.]<br> [5. 6.]<br> [7. 8.]]</pre><pre>[[ True False]<br> [False False]<br> [False False]]</pre><pre>[[False False]<br> [False  True]<br> [False False]]</pre><p>The isnan() and isinf() functions return a boolean array where it assigns True if the value is Not a number and Infinity Respectively.</p><p>5. Statistical Operations using Numpy</p><p>The main specialty of the NumPy library is it gives the inbuilt functions for performing statistical calculations like mean, variance, standard deviation, median,max-value,min-value.</p><pre><strong>Input:</strong><br>import numpy as np<br>arr1=np.array([[0.,2.],[3.,0.],[3.,4.]])<br>print(arr1.mean())<br>print(arr1.max())<br>print(arr1.min())<br>print(arr1.std())<br>print(arr1.var())<br>print(np.median(arr1))</pre><pre><strong>Output:<br></strong>2.0                               #Mean<br>4.0                               #Maximum Value<br>0.0                               #Minimum Value<br>1.5275252316519468                #Standard Deviation<br>2.3333333333333335                #Variance<br>2.5                               #Median</pre><p>6. Reshaping a Numpy array</p><p>Reshaping of an array is done by using shape,reshape(),ravel() and flatten() methods.</p><ol><li>shape- Used for knowing the shape of the Numpy array.</li><li>reshape()-Used for reshaping Numpy array</li><li>ravel()-Reshaping a multidimensional array into one-dimensional array</li><li>flatten()-It flattens array into a one-dimensional array returns a copy of the array and not the original array.</li></ol><pre><strong>1.Input:</strong><br>print(arr1.shape)</pre><pre><strong>  Output:<br></strong>(3, 2)</pre><pre><strong>2.Input:<br></strong>print(arr1.reshape(2,3))</pre><pre><strong>Output:<br></strong>[[0. 2. 3.]<br> [0. 3. 4.]]           #Return an array having 2 rows and 3 columns</pre><pre><strong>3.Input:<br></strong>print(arr1.reshape(3,4))</pre><pre><strong>Output:<br>---------------------------------------------------------------------------</strong><br><strong>ValueError</strong>                                Traceback (most recent call last)<br><strong>&lt;ipython-input-9-473a5b5a1916&gt;</strong> in &lt;module&gt;<br><strong>----&gt; 1 </strong>print<strong>(</strong>arr1<strong>.</strong>reshape<strong>(3,4))</strong><br><br><strong>ValueError</strong>: cannot reshape array of size 6 into shape (3,4)</pre><p>In example 2 we were able to convert the array into (2,3) then what is the problem with example 3?</p><p>The first thing we should keep in mind when we are reshaping an array is the multiplication of all the dimensions of the array before and after the reshaping should be the same. i.e.</p><pre>3*2 = 6  Original array shape<br>2*3 = 6  6 obtained this time hence reshaping is possible here<br>3*4 = 12  6 != 12 and hence it can&#39;t be reshaped into(3,4)array<br>1*6 = 6   Possible</pre><pre><strong>Input:</strong><br>print(arr1.reshape(1,6))</pre><pre><strong>Output:<br></strong>[[0. 2. 3. 0. 3. 4.]]</pre><pre><strong>Input:<br></strong>print(arr1.ravel())</pre><pre><strong>Output:<br></strong>[0. 2. 3. 0. 3. 4.]         #Returns a view of original array</pre><pre><strong>Input:<br></strong>print(arr1.flatten())</pre><pre><strong>Output:<br></strong>[0. 2. 3. 0. 3. 4.]         #Returns a copy after applying changes</pre><p>7. Sequence and Repetition in Numpy</p><ol><li>arange()- arange function is used for getting values in a particular range. arange function always excludes the end value.</li></ol><pre>arange(start_value,end_value,step) The default value of step is 1</pre><pre><strong>Input:<br></strong>np.arange(1,5,dtype=&#39;float64&#39;)  #Excludes the last value from range</pre><pre><strong>Output:<br></strong>array([1., 2., 3., 4.])</pre><pre><strong>Input:<br></strong>np.arange(1,15,5)        #Third value is step value </pre><pre><strong>Output:<br></strong>array([ 1,  6, 11])</pre><p>2.linspace() and logspace()</p><p>linspace() — values with linear space between them</p><p>logspace() — Values with log scale space between them</p><pre><strong>Input:</strong><br>np.linspace(1,20,3)   #This gives 3 values which are linearly spaced</pre><pre><strong>Output:<br></strong>array([ 1. , 10.5, 20. ])</pre><pre><strong>Input:<br></strong>np.logspace(1,20,5)</pre><pre><strong>Output:<br></strong>array([1.00000000e+01, 5.62341325e+05, 3.16227766e+10, 1.77827941e+15,1.00000000e+20])</pre><p>3. Zeros and ones</p><p>Zeros- This method in NumPy is used for obtaining an array of zeros of a specific dimension. Someone would have a question in mind that what will be the use of arrays of zeros answer to that question is it is specifically used in computer vision or TensorFlow operations for creating a variable of zeros and ones</p><pre><strong>Input:</strong><br>np.zeros([1,5])             #1 is no.of rows 5 is no. of columns</pre><pre><strong>Output:<br></strong>array([[0., 0., 0., 0., 0.]])</pre><pre><strong>Input:                  <br></strong>np.zeros([1,2,3])        # 1=no_of_rows,2=no_of_columns,3=diamension</pre><pre><strong>Output:<br></strong>array([[[0., 0., 0.],<br>        [0., 0., 0.]]])</pre><p>Ones- This creates an array of a specific dimension of ones.</p><pre><strong>Input:</strong><br>np.ones([1,2])</pre><pre><strong>Output:<br></strong>array([[1., 1.]])</pre><p>8. Repetition in Numpy array</p><p>Repetition of elements in an array is performed by using tile and repeat method in NumPy.</p><pre><strong>Input:</strong><br>np.tile([5,6],3)                  #Tile method</pre><pre><strong>Output:<br></strong>array([5, 6, 5, 6, 5, 6])</pre><pre><strong>Input:<br></strong>np.repeat([5,6],3)               # Repeat Method</pre><pre><strong>Output:<br></strong>array([5, 5, 5, 6, 6, 6])</pre><p>9. Random Numbers in Numpy</p><ol><li>random.rand(): This method is used for creating random numbers in the range of 0 to 1 of a specified size.</li></ol><pre><strong>Input:</strong><br>np.random.rand(3,3)                       </pre><pre><strong>Output:                               # Range of values 0-1<br></strong>array([[0.40789767, 0.09907005, 0.61824239],<br>       [0.1407942 , 0.00401495, 0.6172148 ],<br>       [0.71200448, 0.72108788, 0.70333744]])</pre><p>2.random.randint(): Creates an array of integers of a specific dimension and a specified range of values.</p><pre><strong># np.random.randint(start_value,end_value,diamension)<br>Input:</strong><br>np.random.randint(1,100,[3,3])      </pre><pre><strong>Output:<br></strong>array([[63, 45, 50],<br>       [18, 10, 48],<br>       [62,  6, 48]])</pre><p>Every time when we run the above command we will get different values. In case if we wanted to obtain the same array by using random. randint() we need to use the seed function which fixes the starting value of the randint function and hence we always get the same array of values.</p><pre><strong>Input:</strong><br>np.random.seed(34)<br>np.random.randint(1,100,[3,3])</pre><pre><strong>Output:<br></strong>array([[34, 86, 69],<br>       [36, 70, 12],<br>       [79, 30, 19]])</pre><p>10. Unique values from Numpy array</p><p>Unique method is used for finding unique numbers from a NumPy array.</p><pre><strong>Input:</strong><br>arr_2=np.array([[0,2],[3,0],[3,4]],dtype=’float64&#39;)<br>print(arr_2)<br>print(np.unique(arr_2))</pre><pre><strong>Output:<br></strong>[[0. 2.]<br> [3. 0.]<br> [3. 4.]]<br>[0. 2. 3. 4.]</pre><p>The count of unique numbers can also be calculated by using a simple keyword <em>return_counts.</em></p><pre><strong>Input:</strong><br>np.unique(arr_2,return_counts=True)</pre><pre><strong>Output:<br></strong>(array([0., 2., 3., 4.]), array([2, 1, 2, 1], dtype=int64))</pre><p>The second term in the output shows the count of each unique value.</p><p>If you really like this blog please give a clap and follow. I will release part 2 of the Easiest Numpy guide for beginners very soon….</p><p>Thank You.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c031a21c4c90" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/easiest-numpy-guide-for-beginners-part-1-c031a21c4c90">Easiest Numpy Guide For Beginners Part-1</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>