How to use the autovizwidget.autovizwidget.plotlygraphs.graphbase.GraphBase function in autovizwidget

To help you get started, we’ve selected a few autovizwidget examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyter-incubator / sparkmagic / autovizwidget / autovizwidget / plotlygraphs / graphbase.py View on Github external
def _get_x_y_values(df, encoding):
        try:
            x_values, y_values = GraphBase._get_x_y_values_aggregated(df,
                                                                      encoding.x,
                                                                      encoding.y,
                                                                      encoding.y_aggregation)
        except ValueError:
            x_values = GraphBase._get_x_values(df, encoding)
            y_values = GraphBase._get_y_values(df, encoding)

        return x_values, y_values
github jupyter-incubator / sparkmagic / autovizwidget / autovizwidget / plotlygraphs / bargraph.py View on Github external
# Copyright (c) 2015  aggftw@gmail.com
# Distributed under the terms of the Modified BSD License.

from plotly.graph_objs import Bar

from .graphbase import GraphBase


class BarGraph(GraphBase):
    def _get_data(self, df, encoding):
        x_values, y_values = GraphBase._get_x_y_values(df, encoding)
        return [Bar(x=x_values, y=y_values)]
github jupyter-incubator / sparkmagic / autovizwidget / autovizwidget / plotlygraphs / linegraph.py View on Github external
# Copyright (c) 2015  aggftw@gmail.com
# Distributed under the terms of the Modified BSD License.

from plotly.graph_objs import Scatter

from .graphbase import GraphBase


class LineGraph(GraphBase):

    def _get_data(self, df, encoding):
        x_values, y_values = GraphBase._get_x_y_values(df, encoding)
        return [Scatter(x=x_values, y=y_values)]
github jupyter-incubator / sparkmagic / autovizwidget / autovizwidget / plotlygraphs / graphbase.py View on Github external
def _get_x_y_values(df, encoding):
        try:
            x_values, y_values = GraphBase._get_x_y_values_aggregated(df,
                                                                      encoding.x,
                                                                      encoding.y,
                                                                      encoding.y_aggregation)
        except ValueError:
            x_values = GraphBase._get_x_values(df, encoding)
            y_values = GraphBase._get_y_values(df, encoding)

        return x_values, y_values
github jupyter-incubator / sparkmagic / autovizwidget / autovizwidget / plotlygraphs / graphbase.py View on Github external
def _get_x_y_values(df, encoding):
        try:
            x_values, y_values = GraphBase._get_x_y_values_aggregated(df,
                                                                      encoding.x,
                                                                      encoding.y,
                                                                      encoding.y_aggregation)
        except ValueError:
            x_values = GraphBase._get_x_values(df, encoding)
            y_values = GraphBase._get_y_values(df, encoding)

        return x_values, y_values
github jupyter-incubator / sparkmagic / autovizwidget / autovizwidget / plotlygraphs / scattergraph.py View on Github external
from plotly.graph_objs import Scatter

from .graphbase import GraphBase


class ScatterGraph(GraphBase):

    def _get_data(self, df, encoding):
        x_values, y_values = GraphBase._get_x_y_values(df, encoding)
        return [Scatter(x=x_values, y=y_values, mode='markers')]

autovizwidget

AutoVizWidget: An Auto-Visualization library for pandas dataframes

BSD-3-Clause
Latest version published 8 days ago

Package Health Score

82 / 100
Full package analysis