Skip to content

Commit

Permalink
Update examples/basic/mining_nar.py
Browse files Browse the repository at this point in the history
Co-authored-by: BUYT-1 <[email protected]>
  • Loading branch information
VanyaVolgushev and BUYT-1 authored Jan 15, 2025
1 parent ab80dc8 commit deb8a64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/basic/mining_nar.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ def print_10_discovered_nars(algo, table):
line_number_counter += 1

hound_row_strings = hound_rows[['Name', 'Type', 'Intelligence', 'Size']].to_string().splitlines()
for i in range(0, len(hound_row_strings)):
if i-1 in red_line_indices:
print(CLR['red_bg'], hound_row_strings[i], CLR['default_bg'])
for i, hound_row_string in enumerate(hound_row_strings, start=-1):
if i in red_line_indices:
print(CLR['red_bg'], hound_row_string, CLR['default_bg'])
else:
print(hound_row_strings[i])
print(hound_row_string)

print("\nAs can be seen, only 2 rows that have 'Type' equal to 'Hound' don't "
"have an intelligence rating between 6 and 8. These two records explain "
Expand Down

0 comments on commit deb8a64

Please sign in to comment.