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

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

[Octave-bug-tracker] [bug #65083] Creating a dataframe from a cell array


From: Francesco Potortì
Subject: [Octave-bug-tracker] [bug #65083] Creating a dataframe from a cell array misses the first line if all fields are strings
Date: Wed, 27 Dec 2023 03:21:40 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?65083>

                 Summary: Creating a dataframe from a cell array misses the
first line if all fields are strings
                   Group: GNU Octave
               Submitter: pot
               Submitted: Wed 27 Dec 2023 09:21:38 AM CET
                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
                 Release: 8.4.0
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 27 Dec 2023 09:21:38 AM CET By: Francesco Potortì <pot>

octave> version
ans = 8.4.0

octave> dataframe({"Date", "pow"; "2023-12-14", 0; "2023-12-15", 1;
"2023-12-16", 2})
ans = dataframe with 3 rows and 2 columns
_1       Date    pow                     
Nr       char double                     
 1 2023-12-14      0                     
 2 2023-12-15      1                     
 3 2023-12-16      2                     

octave> dataframe({"Date"; "2023-12-14"; "2023-12-15"; "2023-12-16"})
ans = dataframe with 2 rows and 1 columns
_1       Date                            
Nr       char                            
 1 2023-12-15                            
 2 2023-12-16                            


In the first example, a dataframe with three rows is created.  In the second
one, the first row is missing. Apparently, this happens whenever rows are made
of strings only.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65083>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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