15,190 Topics
![]() | |
I want to split my data in 3 partitions training, validation and test: 70% training, 15% validation and 15% test for regression. Python provides a way to do that only for training and testing by cross_validation.train_test_split. Any Ideas? | |
I discovered, after upgrading to Python 3.10, that wxPython no longer worked. Fortunately, a kind soul at wxpython.org suggested I try installing a snapshot build of wxpython via the command pip install -U --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython So far my existing wxPython scripts run just fine. If you are wondering … | |
Im very new to flask and im trying to convert a python tkinter gui app to web. As you can understand i have all the functions made so it would be great if a could call them and pass variables with a single click of a button. for example: get_sub_menu … | |
He, i am strugeling whit a problem , i wannel call the ok restrasion botten. but it don't show on the screen. of form i gows over this pies of code in the program. btn_ok_REG = Button(root_reg, height=1, width=7, text='Login') btn_ok_REG.pack() btn_ok_REG.place(x= 100 , y=50) #!/urs/bin/evn python from tkinter import … | |
I work on `sql server 2017` I run script depend on `python language v 3.10` . I need to export data to excel fileStudentExport.xlsx already exist, and keep header without change after export. header of excel file StudentExport.xlsx before export data to it as below `StudentId,StudentName` after run script query … | |
class Namer (object): def __init__(self, arg): self.arg = arg A = Namer("A") B = Namer("B") C = Namer("C") print(A.arg) print(B.arg) print(C.arg) class FrameIt(object): def __init__(self, content): #Namer.__init__(self, arg) #<-----------? #super().__init__(self, arg) #<-----------? self.content = content #super().__init__() #<-------------------? def framed (self): print(self.content) X = FrameIt(A) Y = FrameIt(B) Z = FrameIt(C) … | |
Write a program that prompts the user to enter two integers, one per prompt. The program should then display the result of dividing the first number by the second number, using integer division so that the answer is an integer quotient, and a remainder. | |
iOS app development has to main part of development in the new era | |
> import numpy as np > import scipy.io.wavfile > from scikits.talkbox.features import mfcc > sr1,x1=scipy.io.wavfile.read("filename.wav") > ceps1,mspec1,spec1=mfcc(x1) I can obtain MFCC values as above. Now, I have 100 songs with 2 different music genres(electronic,jazz). And, I want to create a dataset with using these songs. I suppose I will use … | |
Hi all. I have been doing some HTML scraping and today a fellow coder told me about this thing 'DOM' and how much easier it is to use it rather than manipulating strings as I have been doing. He doesn't know much about it, and that's why I came here … | |
I'm looking for help on CloudFormation Template for Glue Jobs orchestration for below scenario: Suppose I have 10 AWS Glue Jobs, 4 jobs should be executed parallel and 6 jobs should be executed sequentially. If any job failure, send Workflow "Failure" notification along with the failed Glue Jobname. Job1 Job2----job5-->job6-->job7 … | |
Hi i want make an app with tkinter like this  and when someone click on strat its start main.py and in log print consol (log = terminal) i new in python sry for my bad english :) | |
I need help to create a grammarly for coding to help debug code | |
I'm building a tool in Python for which I need to read out error codes for specific devices using the Server-Eye API. Server-Eye is our monitoring solution where all of our devices and the devices of our customers are registered. The documentation at https://api.server-eye.de/ wasn't very helpful or I'm just … | |
I’m trying to create a change machine bored and have no programming experience. If anybody has any suggestions I am open to paying someone to help me with this project. I have some logic controlled hoppers and pulse validator‘s 50 MS on 50 MS off. I just need it to … | |
I can't get the Test code because I have installed the modules with the pip command but when I run the playtest-m connection command I get the error tests\conftest.py:2: in from mflix.factory import create_app mflix\factory.py:6: in from flask_bcrypt import Bcrypt E ModuleNotFoundError: No module named ‘flask_bcrypt’t’ | |
Hi. I'm trying to convert my python file into pseudo code but I have no idea of how pseudo code work. continueAnswer = input("Please enter either continue to carry on with the program or end to stop it: ") continueAnswer=continueAnswer.upper() while continueAnswer == 'C': while True: try: print('') encodeORdecode = … | |
Can you help me.. Accepts the grades for the 4 quarters and compute the final grade consider the requirement. The first 3 quarters must be multiplied by 20%, while the last quarter grade is multiplied by 40%. | |
I am using colab and below is the code import pandas as pd import numpy as np import os import csv data = pd.read_file(r'C:\Users\sd3394\Test\CAN_all.csv') data.head() | |
import random money = 0 finmoney = 0 turns = 0 colturns = 0 finturns = colturns + turns print(""" 1 2 3 4 5 6 7 8 9 10 red black every guess = - 1$ every colour = - 5$ every correct = + 10 The goal is … | |
Hi, im trying to set a radio and youtube playlist player my code works with radio and single youtube link but with playlist it says that the link is unrecognized, can somoene help? import os from os import path from random import randrange from tkinter.ttk import Combobox import pafy import … | |
Assume the list numbers 1 has 100 elements, and numbers 2 is an empty list. Write code that copies the values in numbers 1 to numbers 2. I would like to have a program of this question from python, chapter 7 - list and tuples | |
I can not get this program to list all of the contact names, it just list the first one. ##!/usr/bin/evn python3 # # Contact Manager Program # import csv FILENAME = "contacts.csv" def write_contacts(contacts): with open (FILENAME, "w", newline="") as file: writer = csv.writer(file) writer.writerows(contacts) def read_contacts(): contacts = [] … | |
hi there i have a python http post request with no request but theres the code: requests.post("https://api.i66v1xg2.org/v3/moderate/+" + userid + "/") i dont know how to make it in java and in okhttp3 help pls thanks | |
c++ sql phyton javascript html | |
I have a homework assignment that im not really sure how to approach as of right now, I've done some research but. I have not found really anything that would pertain to what I'm doing. Any help would be appreciated <3 . So far this is what I have: /****************************************************************************** … | |
Ive created a snake game with the help of a tutorial and i want to create a pause function for my program however, every other tutorial and website i looked at hasn't really helped, can someone help me figure out how to pause my game? | |
Hello, I am trying to install paramiko on a linux instance running on docker. However, I keep getting the same error: Failed building wheel for cffi | |
hello, i have problem to write a generator function to slice a great list to pieces in python 3. /because of RAM/. is it possible? | |
Can u help me I am making a game in pygsme pygame in python so when I run the program it appears a blank black screen instead of the image that I hve upload in pygame to make game so actuaaly when I run the program it appears blank black … |
The End.