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

Read More »
Python
datapandasadmin

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]: import logging #levels of logging are #1 debug – detailed info #2 info – confirmation that things went according to plan #3 warning – something unexpected happened #4 error – some function failed #5 critical –

Read More »

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]: import matplotlib.pyplot as plt import numpy as np import urllib import matplotlib.dates as mdate import urllib.request %matplotlib inline #%matplotlib qt #%matplotlib notebook

Read More »
Python
datapandasadmin

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. import matplotlib.pyplot as plt %matplotlib inline # simple syntax is matplotlib plots as plt.plot(x, y) plt.plot([1,2,3], [5,6,7]) plt.show()   In [4]: # plotting with variables and basic labelling of our plot x = [1,2,3]

Read More »
Python
datapandasadmin

ImportError: No module named learn.base Crab Python Fix

I was working on Recommender System and had a problem when i tried importing from scikits.crab.recommenders.knn import UserBasedRecommender. I encountered the following error ImportError: No module named learn.base I did research on the web and found one good solution but it was in Chinese. Here is the link and credit to the original fixer :

Read More »
Python
datapandasadmin

ImportError: No module named ‘scikits’ – Python Fix Jupyter Notebook

If you have the above problem, to fix this, follow these guidelines as advised by Flowerowl  at this link (https://github.com/muricoca/crab/issues/92): The steps are as follows:   Don’t install crab in this way: pip install crab / easy_install crab You can find crab in pypi.python.org, this is not our scikits.crab source Solution: git clone https://github.com/muricoca/crab.git python setup.py

Read More »

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]: import numpy as np   In [2]: arr = np.arange(50) arr   Out[2]: array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,

Read More »