pygsti.tools.dataframetools

Tools for working with Pandas dataframes

Module Contents

Functions

_drop_constant_cols(df)

_reset_index(df)

Returns DataFrame with index as columns - works with Categorical indices unlike DataFrame.reset_index

_process_dataframe(df, pivot_valuename, pivot_value, drop_columns, preserve_order=False)

See to_dataframe docstrings for argument descriptions.

pygsti.tools.dataframetools._drop_constant_cols(df)
pygsti.tools.dataframetools._reset_index(df)

Returns DataFrame with index as columns - works with Categorical indices unlike DataFrame.reset_index

pygsti.tools.dataframetools._process_dataframe(df, pivot_valuename, pivot_value, drop_columns, preserve_order=False)

See to_dataframe docstrings for argument descriptions.