Package recsql :: Module csv_table
[hide private]
[frames] | no frames]

Module csv_table

source code


:mod:`recsql.csv_table` --- Parse a simple CSV table
====================================================

Turn a CSV table into a numpy array. 

Uses :mod:`csv` (requires python 2.6 or better).

.. autoclass:: Table2array
   :members: __init__, recarray
.. autofunction:: make_python_name

Classes [hide private]
  UTF8Recoder
Iterator that reads an encoded stream and reencodes the input to UTF-8
  UnicodeReader
A CSV reader which will iterate over lines in the CSV file "f", which is encoded in the given encoding.
  Table2array
Read a csv file and provide conversion to a :class:`numpy.recarray`.
Functions [hide private]
 
make_python_name(s, default=None, number_prefix='N', encoding="utf-8")
Returns a unicode string that can be used as a legal python identifier.
source code
Function Details [hide private]

make_python_name(s, default=None, number_prefix='N', encoding="utf-8")

source code 
Returns a unicode string that can be used as a legal python identifier.

:Arguments:
  *s*
     string
  *default*
     use *default* if *s* is ``None``
  *number_prefix*
     string to prepend if *s* starts with a number