Module: filetable | py4cs/filetable.py | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Read tabular data from file into NumPy arrays and vice versa. This module provides functions for
read: Load a table with numbers into a two-dim. NumPy array. file file object commentchar files starting with commentchar are skipped (blank lines are also skipped) output: two-dimensional (row-column) NumPy array. write: Write a two-dim. NumPy array a in tabular form. file file object a two-dim. NumPy array readfile: As read, but input is filename rather than a file object. The columns are returned as separate arrays instead of a two-dimensional array.
|