Skip to content

Commit 4d2249f

Browse files
author
Nabil Fayak
committed
updated quickstart guide
1 parent bd0ab32 commit 4d2249f

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,26 @@ CheckMates is an Alteryx Open Source library which catches and warns of problems
77
python -m pip install checkmates
88
```
99
## Start
10-
<!-- #### Load and split example data
10+
#### Load and validate example data
1111
```python
1212
from checkmates import (
13-
DataCheckActionCode,
14-
DataCheckActionOption,
15-
DataCheckMessageCode,
16-
DataCheckWarning,
17-
IDColumnsDataCheck,
13+
IDColumnsDataCheck
1814
)
15+
import pandas as pd
16+
1917
id_data_check_name = IDColumnsDataCheck.name
20-
``` -->
18+
X_dict = {
19+
"col_1": [1, 1, 2, 3],
20+
"col_2": [2, 3, 4, 5],
21+
"col_3_id": [0, 1, 2, 3],
22+
"Id": [3, 1, 2, 0],
23+
"col_5": [0, 0, 1, 2],
24+
"col_6": [0.1, 0.2, 0.3, 0.4],
25+
}
26+
X = pd.DataFrame.from_dict(X_dict)
27+
id_cols_check = IDColumnsDataCheck(id_threshold=0.95)
28+
print(id_cols_check.validate(X))
29+
```
2130

2231
#### Run AutoML
2332
```python

0 commit comments

Comments
 (0)