Created
November 30, 2022 21:45
-
-
Save LinuxIsCool/c985597f1114a6de19adbf7b6181949b to your computer and use it in GitHub Desktop.
Most basic python panel param hvplot dataframe example possible.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Run this in a Jupyter Cell | |
| """ | |
| import param as pm | |
| import pandas as pd | |
| import numpy as np | |
| import hvplot.pandas | |
| class A(pm.Parameterized): | |
| a = pm.Integer(5) | |
| def draw(self): | |
| df = pd.DataFrame(np.random.randn(self.a)) | |
| return df.hvplot.line() | |
| a = A() | |
| pn.Row(a, a.draw) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment