Hello everyone,
I have implemented the Pivot Table module from Anvil Extras in one of my applications. The module is great and works very well with data from the Anvil database, but I can’t get it to work with data from a Pandas dataframe.
This is the code (Server):
@anvil.server.callable
def getpandasdf():
d = {'col1': [1, 2], 'col2': [3, 4]}
df = pd.DataFrame(data=d)
return df
And the Form code:
records = anvil.server.call('getpandasdf')
self.pivot_1.items = [dict(list(r)) for r in records]
Error:
Does anyone of you have any suggestions?
Thank you in advance!
