novem-code / novem-python

python command-line interface for interacting with the novem.no data visualisation platform
Other
2 stars 3 forks source link

Getting a pandas representation of the underlying Plot data #28

Closed sondove closed 1 month ago

sondove commented 1 month ago

Sometimes it's really useful to be able to access the underlying data of a plot as a pandas data frame. In particular if you have a process on a server or similar that keeps a novem Plot up to date.

By having a utility property that allows direct retrieval of a data frame you almost get a pseudo database functionality.

This can be particularly valuable if you want to work with data on a plot shared with you by another user

plt = Plot('interesting_viz', user="sondov")
df = plt.df