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

Read More »

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

Read More »

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

Read More »

Python Bokeh plotting Data Exploration Visualization And Pivot Tables Analysis

This is a quick walk through Bokeh data exploration and visualization and also python pivot_tables (credit to pbpython on the pivot_tables).Visualization Dashboard In [49]:

  In [50]:

 

In [51]:

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

Read More »

Python PyQt Gui Basics Button Window PyQt4 Pt1

This is just some quick scrap notes on the basics of Python GUI building using PyQt. In [1]:

 

  the ‘init‘ statements runs anytime we call call the Window class we have created and it runs all the code in the Window class the _init__ method calls the super constructor and then sets

Read More »

Python List Comprehension Dictionary Set Comprehension and For Loops

This is a guide on Python List comprehension. List comprehension is a great way to write simple and easy to read Python codes. You can use it dictionaries and sets as well.   Credits to  Corey Schafer , creator of Python course materials. lets create a list In [115]:

  Out[115]:

lets grab all the

Read More »
Python
datapandasadmin

Python Pandas Groupby function agg Series GroupbyObject

Group By FunctionThis is a quick look at Python groupby function. Very powerful and useful function. We will take a simple look at it here. Credits to Data School , creator of Python course materials. lets import sample dataset In [18]:

  In [19]:

  In [20]:

  Out[20]: country beer_servings spirit_servings wine_servings total_litres_of_pure_alcohol continent

Read More »
Data Science
datapandasadmin

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

Read More »
Data Science
datapandasadmin

Natural Language Processing Machine Learning Algorithm Model Python – NLP

In this guide, we take a look at Natural Language Processing, NLP in Python. Natural Language is a very extensive topic and very powerful machine learning algorithm you can build. This is very useful in many areas of most industries. Credits to Jose Portilla, creator of Learning Python for Data Analysis and Visualization course   on Udemy  

Read More »