Author: datapandasadmin

  • |

    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…

  • 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…

  • |

    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…

  • | |

    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  …

  • |

    Create Batch Dot Bat File to Run Your Python Script With Windows Scheduler

    After writing your script, you might want to schedule it to run periodically, let’s say, Daily, Weekly or Any Time interval you will decide Before you schedule that you want to  simply create a batch file and schedule it run with a Windows Scheduler. Here are simple steps to do that. First of all, if…

  • Getting Python Spyder Anaconda IDE To Work Using Virtualenv

    If you have some Python scripts which rely on some packages that need a different version other than the version your Python Spyder uses, you can simply use Python Virtualenv to run Spyder IDE . This will save you a lot of headache and you can simply continue with your development projects. This tutorial will…

  • Simple Python Logging Callling Reload to Help Save Logging to File

      In this notes, we are looking at a simple but yet useful and powerful logging in Python In [77]:

      In [78]:

      In [79]:

     

     

  • Getting Stock Prices from Yahoo and plotting Python 3 Matplolib Urllib

    This is  some quick notes about getting stock data from Yahoo and plotting it using Matplotlib . The Python version used is Python 3.5 Credits to sentdex.  You can check him out on Youtube. In [11]:

      In [12]:

      In [13]:

      In [14]:

       

  • Matplotlib Pyplot Plt Python Pandas Data Visualization Plotting

      This is some quick notes about graphing or plotting graphs with Matplotlib in Python. Credits to sentdex.  You can check him out on Youtube.

      In [4]:

      In [10]:

      In [14]:

      In [20]:

      In [23]:

      In [30]:

      Out[30]:

    In [48]: