Skip to content Skip to sidebar Skip to footer

Keyerror: 0l When Running Packaged Code

I have script called rra.py that has the following skelton structure: usn='' usnl=[] from bs4 import BeautifulSoup import re import asys import glob import os import sys import sy

Solution 1:

Finally solved it. It was an issue between latest version ofpandas and matplotlib. Global System pandas version was 0.10 compared to virtualenv that had 0.13.0. So I downgraded to 0.10.0in virtualenv.

Now its working perfectly.

Basically its an API incompatibility with matplotlib and pandas >= 0.13. plt.hist with a Series currently will face this problem.

So either use data['Total.1'].hist()

or pass in the values plt.hist(data['Total.1'].values,....)

or downgrade pandas to a version lesser than 0.13.

Post a Comment for "Keyerror: 0l When Running Packaged Code"