(trajectory)
| 213 | |
| 214 | |
| 215 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected