I've setup a relationship using django's ForeignKey against 2 unmanaged tables like so: class Product(BaseModel): publish_name = models.CharField(unique=Tru
def make_list(number): names=[] for item in range (number): names.append(input("Enter your name with a capital letter.")) print(names)
This is my code test['Predictions'] = true_prediction Error Try using .loc[row_indexer,col_indexer] = value instead
i am working on an imbalanced multi-class dataset, i am trying to pass it into a balancedBaggingClassifier but i keep getting the error below : code: import pa
I'm trying to configure tests in the GitHub workflows for my FastAPI application. My alembic.ini -file is located in app folder. The alembic ´env.py´
This is a picture of the error I'm getting when running the code: I can't figure out what it thinks is wrong. I assume it has something to do with the way I us
python version:3.6.9 and 64-bit At the beginning, i can't download tensorflow ,i use pip install tensorflow,then it throw error ERROR: Could not find a version
I'm currently trying to display a table in tkinter that refreshed every time the user switches frames. The way that I am doing this is through deleting all the
I have a python program that uses simple Windows GDI functions like BitBlt and StretchBlt which runs at computer startup but it starts before the user has logge
I've converted a txt file that has a fixed number of variables, for every entry, to a dict and df. For example, if every entry in the txt file has a Date entry
I have been working with synthetically produced data which consists of samples of the shape 4x1745 and 2 labels each of which further can have 120 classes. The
I have a problem with my selenium script. Basicly what is it supposed to do is click an element that redirects you to a completly different page (url and everyt
I try to gray out some slash commands that only someone with the right permissions can use. I found out that you can gray them out for everyone if you set defau
#35 name1 = "eric" age1 = 10 name2 = "jay" age2 = 13 print('name:',name1,'age:','%d','\n'+'name:',name2,'age:','%d' % (age1,age2)) I got an error which is this
I have a dataframe of 12 different teams with their own statistics. My objective is to repeat an entire series of steps for one team, and so on, until the last
I have defined a function that takes three entries, 2 numbers and an array. The Array is a 800 row 10 col array. The first column in the array has a number for
I try to delete symsol ":" from dates and it doesn't work: oper_dates=response.css('.textonline__date::text').extract() for item in oper_dates: clean_oper
I'm writing tests for my djangocms app, first time using selenium to replicate the browser/user. I'm trying to test the login page, user simply fills out the us
I have 2 numpy arrays of same length lets call them A and B and 2 scalar values named C and D. I want to store these values into a single txt file. I thought of
What is the difference between raw_input() and input() in Python 3?