bugGNU Octave - Bugs: bug #65083, Creating a dataframe from a cell...


bug #65083: Creating a dataframe from a cell array misses the first line if all fields are strings

Submitter:  Francesco Potortì <pot>
Submitted:  Wed 27 Dec 2023 08:21:38 AM UTC
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 8.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 27 Dec 2023 08:21:38 AM UTC, original submission:  

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.

Francesco Potortì <pot>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by pot (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-599c.
    Corresponding source code