473,554 Members | 2,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
1
1,751
thread by: gccam2716 | last post Feb 16 '21 by: dreamtext
Python preferred but also open to suggestions The criteria for the scraper would need to be as follows Scrape every 15-30 mins Encompass multiple ASIN's and must be editable Record who's winning the buy box, price, inventory available
0
1,692
thread by: steventey | last post Feb 5 '21 by: steventey
Hey everyone! I've been using Heroku for a while now and sometimes I would get the following error from time to time: Error R14 (Memory quota exceeded) Is there any way to find out which variables are taking up the memory space so I can delete them? Thanks!
0
1,177
thread by: firaki12345 | last post Jan 31 '21 by: firaki12345
Good Evening Hi everyone, so i got the following JSON file from Walmart regarding their product items and price. so i loaded up jupyter notebook, imported pandas and then loaded it into a Data frame with custom columns as shown in the pics below. now this is what i want to do:
1
3,479
thread by: AETH3Rrr | last post Jan 19 '21 by: SioSio
I want to create this shape but with a loop so it shortens down my code. This is using the Graphics.py module Can anyone help pls from graphics import * def drawPatchLines(): win = GraphWin("Window",100,100) win.setBackground('white')
1
4,378
thread by: JupyterPS1 | last post Jan 7 '21 by: JupyterPS1
import numpy as np from numpy import arange from mpl_toolkits.mplot3d.axes3d import Axes3D import matplotlib.pyplot as plt def map2(fn, A, B): """Map fn to corresponding elements of 2D arrays A and B.""" return def score(A, B):
1
2,484
thread by: Bhumika | last post Jan 7 '21 by: dev7060
import random def levels(): menu = ' ' while(menu != "X" or menu != "x"): print("..............GUESSING GAME............") print(".......................................") print("(1) Numbers from 1 to 20") print("(2) Numbers from 21 to 100") print("(X) Exit")
3
1,788
thread by: takila | last post Dec 29 '20 by: RaceShooter
I'm still a newbie in coding I started learning python lately
0
1,865
thread by: arooj | last post Dec 27 '20 by: arooj
I am working on UBUNTO20.04 and python 3. I have a GRC file which can be converted to python file as well. Can i run this file in an other python script having oly button which will initiate my first python script please help with code. I want to make GUI.
3
2,827
thread by: kalyubave92 | last post Dec 22 '20 by: SioSio
Hi, im quite new to python ( I know the basics and all that) but I was wondering if it was possible to somehow use python to read a colour on the screen and detect what colour is showing or show the rgb format? E.g a blue image shows on the screen and the program can detect and print the values Blue=(0,0,255) sorry if I’m being a bit unclear, I’m...
0
1,736
thread by: Lode1001 | last post Dec 20 '20 by: Lode1001
Please I need a Python function to calculate Earliest Start time and Latest start time (PERT) Thanks for all
0
1,206
thread by: Micheal lance | last post Dec 20 '20 by: Micheal lance
I need to pixelate the image I created the grid after setting the color for the pixel corners I need to average the new pixel colors by using drawrectfilled def pixalate_image( ): image_obj = makePicture( pickAFile( )) pixel = requestInteger( "Get distance to pixel block:" ) w = getWidth( image_obj ) h = getHeight( image_obj...
0
1,590
thread by: Judy94 | last post Dec 20 '20 by: Judy94
Hello everybody, I'm Judy and i have to create a web application for a programm which already exists. It is written in Matlab and has a UI already. This is part of my Master Thesis, of course I dont want you to do it for me, I just need a push in the right direction please :~) I have attached a picture as an overview of the program. Sadly I...
2
1,698
thread by: M7MooD | last post Dec 18 '20 by: M7MooD
Hallo everyone, i have a question, and I would be glad if someone can help me. I am studying medical engineering(bachelor), and I wanna pick a master study of medical engineering with the focus on AI, Deep learning for medical imaging. I have already strong maths knowledge, but just basics programming knowledge in various languages. I have...
1
2,463
thread by: Rebeka | last post Dec 13 '20 by: Niheel
Title. I have a basic understanding of how programming works, just looking for some resources on how to get started on my own. Also if anyone has any advice in regards to most effective methods to study and learn in the least amount of time possible that would be very much appreciated. Thanks in advance
0
3,131
thread by: feuerk | last post Dec 7 '20 by: feuerk
I have tried these two codes and none of them seems to work. Can any of you help? from numpy import loadtxt from urlib.request import urlopen url= 'https://think.cs.vt.edu/corgis/datasets/python/electricity/electricity.data' raw_data = urlopen(url) dataset = loadtxt(raw_data, dtype = 'str', delimiter = ",")
4
14,382
thread by: david2031 | last post Dec 2 '20 by: Buzzer159
why is this skipping readlines in what it returns? i went through debugger and found it thinks the second line of the txt file is the first and continues to skip every second line. def get_distances(filename): opener = open(filename) d = {} while file.readline(opener) != '': '''converts a file with cities and distances...
1
2,700
thread by: thomasBaldr99 | last post Nov 29 '20 by: Banfa
The search is always canceled after the first hit. How can I correct this? I dont want to cancel. from random import randrange # the max number of values NumberValue = 100 # an empty list for the values ListOfNumberValue =
2
2,966
thread by: onrhsgr3535 | last post Nov 26 '20 by: Hungmeout
import requests from bs4 import BeautifulSoup from pprint import pprint import pandas as pd page = requests.get('https://www.arabam.com/ikinci-el/motosiklet/honda?view=List&take=50') soup = BeautifulSoup(page.text, 'lxml') rows = kolon = for tr in soup.select('tr'):
0
2,192
thread by: soumyarani | last post Nov 24 '20 by: soumyarani
New job, new platform: Pega. So Pega is being used to host a relief map of ranchers and farmers for a conservation project. A data table can be generated with about 20-22 columns. The developer told me that the export to CSV uses a function exposed by Pega to convert a JSON payload to a .CSV file the problem is, empty cells in the data table on...
0
1,393
thread by: 282ye3gr3fef | last post Nov 19 '20 by: 282ye3gr3fef
I want to know a good, fast, efficient way I can do this. I'm using vanilla sqlalchemy and vanilla python, no frameworks. I'm kind of stuck-I know what technically would work, but my idea is not efficient and I want to know what the consensus is on how to do this.
5
2,148
thread by: Aijxo | last post Nov 16 '20 by: dev7060
Input: list = print(list) for i in range(len(list)): min_index = list.index(min(list)) list.append(list) list.pop(min_index)
2
2,420
thread by: Helmuts Helmuts | last post Nov 14 '20 by: dev7060
Hello, guys! I probably shouldn't mentioned it, because in other forums no one really wanted to help me after I mentioned that I need this for my programming test at school, but I'm really desperate. I will attach my code and errors in it, I don't really understand what is wrong with these errors and how can I fix them. I am already trying to...
1
2,781
thread by: Ishan Shah | last post Nov 11 '20 by: dev7060
Hello! I am working on a task in which I have to download the data of the user, so provide me the basic code or reference for it
2
2,846
thread by: em9546 | last post Nov 10 '20 by: SioSio
I have two separate txt files (reservations1, reservations2) that are set up like a reservation system for a restaurant. Each line in the file stands for a reservation and has the format: ```Name, Time, Status```. Status is either ```CONFIRMED``` or ```CANCELLED```. I want to write a function ```show_reservations``` that takes as argument a...
1
2,899
thread by: sangeetarai | last post Nov 4 '20 by: Ishan Shah
data = data.map(lambda x: cleaning(x)) data = data.reset_index(drop=True) for i in range(len(data)): words = data.content for j in range(len(data.content)-1): words+= ' ' + data.content data.content = words

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.