1,800 questions
3 votes
0 answers
134 views
h3.cells_to_h3shape ValueError('Non-empty LatLngPoly loops need at least 3 points.')
I am attempting to convert a set of hexcodes to a h3shape using h3.cells_to_h3shape and get the following error: Traceback (most recent call last): File "~/temp.py", line 221, in <...
0 votes
0 answers
55 views
Layer "dense" expects 1 input(s), but it received 2 input tensors
Environment Raspberry Pi 4: 8 GB RAM Relevant Dependencies: keras 3.11.3 numpy 1.26.4 opencv-python 4.12.0.88 pillow 11.3.0 tensorflow ...
2 votes
2 answers
564 views
ValueError: variable agent_scratchpad should be a list of base messages, got of type <class 'str'>
This is a very basic example how I am trying to use langchain to invoke a llm and find the tool to use: import asyncio import json from langchain.agents import AgentExecutor, ...
0 votes
1 answer
77 views
Using pd.from_dummies to get the values in target variable back (after one-hot encoding) but getting Value Error
I'm participating in the curent Kaggle playground series and I decided to use a neural network for the binary classification problem because I am practicing making simple ones. I converted the target ...
3 votes
1 answer
48 views
ValueError: zero-size array to reduction operation maximum which has no identity in SVAR Mode
I'm trying to fit a Structural Vector Autoregression (SVAR) model using statsmodels in Python, but I'm encountering the following error ValueError: zero-size array to reduction operation maximum which ...
0 votes
0 answers
47 views
Alphalens get_clean_factor_and_forward_returns throws Length mismatch: Expected axis has 34 elements, new values have 36 elements
I'm using alphalens.utils.get_clean_factor_and_forward_returns() to compute forward returns from a factor series and price DataFrame. But I'm hitting the following error: ValueError: Length mismatch: ...
2 votes
1 answer
165 views
How to correct a ParserError when respecting the CSV delimiter and a second ParserError on URL string not expected with the delimiter defined?
I'm new here so I hope that I will put all needed information As the CSV is a huge one (10Go), the URL link is in the code below if needed URL link to the data description (column type...) Delimiter ...
0 votes
0 answers
96 views
MESA Solara missing required model parameter
I'm using Solara to visualize a MESA simulation but I always get this message: ValueError: Missing required model parameter: initial_fire_positions Can someone help me figure out why it is happening?...
0 votes
0 answers
28 views
Issue with Input Array on Random Forest Model with Both Numerical and Categorical Features
I am obtaining a ValueError regarding the input arrays and there dimension. I am trying to create a Random Forest Regression Model for price prediction using both numerical features and categorical ...
-1 votes
1 answer
93 views
ValueError: axes don't match array when trying to transpose
I'm fetching a frame correctly from webcam: success, image = self.video.read() But when I try to change the mode of my frame to grayscale using the following code: gray_image = cv2.cvtColor(image, ...
1 vote
1 answer
74 views
ValueError: too many values to unpack Python when creating Dictionary from a String
I am trying to create a dictionary from a string. In this case I have posted my sample code (sorry its not that clean, just hardcoded values), the first str1 works fine and is able generate a ...
-1 votes
2 answers
71 views
Subtract value of one dictionary from the list of values of another dictionary. The keys should match
Here are my two dictionaries dict1 = {'AUD': 1.55453513945, 'CAD': 1.3458501245, 'EUR': 0.97729005765, 'PKR': 289.48832734625, 'USD': 1.0} dict2 = {'AUD': [1.6090702789, 1.5], 'CAD': [1.451700249, 1....
0 votes
1 answer
26 views
Input 0 of layer "conv2d" is incompatible with the layer: expected min_ndim=4, found ndim=2. Full shape received: (None, 4)
I'm making a CNN and I don't know the full ins and outs of coding. When i try to add the layers, it constantly gives me a "NotImplmentedError" and a "ValueError" that says ...
0 votes
0 answers
16 views
Incorrect Traceback on pandas ValueError [duplicate]
I saw some unexpected behavior during a ValueError when using pandas. When incorrectly using and instead of & to provide a boolean argument to a pandas series in a loop, the traceback points at ...
0 votes
2 answers
73 views
How can I change the format of a string date in pandas dataframe to an integer?
Python (venv) 3.12.2 from VSCode (1.96.2) within Anaconda (2.6.4) on an intel iMac, Sequoia 15.1.1. I'm working on a downloaded model (not my original work) for predicting MLB scores. One of the 17 ...