Top level (dv.*)

File I/O, dataframe helpers and verbosity control, reached directly on the package rather than through a namespace.

load_exampledata_parquet()

Load the bundled CH-DAV 2013-2022 30-min example dataset (parquet).

load_exampledata_parquet_lae()

Load the CH-LAE 2016-2017 flux example dataset (parquet).

load_parquet(filepath[, ...])

Load data from Parquet file to pandas DataFrame.

load_parquet_many(filepaths[, ...])

Load several parquet files and merge them into one DataFrame.

save_parquet(filename, data[, outpath, ...])

Save pandas Series or DataFrame as Parquet file.

to_diive_format(data[, timestamp_name])

Coerce a DataFrame to the diive parquet format.

ReadFileType(filepath[, filetypeconfig, ...])

Read a single data file using the settings of a filetype configuration.

search_files(searchdirs, pattern)

Search folders and their subfolders for files matching a pattern.

keep_vars(data, variables[, verbose])

Keep only the given variables (columns), preserving their order.

keep_records_where(data, target, condition_var)

Select records of one variable based on the value of another variable.

transform_yearmonth_matrix_to_longform(matrixdf)

Transform a year-month matrix into a long-form pandas Series with a datetime index.

sstats(s)

Calculate comprehensive time series statistics.

get_encoded_value_from_int(integer, ...[, ...])

Extracts a subrange of bits from an integer, converts it to a float with an optional gain applied.

get_encoded_value_series(int_series, ...[, ...])

Convert a subrange of bits from an integer series to floats with an optional gain applied.

set_verbosity(level)

Set the verbosity used by helper calls that do not pass verbose=.

get_verbosity()

Return the verbosity applied to helper calls that do not pass verbose=.