Array Processing – Python Numpy – How to work with Arrays in Python

 

Hi Guys,

Thanks for all your emails. In this note, we will be looking at Array Processing in Python.

This is part of lectures on Learning Python for Data Analysis and Visualization by Jose Portilla on Udemy.

In [3]:

 

In [4]:

 

In [5]:

 

In [6]:

 

Out[6]:
In [7]:

 

Out[7]:
In [8]:

 

Out[8]:
In [9]:

 

Out[9]:
In [10]:

 

Out[10]:
In [11]:

 

In [12]:

 

In [13]:

 

In [14]:

 

Out[14]:
In [15]:

 

Out[15]:
In [16]:

 

In [19]:

 

Out[19]:
In [20]:

 

Out[20]:
In [22]:

 

Out[22]:
In [23]:

 

Out[23]:
In [24]:

 

Out[24]:
In [29]:

 

Out[29]:

 

Want more information like this?

Similar Posts

  • |

    Running a Chi-Square Test of Independence – Data Analysis and Intrepretation

    Running a Chi-Square Test of Independence For the purpose of running Chi Square Test of Independence on the Gapminder dataset I am working on, as indicated in the assignment instruction, I will have to categorize some of my Gapminder quantitative variables into categorical variables. In this sense, I have added another quantitative variable from the Gapminder…

  • Array Transposition – Numpy Python Data Analysis

    Welcome Guys, We will be looking at Array transposition in this quick notes. This is part of lectures on Learning Python for Data Analysis and Visualization by Jose Portilla on Udemy.   In [1]:

      In [2]:

      Out[2]:

    In [17]:

      Out[17]:

    In [10]:

      Out[10]:

    In [11]:

      Out[11]:

    In [23]:

     

  • | |

    Save Multiple Pandas DataFrames to One Single Excel Sheet Side by Side or Dowwards – XlsxWriter

      This tutorial is just to illustrate how to save Python Pandas dataframe into one excel work SHEET . You can save it column-wise, that is side by side or row-wise, that is downwards, one dataframe after the other.   In [110]:

      In [111]:

     

    In [112]:

      Out[112]: First Name Last Name…

  • |

    Save Python Pivot Table in Excel Sheets ExcelWriter

    Untitled This is a quick script on how to save Python pivot_table in an excel file. Credit to  pbpython In [1]:

      In [2]:

     

    In [8]:

      Out[8]: First Name Last Name Sex Phone Fax Email Address Booking Date Departure Date Arrival Date Address1 … Number of Passengers Total Cost Currency Numeric Code…

  • |

    Python iloc, loc, ix Data Retrieving Selection Functions

      Pandas iloc, loc, and ix functions are very powerful ways to quickly select data from your dataframe. Today , we take a quick look at these 3 functions. Credits to Data School, you can check him out in Youtube  In [1]:

      In [2]:

      In [3]:

      Out[3]: City Colors Reported Shape Reported State…

  • Python Pandas Pivot Table Index location Percentage calculation on Two columns

    pivot table for year on year This is a quick example of how to use pivot_table,  to calculate year on year percentage sales . In [162]:

      In [163]:

     

    In [164]:

      Out[164]: First Name Last Name Sex Phone Fax Email Address Booking Date Departure Date Arrival Date Address1 … Number of Passengers…

Leave a Reply

Your email address will not be published. Required fields are marked *