iblutil.io.parquet

Functions

is_np_id

The purpose of this is to correctly identify ids even as object arrays

load

Loads parquet file into pandas dataframe

np2str

np2uuid

save

Save pandas dataframe to parquet

str2np

Converts uuid string or list of uuid strings to int64 numpy array with 2 cols Returns [0, 0] for None list entries

uuid2np

load(filename)[source]

Loads parquet file into pandas dataframe

Parameters:

filename

Returns:

save(filename, table, metadata=None)[source]

Save pandas dataframe to parquet

Parameters:
  • filename

  • table

  • metadata

Returns:

uuid2np(eids_uuid)[source]
str2np(eids_str)[source]

Converts uuid string or list of uuid strings to int64 numpy array with 2 cols Returns [0, 0] for None list entries

np2uuid(eids_np)[source]
np2str(eids_np)[source]
is_np_id(id)[source]

The purpose of this is to correctly identify ids even as object arrays

Parameters:

id

Returns: