You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Deron Eriksson (JIRA)" <ji...@apache.org> on 2016/02/17 22:32:18 UTC

[jira] [Created] (SYSTEMML-529) Maintain column name data when read csv with headers

Deron Eriksson created SYSTEMML-529:
---------------------------------------

             Summary: Maintain column name data when read csv with headers
                 Key: SYSTEMML-529
                 URL: https://issues.apache.org/jira/browse/SYSTEMML-529
             Project: SystemML
          Issue Type: Improvement
          Components: APIs
            Reporter: Deron Eriksson


Column names are a useful form of metadata that describe the data in the columns of a CSV file. This information can be very useful with outputting information about the data, for example when printing out to the console.

When reading from a CSV file with a header to a matrix variable, it would be nice if the matrix object contained the column names.

For example, for a read such as the following:
{code}
m = read("m.csv", format="csv", header=TRUE);
{code}

It would be nice if the user could obtain the column names with something such as:
{code}
c = colnames(m);
print("column names: " + c);
{code}
and see something such as:
{code}
column names: location, gender, age
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)