MCPcopy Create free account
hub / github.com/datapane/datapane / _test_order

Function _test_order

python-client/tests/common/test_df_processor.py:161–168  ·  view source on GitHub ↗
(df: pd.DataFrame)

Source from the content-addressed store, hash-verified

159
160def test_col_order(tmp_path: Path):
161 def _test_order(df: pd.DataFrame):
162 # process and compare
163 df1 = process_df(df, copy=True)
164 assert list(df.columns) == list(df1.columns)
165
166 # convert to arrow and back
167 df2 = save_load_arrow(tmp_path, df)
168 assert list(df.columns) == list(df2.columns)
169
170 data = pd.DataFrame(
171 {

Callers 1

test_col_orderFunction · 0.85

Calls 2

process_dfFunction · 0.90
save_load_arrowFunction · 0.85

Tested by

no test coverage detected