Skip to content
Commit bae02f17 authored by Ryan Roberts's avatar Ryan Roberts
Browse files

cli: Refactor load_tables() to better match database



In preperaration for adding proper database support, let's refacotr
load_tables() to allow loading CSVs without needing to also generate the
"unique" columns. This will make it reusable for database code.

Additionally, let's convert timestamps and uuids at load time so that we
can better interface with a database. And since the database can't
handle NULL values, let's convert nan (what pandas fills NULLs from the
CSV with by default) with empty strings.

This is all temporary since the function will eventually be subsumed
into the upcomming datastore API.

Signed-off-by: Ryan Roberts's avatarRyan Roberts <ryan.roberts@arm.com>
parent 115f7dd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment