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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,488
» Latest member: Luis_Rivera
» Forum threads: 38,579
» Forum posts: 174,815

Full Statistics

Online Users
There are currently 585 online users.
» 0 Member(s) | 581 Guest(s)
Bing, Google, Yandex, Baidu

Latest Threads
(Series) Advanced Game De...
Forum: Game Development
Last Post: FrankSmoot
3 hours ago
» Replies: 1
» Views: 659
How can I write formatted...
Forum: General Coding Help
Last Post: hanmen9527
Yesterday, 12:26 PM
» Replies: 13
» Views: 28,754
problems with netcdf if I...
Forum: General Coding Help
Last Post: vytlacfoto
Yesterday, 05:31 AM
» Replies: 17
» Views: 1,435
How to attach images to a...
Forum: Board
Last Post: sethmike9
May-19-2025, 04:08 AM
» Replies: 6
» Views: 8,899
How To Attach data Files
Forum: Board
Last Post: sethmike9
May-19-2025, 04:05 AM
» Replies: 3
» Views: 4,160
Text frame
Forum: Homework
Last Post: Pedroski55
May-18-2025, 07:39 PM
» Replies: 2
» Views: 409
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
May-18-2025, 06:28 PM
» Replies: 0
» Views: 202
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 317
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 253
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,429

 
Sad Python classes
Posted by: PythonNewbee - Nov-08-2022, 02:00 PM - Forum: General Coding Help - Replies (4)

Hi People

I have some difficulty with classes in Python.
I want to call a method, belonging to class A, from class B. I looked at online examples ..... More


Attached Files

.py   agent5.py (Size: 3.36 KB / Downloads: 204)
Print this item

  Implementing a Lowpass Filter
Posted by: Madridista - Nov-08-2022, 12:07 PM - Forum: Data Science - Replies (5)

I have data from a IMU Sensor. I have file an Excelfile samplesdata where the data of the IMU Sensor is export. In samplesdata There is ..... More

Print this item

Question Unwanted execution of unittest
Posted by: ThomasFab - Nov-08-2022, 10:12 AM - Forum: General Coding Help - Replies (9)

Hi Guys,

I`m trying to learn unit testing with the unittest libary.


I have created this modules:

Print this item

  Print phenomenon
Posted by: DPaul - Nov-08-2022, 10:11 AM - Forum: Bar - Replies (8)

Hi,
I came across a "bug" that was hard to find.
Found it, but found no good explanation of the why.
[python]
try:
do_stuff_1
Print(resul..... More

Print this item

  openpyxl convert data to float
Posted by: jacklee26 - Nov-08-2022, 05:20 AM - Forum: General Coding Help - Replies (13)

i have problem-related with excel, it seems like convert from txt to excel the data is a string not float. Is there any solution to convert it to floa..... More


Attached Files

Thumbnail(s)
   
Print this item

  python move folders and subfolders not working
Posted by: mg24 - Nov-08-2022, 12:06 AM - Forum: General Coding Help - Replies (5)

Hi Team,

I am trying to move folders and subfolders. from one location to another.
I want to override folders.

getting error :
raise Error("De..... More

Print this item

  a bunch of modules to import
Posted by: Skaperen - Nov-07-2022, 07:16 PM - Forum: General Coding Help - Replies (2)

i have a bunch of modules to import. their names are created by some code that uses a number in range(10,301) to make them. what is the most practic..... More

Print this item

  Please check whether the code about the for loop question is correct. (SyntaxError)
Posted by: lilliancsk01 - Nov-07-2022, 03:22 PM - Forum: Homework - Replies (10)

print('\n'.join(f'{":".join(str(n)[-1]
for l in range(int(l/2+.5)))}{"" if l%2 else ":"}'
for n, l in (lambda n: ((l, n)
for l in range(n)))(int(in..... More

Print this item

  How does open context manager work?
Posted by: deanhystad - Nov-07-2022, 02:21 PM - Forum: General Coding Help - Replies (7)

While answering a question in another thread I wrote this:
[python]import contextlib

@contextlib.contextmanager
def CreateFile(FilePath):
file =..... More

Print this item

  How to properly scale text in postscript conversion to pdf?
Posted by: philipbergwerf - Nov-07-2022, 09:06 AM - Forum: General Coding Help - Replies (3)

Hi all,

I have a question about Ghostscript postscript2pdf conversion. My setup is:

  • drawing a drawing with text on the tkinter canvas..... More

Print this item

  itertools and amazing speed
Posted by: Pedroski55 - Nov-07-2022, 04:59 AM - Forum: General Coding Help - Replies (8)

From the thread about getting random sets of image names we had 24 image names:

images = ['im1', 'im2', 'im3', 'im4', 'im5', 'im6', 'im7', 'im8',
..... More

Print this item

  I need some clarity on the use of the open command
Posted by: JonWayn - Nov-07-2022, 01:36 AM - Forum: General Coding Help - Replies (11)

I am looking at some code someone else wrote in which open is used then again on the same file that is already open. In VB, another language I use, so..... More

Print this item

  How to update score value?
Posted by: Mavoz - Nov-07-2022, 01:04 AM - Forum: Homework - Replies (5)

Hi, We're in a beginner Python class and creating text adventure games.
We want to be able to update the score during the game.

We've tried someth..... More

Print this item

  Number of documents processed counter in Flask API
Posted by: erotavlas - Nov-07-2022, 12:43 AM - Forum: Web Scraping & Web Development - Replies (1)

I'm creating a document processing website and the backend is in python using Flask API. I wanted a counter on the bottom of the front end page (in R..... More

Print this item

  Getting a URL from Amazon using requests-html, or beautifulsoup
Posted by: aaander - Nov-06-2022, 10:16 PM - Forum: Web Scraping & Web Development - Replies (1)

I'm new to scraping and am working on a scraper, I'm trying to figure out how to pull a URL from the src of this line of HTML:

<img alt="Bube Dame Kö..... More

Print this item

  how to check if someone send a message in a discord channel?
Posted by: Zerolysimin - Nov-06-2022, 03:37 AM - Forum: General Coding Help - Replies (1)

check the message, then copying the message

Print this item

  Pygame player spawn
Posted by: Yegor123 - Nov-05-2022, 10:07 PM - Forum: General Coding Help - No Replies

Im making a game and player spawn is off Ive tried tutorials other forums stack overflow and I havent found anything here is a photo and my code
[pyt..... More


Attached Files

Thumbnail(s)
   
Print this item

  Appending a row of data in an MS Excel file
Posted by: azizrasul - Nov-05-2022, 08:27 PM - Forum: General Coding Help - Replies (3)

I have the following working code which amalgamates excel file data into one Excel file. How do I amend the code so that I do not have an index column..... More

Print this item

  Animate the midpoints of a 3d “Rhombic dodecahedron”
Posted by: Beck_Johnson - Nov-05-2022, 04:18 PM - Forum: General Coding Help - No Replies

I need help in animating a Rhombic dodecahedron. I want to enlarge and to shrink the midpoints (center points) with FuncAnimation from Matplotlib. I w..... More

Print this item

  asyncio byte data transfer
Posted by: gary - Nov-05-2022, 03:01 PM - Forum: Networking - Replies (5)

I found the below code from my search on the web. The code provides a sample for server implementation using asyncio

[python]
import asyncio
asyn..... More

Print this item

  Increase df column values decimals
Posted by: SriRajesh - Nov-05-2022, 02:43 PM - Forum: Data Science - Replies (2)

Hi,
I have below datframe with numerical column marks
df:
[python]name age marks
A 14 12.34
B 12 34.1
C 29 19.567
[/pyt..... More

Print this item

  Async API request and NTLM authentication
Posted by: himanshuj89 - Nov-05-2022, 02:06 PM - Forum: News and Discussions - No Replies

Hello everyone,

I want to hit APIs asynchronously along with NTLM authentication. Could you please suggest the best way to do so?

What I have t..... More

Print this item

  random interger array question
Posted by: rpang - Nov-05-2022, 07:34 AM - Forum: Homework - Replies (3)

I being ask to create a random integer array with the info below:

[b]● Create two random integer array of values 0 to 14 of size ten called x and y..... More

Print this item

  question about loops
Posted by: rpang - Nov-05-2022, 07:19 AM - Forum: Homework - Replies (7)

Hi,

Sorry I am quite new in python, I have a question and i was wondering if anyone can help me?

question below:
[b][color=#F1C40F]Create a fun..... More

Print this item

  Am I wrong or is Udemy wrong? String Slicing!
Posted by: Mavoz - Nov-05-2022, 12:50 AM - Forum: General Coding Help - Replies (3)

Hi,
I'm using the 2022 Complete Python Bootcamp From Zero to Hero in Python course.
It features a series of test excercises..but I am getting errors..... More

Print this item

  rename same file names in different directories
Posted by: elnk - Nov-04-2022, 05:23 PM - Forum: General Coding Help - Replies (5)

I have a directory which has 10 other dirs with many files:

- directory
- dir1
- dir2
- dir3
- ...

How can i rename duplicate files ..... More

Print this item

  python Multithreading on single file
Posted by: mg24 - Nov-04-2022, 12:35 PM - Forum: General Coding Help - Replies (3)

Hi Team,

I want to use multi threading. on single csv files.


task one ----> create gzip of csv files
task two ------> Checksum no.generate ch..... More

Print this item

  'dict()' Has an Exception?
Posted by: htran3 - Nov-04-2022, 07:43 AM - Forum: General Coding Help - Replies (2)

Hey guys, please let me know if you have an answer to this (copy and paste into your IDE):
[python]x = {
0: "value 0",
1: "value 1",
2..... More

Print this item

  Regarding how to randomizing list with having equal probability
Posted by: radraw - Nov-04-2022, 05:44 AM - Forum: General Coding Help - Replies (14)

Hi I have doubt regarding randomizing images with equal probability.

I have 24 images and I want to generate 150 sets of 9 images from the 24 image..... More

Print this item

  prime numbers
Posted by: astral_travel - Nov-03-2022, 08:50 PM - Forum: General Coding Help - Replies (28)

i wrote this code:

[python]
user_input = int(input("choose a number: "))

a = range(2, user_input-1)

for x in a:
if user_input % x == 0:..... More

Print this item

  How to deactivate correctly a conda environment
Posted by: NoNameoN - Nov-03-2022, 03:18 PM - Forum: General Coding Help - Replies (2)

Hello everybody i'm trying to deactivate correctly my conda environment that is setted by default in every terminal session that i open.
As you can s..... More

Print this item

  ANSI not working for change of text colors
Posted by: BliepMonster - Nov-03-2022, 03:06 PM - Forum: General Coding Help - Replies (10)

Hello,

I tried to change the text color in my python program, and looked up a tutorial. When I typed in what they wrote, it just printed: '[2;31;43..... More

Print this item

  Openpyxl manipulate excel write formula
Posted by: SamLiu - Nov-03-2022, 11:31 AM - Forum: General Coding Help - No Replies

Hi all,
I have a demo about calculated each score with target gap as attached, formula is : ='Log'!C3-'Log'!C$2, ='Log'!C4-'Log'!C$2, ='Log'!C5-'Log'..... More

Print this item

  Separating Names & Counting
Posted by: Steven5055 - Nov-03-2022, 05:43 AM - Forum: Homework - Replies (7)

Hi,
I'm doing a Uni course & I'm a bit stuck & would appreciate some help please.

I have a column in a data frame that contains data as per below ..... More

Print this item

  Ver 3.11 installed but not in path
Posted by: omar - Nov-02-2022, 08:48 PM - Forum: General Coding Help - Replies (3)

I installed node.js. This asked me to install chocolaty (I think that's what it's called). This in turn decided to install Python 3.11.

I looked in..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  (Series) Advanced Game De... 3 hours ago Reactorcore FrankSmoot Game Developm...
  How can I write formatted... Yesterday, 12:26 JohnJSal hanmen9527 General Codin...
  problems with netcdf if I... Yesterday, 05:31 Blaubart vytlacfoto General Codin...
  How to attach images to a... 05-19, 04:08 CynthiaMoore sethmike9 Board
  How To Attach data Files 05-19, 04:05 Talch sethmike9 Board
  Text frame 05-18, 19:39 dnabtuh Pedroski55 Homework
  Python automation: Sendin... 05-18, 18:28 olips784 olips784 General Codin...
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
Most views
  The best Prog... 566315
  Tutorial Requ... 460531
  Web Scraping ... 431265
  Newbie with P... 368291
  Thread remain... 340465
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Luis_Rivera Yesterday
hanmen9527 Yesterday
zacharystone Yesterday
DaddyMAN Yesterday
rouzbehrasai1984 Yesterday

User Panel Messages

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