Beginner - have been self learning over last 12 months to use Terminal (on Mac OSX10.10.5), Unix basics, R, Python, and python associated modules and applications. Using Python 3.4.3 |Anaconda 2.1.0 (x86_64).
I am working through the numpy-user-1.9.1.pdf (https://docs.scipy.org/doc/numpy/numpy-user-1.9.1.pdf). This appears the key resource to teach oneself more about NumPy.
In the Numpy User guide, section 2.3.1 Importing data with genfromtxt; the initial set up to proceed is:
import numpy as np
from StringIO import StringIO
Attempts to copy and duplicate the examples that follow in this section failed because the function 'StringIO' is not recognised.
With web searching, I have confirmed my suspicion that since the user guide was written the StringIO function has been dropped in later versions of python, here v3.4, with a different function io?, io.string?
Question: What line should I be using in its place for python 3.4 to proceed with this user guide and examples?
My attempts to use this other function in place of StringIO in various ways has not worked, so I remain stuck in continuing the self training exercise for this section. It does not help that I do not fully understand quite what the line "from StringIO import StringIO" is doing, and hence why it is required. (A very basic understanding I suspect I should have - so red face here likely.)
As alternative there is a Numpy Tutorial listed on the site http://www.numpy.org/, however a click on that link gives me a Forbidden page.. stating ..."You don't have permission to access NumPy_Tutorial on this server."
I have looked for other resources as a work around, and hence open to an alternative doc, more up to date, if it is known - though after 24 hours have decided to post this as a question.
Seeking to learn NumPy so that I can import various data files so I can review data from a project in various plots using matplotlib. Most files are .csv files. I am aware of a more specific python module just for .csv files however I feel a need to be more informed and flexible for different data files in future, hence understanding how to use NumPy and be able to taylor specifics for each import data file seems the correct way to go to achieve future generalised competency.