Skip to content

Commit

Permalink
Set include_nulls=True and na_rep=null to match Python json serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Dec 21, 2023
1 parent 342a004 commit 6916db6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion morpheus/_lib/src/io/serializers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ void table_to_json(const TableInfoData& tbl, std::ostream& out_stream, bool incl

OStreamSink sink(out_stream);
auto destination = cudf::io::sink_info(&sink);
auto options_builder = cudf::io::json_writer_options_builder(destination, tbl_view).metadata(tbl_meta).lines(true);
auto options_builder = cudf::io::json_writer_options_builder(destination, tbl_view)
.metadata(tbl_meta)
.lines(true)
.include_nulls(true)
.na_rep("null");

cudf::io::write_json(options_builder.build(), rmm::mr::get_current_device_resource());

Expand Down

0 comments on commit 6916db6

Please sign in to comment.