Skip to main content

A Metaflow card to visualize timeseries dataframes using Uplot

Project description

Metaflow Card To Plot Timeseries

Usage

  • Install this card using pip install metaflow-card-uplot

  • Usage in @step code:

@card(type='uplot',options={"artifact":"timeseries"})
@step
def start(self):
    import pandas
    index = pandas.date_range("2022-01-01", periods=60, freq="Min")
    series = {
        'first': self._fake_series(len(index), 0.1),
        'second': self._fake_series(len(index), 1)
    }
    self.timeseries = pandas.DataFrame(series, index=index)
    self.next(self.end)

def _fake_series(self, n, g):
    return [(random.random() - 0.5) * 0.1 + math.sin(x * g) for x in range(n)]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metaflow-card-uplot-1.0.0.tar.gz (26.9 kB view hashes)

Uploaded Source

Built Distribution

metaflow_card_uplot-1.0.0-py3-none-any.whl (27.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page