397 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
2
answers
52
views
plotly express trendline cannot import name '_lazywhere' from 'scipy._lib._util'
I used to be able to run ols trendline in plotly express without issue, but now it returns this error:
ImportError: cannot import name '_lazywhere' from 'scipy._lib._util'`
This code works:
# Works
...
Best practices
0
votes
2
replies
76
views
Index timestamp shiny for python
def prepare_dataframe(df):
df.rename(columns={
'Bomba Calor - Temperatura de Aire (°C)': 'temp_aire',
'Bomba Calor - Temperatura Entrada (°C)': 'temp_entrada',
'Bomba Calor ...
5
votes
1
answer
93
views
Plotly px.timelines shows 1970 even though print(data.dtypes) confirms correct datetime in shiny
I'm building a dashboard in Shiny for Python and I'm stuck on a strange bug. I have a Plotly px.timeline that should display boiler on-times based on a date range from a Flatpickr input.
The Problem:
...
0
votes
1
answer
125
views
PyInstaller doesn't include numpy for Plotly Express
I have a program working with pandas, plotly and tkinter. It runs as expected in PyCharm. FYI, here are the imports :
import tkinter as tk
import tkinter.filedialog as fd
import plotly.express as px
...
3
votes
0
answers
92
views
Force order in Plotly Treemap
I'm creating a treemap using plotly express. In timepoints I have three options: Time 1, Time 2 and Time 3. However I have less data in Time 2 than Time 3 (I have less visits and thus less instrument ...
0
votes
1
answer
88
views
WithPlotly's python fig.to_html() function, don't encode numbers as binary
Python: 3.12.11
Plotly: 6.0.1
Pandas: 2.2.3
Numpy: 2.3.1
When Plotly's Python library exports figures to HTML, it sometimes converts data to binary, which browsers aren't rendering correctly. I can't ...
-1
votes
1
answer
50
views
How do I remove the numbers displayed on hovering over markers in Plotly Express? [duplicate]
I'm trying to plot a random walk using Plotly Express only. I want to remove the numbers being displayed when I hover over the markers on the plot.
I've tried hoverinfo="skip" and hoverinfo=&...
0
votes
0
answers
70
views
PlotlyExpress not generating bar chart properly [duplicate]
I am trying to create a basic plotly chart:
import pandas as pd
import numpy as np
import plotly.express as px
df = pd.DataFrame({"college_name":list("ABCD"),"in-...
1
vote
1
answer
100
views
Plotly express line plots number of datapoint insted of actual data [closed]
Plotly express line plots number of data points instead of actual data on the y axis.
Now whats confusing me is that it only does this on one machine, its works perfectly fine on 3 others. I made sure ...
1
vote
1
answer
83
views
How to remove glow on node labels in Plotly Sankey diagram in Streamlit?
I'm trying to get rid of the "glow" or shadow effect around the node labels of this Plotly Sankey diagram. Is this possible?
import pandas as pd
import plotly.graph_objects as go
import ...
0
votes
1
answer
99
views
Plotly express issue: box plosts shifted on the x axes when facetting
I am experiencing an unexpected behavior with plotly express when trying to plot a number of groups as facet box plot
import pandas as pd
import numpy as np
# Generate random data
np.random.seed(0) #...
0
votes
0
answers
53
views
why does my line graph look like this, seems like boxes rather than lines?
Here's what it looks like:
I'm getting boxes rather than lines in the plot.
This was the syntax, I can't find where the mistake is.
fig2 = px.line(df,x="Year",y="Victims_of_Rape_Total&...
0
votes
0
answers
97
views
can't order y-axis plotly express timeline with scatter plot on secondary y-axis
I have a plotly express timeline, and I'm adding a scatter plot on the secondary y-axis, on top of the timeline bars. Because of the secondary_y, I have to use make_subplots, then add the traces from ...
1
vote
0
answers
497
views
Power Apps Display Graph in HTML Text
I am trying to display a Python Plotly graph in HTML text in PowerApps. The data for the graph is grabbed via an API. and stored in a collection as a JSON object.
I am not sure of the feasibility of ...
0
votes
1
answer
126
views
Subplot two plotly python express choropleth maps including time animations next to each other
I would like to plot multiple plotly express choropleth maps with their own time sliders next to each other.
I have tried lots of different approaches by now, but nothing seems to work. I am aware of ...