arthurai.core.util#

Functions

dataframe_like_to_list_of_dicts(data)

Standardize data in a List of Dicts format (e.g.

intersection_is_non_empty(iter1, iter2)

Returns True if the two iterables share at least one element :type iter1: Iterable[Any] :param iter1: :type iter2: Iterable[Any] :param iter2: :return:

retrieve_json_files(directory_path)

Checks whether a given directory and its subdirectories contain json files, if so this will return a list of the files

retrieve_parquet_files(directory_path)

Checks whether a given directory and its subdirectories contain parquet files, if so this will return a list of the files

standardize_pd_obj(data, dropna, replacedatetime)

Standardize pandas object for nans and datetimes.

update_column_in_list_of_dicts(data, ...)

Adds column_values to target_column in a list of dicts in place.

Classes

NumpyEncoder(*[, skipkeys, ensure_ascii, ...])

Special json encoder for numpy types