qdscreen/tests/test_readme.py
1
F401:
'pathlib2.Path' imported but unused
16
from
pathlib2
import
Path
1
W291:
trailing whitespace
175
arc
16
S101:
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
46
assert
captured
.
out
==
u
"└─
\n
"
50
assert
"└─ab
\n
"
==
str
(
Foo
())
51
assert
"└─ab
\n
"
==
repr
(
Foo
())
65
assert
"
\n
"
+
captured
.
out
==
u
"""
96
assert
"
\n
"
+
captured
.
out
==
"""
113
assert
"
\n
"
+
captured
.
out
==
"""
154
assert
"
\n
"
+
captured
.
out
==
u
"""
173
assert
"
\n
"
+
captured
.
out
==
"""
280
assert
data2
[
2
,
5
]
==
"a"
290
assert
data2
[
2
,
5
]
==
"a"
347
assert
isinstance
(
qd_forest
.
parents
,
np
.
ndarray
)
348
assert
isinstance
(
adj_mat
,
np
.
ndarray
)
351
assert
isinstance
(
qd_forest
.
parents
,
pd
.
DataFrame
)
352
assert
list
(
qd_forest
.
parents
.
index
)
==
var_names
370
assert
data2
.
loc
[
2
,
"Z"
]
==
"a"
377
assert
data2
[
2
,
5
]
==
"a"
8
T001:
print found.
42
print
(
"└─"
)
61
print
(
qd_forest
)
78
print
(
"Columns in df:
%s
"
%
list
(
df
.
columns
))
85
print
(
"Columns in only_important_features:
%s
"
%
list
(
only_important_features
.
columns
))
89
print
(
"Columns in restored_full_df:
%s
"
%
list
(
restored_full_df
.
columns
))
108
print
(
qd_forest
.
stats
)
149
print
(
qd_forest2
)
169
print
(
ce_df
.
head
(
10
))