Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,279
» Latest member: Santoro
» Forum threads: 38,791
» Forum posts: 175,868

Full Statistics

Online Users
There are currently 36 online users.
» 0 Member(s) | 32 Guest(s)
Bing, Google, Applebot

Latest Threads
How Can Solo Indie Game D...
Forum: Game Development
Last Post: OtiliaBecker
2 hours ago
» Replies: 0
» Views: 14
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Yesterday, 02:10 PM
» Replies: 2
» Views: 86
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Yesterday, 06:48 AM
» Replies: 0
» Views: 29
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:59 AM
» Replies: 11
» Views: 5,980
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Yesterday, 04:46 AM
» Replies: 2
» Views: 4,282
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 295
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 141
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 207
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,110
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 254

 
  Multi-threading
Posted by: Evil_Patrick - Jul-15-2020, 05:26 AM - Forum: General Coding Help - Replies (2)

Can I use Multi-threading to scrape images from internet fast
If yes can anyone Explain me how it works
Can't find anything related this on Intern..... More

Print this item

  simple f-string expressions to access a dictionary
Posted by: Skaperen - Jul-15-2020, 05:04 AM - Forum: General Coding Help - No Replies

did anyone ever figure out a way to have a run time generated sting value processed like a f-string in the local context? i asked about this many moo..... More

Print this item

  Any ideas on making this python web crawler code better, simpler, or optimal?
Posted by: samlee916 - Jul-15-2020, 04:12 AM - Forum: Code Review - No Replies

[python]
import requests
import argparse
from urllib.request import urlparse, urljoin
from bs4 import BeautifulSoup

#initialize the set of link..... More

Print this item

  VSCode not able to discover tests
Posted by: rpk2006 - Jul-15-2020, 04:06 AM - Forum: General Coding Help - Replies (5)

My test file is as below:

[python]from unittest import TestCase
import pytest

class TestNumbers(TestCase):
def TestSum(self):
sel..... More

Print this item

  Attribute error in Dataframes
Posted by: deshanish - Jul-15-2020, 03:57 AM - Forum: Data Science - Replies (1)

import numpy as np
import pandas as pd
from pandas import Series, DataFrame
import webbrowser
website='https://en.wikipedia.org/wiki/NFL_win-loss_..... More

Print this item

  How to give space when concaneting strings
Posted by: deshanish - Jul-15-2020, 02:59 AM - Forum: General Coding Help - Replies (1)

>>> str='Python is a great programming language'
>>> str
'Python is a great programming language'
>>> str1=str[0:11]
>>> str2=str[12:29]
>>> str3..... More

Print this item

  Help me get this image converter code working?
Posted by: NeTgHoSt - Jul-14-2020, 10:36 PM - Forum: General Coding Help - No Replies

Hello, I have been trying to convert 8-bit images into the proper binary format required by the Arduino IDE library I am using. The library included t..... More

Print this item

  Python dict to pandas df
Posted by: waleed3011 - Jul-14-2020, 09:56 PM - Forum: Data Science - Replies (3)

I have a set of data that can come through a stock data API, the amount of data and how stocks is depending on users' requests. The data I receive fro..... More

Print this item

  emcee
Posted by: hanaizdi19 - Jul-14-2020, 09:09 PM - Forum: Data Science - No Replies

hi guys, ive been using emcee to sample my parameter..
but I still don't have idea how to combine many likelihoods.. it works fine for just one likeli..... More

Print this item

  for field in form
Posted by: mp3909 - Jul-14-2020, 07:54 PM - Forum: Web Scraping & Web Development - Replies (1)

How can I say if field is not "album_logo" then do this else do that?
I have this code in my django form where I want to set the input for the field "..... More

Print this item

  Writing a function to calculate time range in Unix Epoch Time
Posted by: t4keheart - Jul-14-2020, 07:23 PM - Forum: General Coding Help - Replies (2)

A program I am writing has the requirement to calculate the past 24 hours (as a time range) in unix epoch time. I would like two objects... the curren..... More

Print this item

  import yaml error for python3
Posted by: maiya - Jul-14-2020, 05:46 PM - Forum: General Coding Help - Replies (4)

Hi All,

#!/bin/python
import yaml
print('yaml')
Traceback (most recent call last):
..... More

Print this item

  How to do it in simplified Python code
Posted by: Jacks - Jul-14-2020, 04:21 PM - Forum: General Coding Help - No Replies

Hi All,

Anyone can suggest, simplified Python Code to find my recursion levels..!!!
I have attached the sample xml input and my output should be l..... More

Print this item

  Copy certain cells into new workbook certain cells
Posted by: Kristenl2784 - Jul-14-2020, 03:46 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm trying to copy certain cells from ws, and paste them into certain cells in ws2, what I have isn't doing this. It's just creating an outp..... More

Print this item

  Multiple MEAN value using FOR loop
Posted by: kka_anand - Jul-14-2020, 03:43 PM - Forum: General Coding Help - Replies (2)

I use the following code to find MEAN by using For loop,

It displays value for MEAN(5) but, for MEAN(8) it throws an error message - IndexError: li..... More

Print this item

  Recursive Function
Posted by: sridhar - Jul-14-2020, 03:38 PM - Forum: General Coding Help - Replies (7)

Hi all ,
This is going to be crazy but I need to know how to do it. Please help me out folks.

The code which I'm using is not in a proper optimize..... More

Print this item

  Cannot find Python installation folder when I install Anaconda
Posted by: bsbsbsbs - Jul-14-2020, 02:55 PM - Forum: General Coding Help - Replies (1)

Hi I need to make a directory to my Python folder when trying to use a separate program that requires a python path.

[img]https://prnt.sc/thmyja[/i..... More

Print this item

  OOP hellp (simple class person)
Posted by: onit - Jul-14-2020, 02:23 PM - Forum: General Coding Help - Replies (4)

Hello friends, I have started to learn OOP in python and I want some help with the simple class. I am trying to create a simple "person" class and ret..... More

Print this item

  error while running in debug mode ModuleNotFoundError
Posted by: avipy123 - Jul-14-2020, 02:05 PM - Forum: General Coding Help - No Replies

[error]Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2020.1.2\plugins\python\helpers\pydev\pydevd.py", line 10, in <m..... More

Print this item

  Installing a python package using pip
Posted by: anthonymoss78 - Jul-14-2020, 01:52 PM - Forum: General Coding Help - No Replies

Hi,

This is a continuation of a thread I posted last week .
I have a python package that is a wrapper around some c++ libs with a python interfac..... More

Print this item

  convert old excel files(xls) to xlsm
Posted by: zarize - Jul-14-2020, 01:01 PM - Forum: General Coding Help - Replies (1)

Hi guys,

I would like to do some copy paste things from one excel to another, but one of them has .xls extension.

I wanted to use openpyxl library b..... More

Print this item

  ValueError: shape mismatched: objects cannot be broadcast to a single shape
Posted by: Laplace12 - Jul-14-2020, 11:42 AM - Forum: General Coding Help - No Replies

I'm trying to save a txt file by manually entering the energy values in our experiment, but the code runs an error:

[python]b = np.broadcast(*args[:3..... More

Print this item

  an input question
Posted by: saratha - Jul-14-2020, 11:42 AM - Forum: General Coding Help - Replies (4)

Hello everyone,
I just wanted to know how I can check if a string input is a number?

Print this item

  try: except not returning a value
Posted by: NewBeie - Jul-14-2020, 09:40 AM - Forum: General Coding Help - Replies (6)

I have this function;

[python]def get_file_number(filename):
""" Get the file number from the file name

Finds the part between xml and .txt ..... More

Print this item

  300 free curated Python code snippets
Posted by: steve_shambles - Jul-14-2020, 09:18 AM - Forum: Code sharing - Replies (1)

For the last 22 months I have been collecting and editing Python code snippets.
I am pleased to announce there are now 300 snippets of code available..... More

Print this item

  Help with simplifying a code + np.savetxt()
Posted by: Laplace12 - Jul-14-2020, 08:47 AM - Forum: Data Science - Replies (3)

Hey! I need help simplifying a code. I have a code which plots given data, so you'd only have to create a new data file and the basic Function code it..... More

Print this item

  [Help] Pressure-Time Dataset reduction - without loosing information
Posted by: Rene_AC - Jul-14-2020, 08:29 AM - Forum: Data Science - No Replies

Hello everyone.

I have some issue with my data, or with the needed simulation based on the obtained data.

I record data and get data from severa..... More

Print this item

  shutil.copy questions
Posted by: kristianpython - Jul-14-2020, 07:51 AM - Forum: General Coding Help - Replies (3)

Hi,

I want to run a script that uses the shutil module to copy the last added file. I can use the code below to copy a file, but how would I go ab..... More

Print this item

  First Functioning Calculator
Posted by: wxcoding - Jul-14-2020, 05:27 AM - Forum: Code Review - Replies (3)

Hello,

So to practice functionality, I wrote out a calculator to determine the distance between two cities using the haversine formula. User inputs..... More

Print this item

  Practical Machine Learning
Posted by: ErnestTBass - Jul-14-2020, 03:39 AM - Forum: News and Discussions - Replies (1)

I have been working on machine learning either part time or full time for the last year and a half.[size=large]

But what i am m..... More

Print this item

  Reading integers from a file; the problem may be the newline characters
Posted by: JRWoodwardMSW - Jul-14-2020, 12:03 AM - Forum: General Coding Help - Replies (2)

I want to read integers from a file. The delimiter is " " (a space).
I am getting the list of strings read into the program, but the error message i..... More

Print this item

  Going thru tutorials..."NameError: name 'raw_input' is not defined"
Posted by: hmonnier - Jul-13-2020, 09:33 PM - Forum: General Coding Help - Replies (4)

I'm a total newbie, wrote machine code for years at GE, Digital Communications stuff. Off to try to learn Python.
In going thru the tutorials in one ..... More

Print this item

  Creating a Scrolling (infinite) Background
Posted by: Knight18 - Jul-13-2020, 05:38 PM - Forum: Tutorial Requests and Submissions - Replies (1)

I've been dabbling in Pygame for over a month now and I've discovered many things. I've created two games so far + 2 more in development. I intend to ..... More

Print this item

  delete a file works but with error
Posted by: Leon79 - Jul-13-2020, 05:11 PM - Forum: General Coding Help - Replies (4)

Hello,

I get an error from my code, I create the path in order to delete the correct file (I have import os of course), even if my code delete the ..... More

Print this item

  model interpretation for automated theorem proving with Z3
Posted by: vdbrueck - Jul-13-2020, 05:10 PM - Forum: Data Science - No Replies

Hi, does someone know how the model output of Z3 automated theorem prover from Microsoft is interpreted?
The model output (s.model()) contains the f..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How Can Solo Indie Game D... 2 hours ago OtiliaBecker OtiliaBecker Game Developm...
  [SOLVED] [BeautifulSoup] ... Yesterday, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... Yesterday, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... Yesterday, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... Yesterday, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 08:44 Tuurbo46 Tuurbo46 GUI
Most views
  The best Prog... 579184
  Tutorial Requ... 511877
  Web Scraping ... 442138
  Newbie with P... 386216
  New Users Int... 379101
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12109
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Santoro Today
OtiliaBecker Today
NAGASOWMYAGUNDU Yesterday
shipa1autotransport Yesterday
eastnoob 11-19

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020