Ah, apologies. Formatting (changing column/cell displayed value appearance) and styling (changing the Table appearance) are entirely different aspects of the table.
Now that I can see what you’re encountering, this does indeed seem wrong. I can provide a workaround for now:
rows = []
if self.getSibling("Table").props.filter.text == '':
data = self.getSibling("Table").props.data
else:
data = self.getSibling("Table").props.filter.results.data
system.perspective.print(data)
for row in data:
my_dict = {}
try:
my_dict['population'] = row['population']['value']
except TypeError:
my_dict['population'] = row['population']
rows.append(my_dict)
This will gracefully handle the differing structures of the default data. you will probably need to update this logic a bit to work with your unique structure, but the try/except usage should allow for swapping between the two structures at this time.
I’m going to open an internal ticket to change this behavior so that both structures are identical, BUT there is a very good probability that this will not be fixed until 8.2.0 because if we change this behavior at this time then it could break existing customer projects who are expecting the current incorrect behavior.