Skip to content

Commit

Permalink
fixes get_cols to return properly chopped series
Browse files Browse the repository at this point in the history
Now the series length is equal to size not the capacity.

Fixes #654
  • Loading branch information
ivg committed Jan 26, 2024
1 parent ab3aeb9 commit a26149b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/misc/owl_dataframe.ml
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ let set_by_name x i name a =
set x i j a


let to_cols x = x.data
let to_cols x = Array.init (Array.length x.data) (get_col x)

let to_rows x =
let stack = Owl_utils.Stack.make () in
Expand Down

0 comments on commit a26149b

Please sign in to comment.