Skip to content

Commit

Permalink
Update lib/kino/explorer.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko authored Oct 8, 2024
1 parent 19afd15 commit 6c8327e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/kino/explorer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ defmodule Kino.Explorer do
formats =
if has_composite_type_column?, do: ["NDJSON", "Parquet"], else: ["CSV", "NDJSON", "Parquet"]

%{name: name, features: features, export: %{formats: formats}, num_rows: num_rows}
info = %{name: name, features: features, export: %{formats: formats}}
if(num_rows, do: Map.put(info, :num_rows, num_rows), else: info)
end

defp get_records(%{df: df, groups: groups}, rows_spec) do
Expand Down

0 comments on commit 6c8327e

Please sign in to comment.