(trajectory)
| 177 | assert null_value==0 |
| 178 | |
| 179 | def test_task_6(trajectory): |
| 180 | #print("in6") |
| 181 | df = pd.read_csv("./output/6.csv") |
| 182 | #print(df) |
| 183 | #print("CheckPoint") |
| 184 | for column in df.select_dtypes(include=['float64',"int"]).columns: |
| 185 | Q1 = df[column].quantile(0.25) |
| 186 | Q3 = df[column].quantile(0.75) |
| 187 | IQR = Q3 - Q1 |
| 188 | lower_bound = Q1 - 1.5 * IQR |
| 189 | upper_bound = Q3 + 1.5 * IQR |
| 190 | outliers = ((df[column] < lower_bound) | (df[column] > upper_bound)).sum() |
| 191 | #print("Outline",outliers,"===") |
| 192 | assert outliers == 0 |
| 193 | |
| 194 | def test_task_7(trajectory): |
| 195 | ''' |
nothing calls this directly
no outgoing calls
no test coverage detected