We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b197077 commit 2b4b818Copy full SHA for 2b4b818
1 file changed
Orange/data/table.py
@@ -123,10 +123,15 @@ def sp_values(matrix, variables):
123
_, columns = matrix.shape
124
125
row_entries, idx = [], 0
126
- while len(row_entries) < 5 and idx < len(variables):
+ while idx < len(variables):
127
+ # Make sure to stop printing variables if we limit the output
128
+ if limit and len(row_entries) >= 5:
129
+ break
130
+
131
var = variables[idx]
132
if var.is_discrete or matrix[row, idx]:
133
row_entries.append("%s=%s" % (var.name, var.str_val(matrix[row, idx])))
134
135
idx += 1
136
137
s = ", ".join(row_entries)
0 commit comments