Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
14 lines
420 B
Python
14 lines
420 B
Python
"""Regression: optimize_dataframe must tolerate empty object columns."""
|
|
import pandas as pd
|
|
from parallel_processing import optimize_dataframe
|
|
|
|
|
|
def test_optimize_empty_object_columns():
|
|
df = pd.DataFrame({
|
|
"model_a": pd.Series([], dtype=object),
|
|
"model_b": pd.Series([], dtype=object),
|
|
"winner": pd.Series([], dtype=object),
|
|
})
|
|
out = optimize_dataframe(df)
|
|
assert len(out) == 0
|