While loop is not printing the question when the code catches ZeroDivisionError or ValueError. There are 2 functions called main() & convert() and ...
While loop is not printing the question when the code catches ZeroDivisionError or ValueError. There are 2 functions called main() & convert() and ...
I've copied the code that is used for data visualization in kaggle. I applied it with another dataset. When I was executing for confusion matrix, visu ...
model gru This is my model and I'm getting the error Could you help in resolving the error as there is some issue with the size of input ? ...
I have a problem. I implemented a migration to create another option on my model (add the preview textchoice) and implemented a RunPython method to cr ...
I am trying to use pythons scipy.optimize.minimize to find the value of x in a function where the function goes to 0. However, although the final resu ...
I'm trying to create a new column on a dataset (csv file) that combines contents of pre-existing columns . I was expecting to find that the new col ...
i tried to do all i know but i cant fix this i want to transform this archive txt: to a dictionary but it tell me that, and i dont know how to f ...
I am trying to make a Library Management System by using OOPs in python. Here's the codeblock by which I am getting the error: FULL CODE: I tr ...
The ijson module has a documented option allow_comments=True, but when I include it, an error message is produced: ValueError: Comments are not suppo ...
I made an age calculator in python which uses while loops to regulate the kind of answer the user can input. However, I also want the user to be ab ...
ValueError: Expected 2D array, got 1D array instead: array=[712. 3.]. Reshape your data either using array.reshape(-1, 1) if your data has a single fe ...
Im building a sentiment analysis on web but the problem i got now is the expected features are not the same with my X features. after the model that ...
I have arrays in a list. Each of these arrays has two elements in them. If any of the elements of the array are either greater than some specified num ...
I have a problem. I am using Windows 7 32x, Python 3. When I try to import the numpy library in code, no matter what, I get an error. I don't remembe ...
how can I print a day and a time using Python strftime? My code is below, but any time I run it, I get "ValueError: time data '1 day, 2:45:00' does no ...
I have a value error with my JavaScript code on the first line of an async function, there is a value error, which I cannot seem to find the fix for, ...
I'm trying to create a class "Hippocrates" with a function inside that lets me create a dictionary from a given text document (the content of the docu ...
I have 2 input columns, the first column is binary (zero or one) and the second column is a feature vector of size 100. I want to fit these 2 columns ...
I wanted to use the ddeint in my project. I copied the two examples provided on https://pypi.org/project/ddeint/ and only the second one works. When I ...
I have a pandas dataframe with 5 different columns: As the Product_IDs are not unique and there can be multiple cumcount keeps track of the occurre ...