MCPcopy Create free account
hub / github.com/Mercury7353/PyBench / test_task_8

Function test_task_8

data/unit_test/tests.py:215–227  ·  view source on GitHub ↗
(trajectory)

Source from the content-addressed store, hash-verified

213
214
215def test_task_8(trajectory):
216 # 读取数据
217 df = pd.read_csv('./output/8.csv')
218
219 # 检查空值和缺失值
220 null_value = df.isnull().sum().sum() # 总和,检查整个 DataFrame 中的空值数量
221 #print("null value",null_value)
222 assert null_value == 0
223
224 # 检查重复值
225 duplicate_rows = df.duplicated().sum() # 检查重复行的数量
226 #print("duplicate_rows value",duplicate_rows)
227 assert duplicate_rows == 0
228
229
230# Test function

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected