Questions tagged [hvplot]

Hvplot is a high-level Python visualization library that makes interactive plotting beautiful, easy and intuitive for a wide range of datatypes. It is built on top of HoloViews and is an alternative for the static plotting API provided by pandas and other libraries, with an interactive Bokeh-based plotting API.

Official website: https://hvplot.pyviz.org

181 questions
0
votes
1 answer

What is wrong - import hvplot.pandas

import hvplot.pandas import hvplot.pandas --------------------------------------------------------------------------- ImportError Traceback (most recent call last) in ----> 1…
0
votes
1 answer

Plotting 3D plots with intersecting planes using `hvplot`

I was wondering if there’s any way to make plots like these using hvplot. The reason is that all my data is in NetCDF and I end up using xarray a lot for it, so having a way to reproduce those plots (where two structures intersect in 3D space) using…
TomCho
  • 3,204
  • 6
  • 32
  • 83
0
votes
0 answers

Dimensions may not reference duplicated DataFrame columns (found duplicate '-' columns). Pandas

I want to plot a graph using hvplot. This one works fine: plotingmy = results_eravap.plot(y='V/L') but when I try this: plotingmy = results_eravap.hvplot(y='V/L') It throws an error: Dimensions may not reference duplicated DataFrame columns (found…
whisper123
  • 87
  • 4
0
votes
0 answers

hvplot.errorbars - linking the error bars to line/scatterplots

I have the following dataframe, containing the mean and standard deviations of data, as well as other descriptors. {'Person': {0: 'Mark', 1: 'Mark', 2: 'Mark', 3: 'Mark', 4: 'Mark', 5: 'Mark', 6: 'Mark', 7: 'Mark', 8: 'Mark', 9:…
0
votes
0 answers

TypeError when plotting using hvplot

I am trying to make a simple grouped bar chart like the following: It should be just a simple line of code: table.hvplot.bar(stacked=False, height=500, rot=60). I summarized my data into the table/df below ("ratings_df_sum"): 7 Online_THD_SKU …
mexicanRmy
  • 69
  • 7
0
votes
0 answers

Error when plotting multiple lines on chart

I have a dataframe called top_10 that looks like this: 7 DateTime_End Online_Sales_$_+ Online_Cancel_$_+ Online_THD_SKU+ 8 2017-08-27 21.0 0.0 1000015555-SL LEM 32OZ 9 2018-01-07 33.0 …
mexicanRmy
  • 69
  • 7
0
votes
1 answer

How to plot subgraph of a networkx multipartite graph as a new graph with refreshed positions

NetworkX offers G.subgraph(node_list) but when I plot it, it retains the node positions in the original full multipartite graph which is messy. I want the subgraph to be recalculated as a new plot (relatively centered) still retaining its…
Rys
  • 77
  • 8
0
votes
0 answers

How to use a File Selector with hvplot in a Docker Panel Serve Environment?

Similar to this question about this error message I get a Uncaught (in promise) Error: Error rendering Bokeh model: could not find #53e7b147-e581-431b-90e1-1fe7ade39263 HTML tag at u…
Curious
  • 383
  • 3
  • 13
0
votes
0 answers

hvplot not refreshing properly when dependency changes

I am trying to establish a dashboard using jupyter, panel and hvplot. This is the code snippet. import panel.widgets as pnw import panel as pn pn.extension() # some data cleansing yields a df containing the data of interest products =…
user2302244
  • 843
  • 2
  • 11
  • 27
0
votes
2 answers

How to set xticks for the index of string with hvplot

I have a dataframe region_cumulative_df_sel as below: Month-Day regions RAIN_PERCENTILE_25 RAIN_PERCENTILE_50 RAIN_PERCENTILE_75 RAIN_MEAN RAIN_MEDIAN 07-01 1 0.0611691028 0.2811064720 1.9487996101 1.4330813885 …
alextc
  • 3,206
  • 10
  • 63
  • 107
0
votes
1 answer

hvplot not displaying dynamically

The code below works fine data_2015=(data[data.Year==2015] .groupby("Country") ["Country", "Life expectancy "] .median() .sort_values(by="Life expectancy ", ascending=True)) data_2015.reset_index().hvplot.bar(x="Country", y="Life…
user18862660
0
votes
1 answer

why hvplot does not run successfully

loan_amnt_box = data.hvplot.box( y='loan_amnt', subplots=True, by='loan_status', width=300, height=350, title="Loan Status by Loan Amount ", xlabel='Loan Status', ylabel='Loan Amount' ) installment_box = data.hvplot.box( …
Michael
  • 53
  • 5
0
votes
1 answer

Python Widgets Issue

I am working on a passenger forecast system and got introduced to hvplots and widgets. The idea is have a panel to select a day of the week and a slider showing time_frame in which data is taken in, every 5 mins, 10 mins etc. Typically, when using…
0
votes
1 answer

check datetime value is in DateTimeRangeInput in conda panel

I'm trying to build a conda panel that can see values based on DatetimeRangeInput slider so I created dataframe like this data = {'name':['A', 'B', 'C', 'D'], 'open_time': [dt.datetime(2021, 7, 1, 21, 0), dt.datetime(2021, 7, 2, 11, 0),…
Kelum
  • 1,745
  • 5
  • 24
  • 45
0
votes
0 answers

saving interactive plot as html

I want to create an interactive dashboard as a standalone-application, being launched with only Firefox. Here's some simple example code with two buttons and a plot. it's exporting an html-file. but the elements seem not to react, when opened in…