Hi I'm trying to build a simple django app but I can't get index.html file to recognise the variables created in views.py. Nothing I do seems to work. Does it h
When I input this code print(cross_val_score(model, X, y, cv=3)) An error comes back that reads name 'model' is not defined: print(cross_val_score(model, X, y
I have the following network graph. # Create the graph with unique edges to check the algorithm correctness G = nx.MultiGraph() G.add_edge('A','B',route='56BM',
I have a backend,which receives codes and returns true or false. I send it codes using my python encryption,it returns true(the result varible): from Cryptodome
Here is the code from time import sleep import keyboard # Condição de partida da máquina while True: if keyboard.is_pressed('ENTER'):
I want to plot a 2d condition function, and the code as below: from numpy import exp,arange from pylab import meshgrid,cm,imshow,show def z_func(x,y): zPar
I have an input file where each line contains 99 lowercase letters, bccdddcdccddddddabcdabcabdbacbdcaaccbbcabacbccabcacbcdcccbdbacdcbbcbcbcccacadaaccababadbcbaa
In my django project i have many different models which i want to query using GraphQL. For instance: class Country(): name = CharField(max_length=255) clas
I am practicing on pygame and I was wondering how can we do so that the framerate does not affect the speed of execution of the game I would like FPS to not be
I have searched and searched and tried everything. I am creating a game where the user will input a pre-assigned pin and I want to validate that pin against a
In Pandas, it is simple to slice a series(/array) such as [1,1,1,1,2,2,1,1,1,1] to return groups of [1,1,1,1], [2,2,],[1,1,1,1]. To do this, I use the syntax:
I am currently working with Create2 Roombas. They are connected through serial to USB connections to Raspberry Pis that I control from my laptop through SSH. I
Output- "ValueError: could not convert string to float: 'Private Sector/Self Employed' ". I need help with this error as I get this error consistently import nu
I need to cluster tweets based on similarity between them, I am using dec2vec to vectorize them and now I need a way to cluster this vectors, also I tried kmean
I have to do grid search on my DNN. But I am getting an error on GridSearchCV function. Here is the code for creating and compiling the model I used and also wh
Is it possible to have something like class MyAbstract { final int myFieldSomebodyHasToDefine; } class MyAbstractImplementation extends MyAbstract { fin
I have two different arrays populated with a number of string values and I would like to compare the two arrays and find the matches. The main problem is that t
I have a 5 * 5 two-dimensional array, and a dice will be thrown 25 times. For each throw, the user needs to put the value into the two-dimensional array. Becaus
I'm pretty new to Django and have been experimenting making my own personal blog. General question I get that I can specify my blog post structure in models.py
I couldn't make head or tail of this: I have a function that reads a bunch of csv files from a S3 bucket, concats them and returns the DataFrame: def create_df(