Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
20 views

text_auto Parameter Not Working in Plotly

The text_auto parameter for a Plotly Express bar chart is not functioning for me, despite seemingly correct syntax. I am using both Jupyter Notebook and Eclipse and the issue persists in both. Plotly ...
Lysyd's user avatar
  • 1
-1 votes
0 answers
21 views

AttributeError: 'NoneType' object has no attribute 'group' || reading shares of the company

!pip install pandas_datareader import pandas_datareader as pr df = pr.get_data_yahoo("AAPL", start = "2016-01-01", end = "2019-08-08") AttributeError ...
Batuhan Halimoğlu's user avatar
2 votes
1 answer
36 views

Is There a Way to Expose a Plot Generated Using a Pandas Dataframe as a Jupyter Notebook as an App to the End User?

Current Workflow Right now, me, as an ML engineer, am using a jupyter notebook to plot some pandas dataframes. Basically, inside the jupyter notebook, I am setting some hard-coded configurations like ...
Della's user avatar
  • 1,560
0 votes
0 answers
46 views

Issues with SQLAlchemy

I'm trying to run the following code (some of the stuff I blind, like the passwords)to get some Snowflake data into a Jupyter notebook: import math as math import numpy as np; import pandas as pd; ...
jajastrzemb's user avatar
0 votes
2 answers
74 views

How to use a specific version of methylprep in Jupyter notebook

I am trying to use a package named Methylprep. It is using "append" function for dataframe, which has been removed since pandas 2.0. Now the version of pandas installed in my pc is 2.2.2. ...
Isaac P. Liu's user avatar
0 votes
0 answers
53 views

values of a 1-D column coerced to zeros on appending to Pandas dataframe

# set the targets: normal=0, tumor=1 y_normal = np.zeros(6485) y_tumor = np.ones(1348) combined_targets = np.concatenate([y_normal,y_tumor],axis=0) combined_targets.shape combined_targets = pd....
Anubrata Das's user avatar
0 votes
0 answers
33 views

FileNotFoundError when trying to load a CSV file into pandas in Jupyter Notebook [duplicate]

I have been attempting to read data from a CSV file using a Python script in Jupyter Notebook. I expected the script to successfully load the CSV data into a pandas DataFrame without errors, however, ...
Wangui's user avatar
  • 1
0 votes
0 answers
28 views

combine several rows into one using Pandas [duplicate]

I have a dataset of lab results from patients on different dates. I want to combine each patient's results into a single row. The types and number of lab results are unlimited. I tried to simplify my ...
sepme's user avatar
  • 51
0 votes
0 answers
45 views

Python (Jupyter) Notebook in browser: no horizontal scrollbar at the bottom of a cell?

I use python notebook (browser) often. There's a vertical scrollbar on a cell, but no horizontal scrollbar to allow me to access columns on the right side of a cell: The only way I found to see ...
Xhattam's user avatar
  • 197
0 votes
1 answer
70 views

Why does df.means() cause "Javascript Error: too much recursion" in Jupyter?

I am doing some ML-Training on the pump_sensor_data from Kaggle:https://www.kaggle.com/datasets/nphantawee/pump-sensor-data (Instructions for Analysis of the Data for Reference: https://www.kaggle.com/...
DrNuke's user avatar
  • 11
0 votes
0 answers
24 views

Compare two dataframes and put the column value from least time difference row [duplicate]

I have two dataframes df1 & df2 which I've read with pandas. Both contains a Date column and a veh.No column, and I want to create a new column in df1 comparing the veh.No column to be the same in ...
FRECEENA FRANCIS's user avatar
1 vote
1 answer
80 views

How to organize a very illogical Plotly sankey diagram

My diagram is complex, with 189 nodes. But I expected the layout to be more logical, based on the flow of data from source to target. It is completely circuitous and loopy. These are trades flowing ...
greymatter's user avatar
0 votes
1 answer
41 views

Is there a parameter problem, or not working with this method?

I wanted to predict the disease type using a function with a given string parameter. The parameter can contain more than one string. But it always gives an error message: KeyError: 'skin_rash' This is ...
crm revesz's user avatar
0 votes
1 answer
43 views

Pandas: Limiting __repr__ and _repr_html_ behaviour with Xarray

I am storing large xarrays in my dataframe, but any time I display the dataframe in Jupyter or the terminal it takes way to long (11 seconds for a 10 row dataframe). I'd imagine it has something to do ...
Gibson Strickland's user avatar
1 vote
1 answer
37 views

Pretty printing Python Pandas Dataframe without header nor Index

I'm trying to pretty print a Pandas dataframe without Header nor index, without success This pretty prints but prints also header and index import pandas as pd from IPython.display import display ...
João Pimentel Ferreira's user avatar

15 30 50 per page
1
2 3 4 5
188