MCPcopy Create free account
hub / github.com/holoviz/hvplot / process

Method process

hvplot/fugue.py:31–55  ·  view source on GitHub ↗

Process the dataframes and output the result as a pn.Column. Parameters: ----------- dfs: fugue.DataFrames

(self, dfs: DataFrames)

Source from the content-addressed store, hash-verified

29 getattr(hvPlotTabular, func) # ensure the func exists
30
31 def process(self, dfs: DataFrames) -> None:
32 """
33 Process the dataframes and output the result as
34 a pn.Column.
35
36 Parameters:
37 -----------
38 dfs: fugue.DataFrames
39 """
40 charts = []
41 for df in dfs.values():
42 params = dict(self.params)
43 opts: dict[str, Any] = params.pop('opts', {})
44 chart = getattr(df.as_pandas().hvplot, self._func)(**params).opts(**opts)
45 charts.append(chart)
46 col = _pn.Column(*charts)
47 try:
48 if not _fugue_ipython:
49 get_ipython()
50 except NameError:
51 col.show() # in script
52 else:
53 from IPython.display import display
54
55 display(col) # in notebook
56
57 if 'hvplot.fugue' not in _module_extensions:
58

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected