Image 1- Error I notice Exception Value: registration/login.html , I don’t even have that in the templates, instead, i have sign-in.html, I have no idea why it mentioned login.html. Please see my templates folder below as image 3-Templates. I’m trying to fix the above error. My project path looks …
Reading a text file and splitting into separate words in python3.8, using discord.py
I’m trying to make a discord bot using python 3.8 and discord.py in pycharm. The bot’s function is to read a text file and write out each word as a separate message and send it into a discord server. Now I have the text file and it can print out the words but it can’t do it separately. Below…
Group dates into list based on value
I have a json object that I’m trying to group item together in. this code returns values grouped by date as the key and then a list of teams and dates like this However, I need it to return and key value pair like this where all the dates for a specific team are in a list as the value
I keep getting ValueError: Shapes (10, 1) and (10, 3) are incompatible when training my model
Turning the number of inputs when I call makeModel from 3 to 1 allows the program to run without errors but no training actually happens and the accuracy doesn’t change. Answer LabelEncoder transforms the input to an array of encoded values. i.e if your input is [“paris”, “paris”…
How to make one dropdown close when clicking another dropdown
I have 2 href links in one page and on click the href opens. But when I click the other href (without closing the first one) the first one stays open. How can I solve this? At first I tried to only open and close the dropdown with CSS, but that got really messy because of the two buttons. Now
How do I convert an array of seconds to time series array in Python?
I have an array like this (in seconds) timebin= [79203 79213 79223 79233 79243 79253 79263………………82783] and I wish to convert these values to actual time of the day like [22:00:03, 22:00:13,………22:59:43] I have the following code but it doesn’t convert…
Splitting list of strings based on a character in each string ( Python )
So i have a list of strings that looks like this : This is how the list is generated and made readable (“video” is a list of selenium webelements ) : What i want to do is SPLIT this list into two other lists based on ONE specific character in each element like so : My end goal is to
Kivi: How to set Path for storing Output.txt file of Android app
I am making android app with kivy and python, I have function what will create record in TXT format, in my Project it is in same folder as the .PY file, but i know once i create .apk then it can be problem where the file will be stored. For example I would like to store that Tracking.txt file in
Split Business days in respective month
df1 df2 df i need to calculate 2 things column “Total” based on working days between “From” and “To” and include any holiday from df2. split the “Total” column in respective months (Jan to Dec columns) For part 1 : The column “total” in df1 is calcul…
How to replace an XML node via python
I am new in python and I have a – maybe – stupid problem with XML files (yep, I’ve tried to google the solution but without results). I have to write a program which will replace/switch two things, so first of all, here is the XML data, it looks like this: How in python i could change some_n…