README.md 2.2 KB

DataAnalyisisOpenUniversity

https://www.futurelearn.com/courses/learn-to-code Different things learnt on this course will be added with the hope to get some colaboration if some project pans out.

Installing

On a fresh ubuntu-gnome 14.04 install I did the following. ignoring the *sh binary wierd document that the course asks to install.

I was unsure if we where going to use python 2 or 3 so I think I have installed both with these instructions: $sudo apt-get install spyder spyder3 $sudo apt-get install ipython3-notebook ipython-notebook $sudo apt-get install build-essential python3-dev $sudo apt-get install python-pip python3-pip $pip3 install -U jupyter

I then went to notabug.org and created an account and a new repository followed the directions to create ssh keys that need to be copied to the notabug website and did a git clone.

Edited the readme.md saved and did $git add . $git commit -m "instructions so far"

Some errors will come up about setting up your git user just follow instructions.

$git push

you can now check in notabug.org that your changes are up to date.

Later test the instalation http://www.open.edu/openlearn/learn-to-code-installation in linux section step 4.

Here I found out that I needed pandas as well. $sudo pip3 install pandas

Seems to work fine as I get the graph plotted with only a warning. Your pandas version is 0.17.0

/usr/lib/python3/dist-packages/matplotlib/collections.py:549: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison if self._edgecolors == 'face':

Week one excersise

when running all notebook it says in exercise 6 that we do not have a module named xlrd. This time I took a different route. And I installed the package manager: $sudo apt-get install synaptic and I selected the following packages found when typing xlrd on the search box@ python2-xlrd, python-xlrd, python-xlwt Only the first one is needed but I installed all 3.

Week 3

This is getting intersting. Richmond council information http://www.datarich.info/ one of the reasons I signed up to the course was for local data. Also some Spanish cities: gijon http://transparencia.gijon.es/