Process the dataframes and output the result as a pn.Column. Parameters: ----------- dfs: fugue.DataFrames
(self, dfs: DataFrames)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected