octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50448] of-dataframe: problems with empty fiel


From: Andreas Weber
Subject: [Octave-bug-tracker] [bug #50448] of-dataframe: problems with empty fields
Date: Fri, 3 Mar 2017 14:03:00 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

URL:
  <http://savannah.gnu.org/bugs/?50448>

                 Summary: of-dataframe: problems with empty fields
                 Project: GNU Octave
            Submitted by: andy1978
            Submitted on: Fri 03 Mar 2017 07:02:59 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

dataframe 1.1.0

Consider following file "afile":

string1;int1;string2;string3
a;1;hello;
b;2;world;huhu


if read there is an error:

d=dataframe("afile", "sep", ";");
Something went wrong while converting colum 4
Error was: cell2mat: wrong type elements or mixed cells, structs, and
matrices
stopped in /home/andy/octave/dataframe-1.1.0/@dataframe/private/df_matassign.m
at line 357
357:           keyboard;


if the int colum is removed so that "afile" reads

string1;string2;string3
a;hello;
b;world;huhu


the first column isn't read:

> dataframe("afile", "sep", ";")
ans = dataframe with 1 rows and 3 columns
Src: afile                               
_1 string1 string2 string3               
Nr    char    char    char               
 1       b   world    huhu   








    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50448>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]