Pandas dataframe directly as DB media column type

You can get to a media object from a DataFrame by serializing the DataFrame.

You can get to a DataFrame from a media object by reading the media object’s bytes.

Here is an example showing some back-and-forth conversions for both json and csv content types.

com-gif-maker%20(1)

clone the app:
https://anvil.works/build#clone:FIMSJJBV5EYKZQ7K=NJH74Q6AGAH4HHPWH7N2TVID

8 Likes