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

Function test_task_6

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

Source from the content-addressed store, hash-verified

177 assert null_value==0
178
179def 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
194def test_task_7(trajectory):
195 ''&#x27;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected