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,397
» Latest member: JulioLet
» Forum threads: 38,823
» Forum posts: 176,029

Full Statistics

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

Latest Threads
IP address for users
Forum: Networking
Last Post: Ruth_Hernandez
7 hours ago
» Replies: 5
» Views: 7,143
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
9 hours ago
» Replies: 28
» Views: 15,576
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:11 AM
» Replies: 1
» Views: 135
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,608
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 212
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,627
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 182
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 334
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,996
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 204

 
  which way would be better?
Posted by: Skaperen - May-10-2024, 12:26 AM - Forum: General Coding Help - Replies (3)

which way would be better (WWWBB)?

1.[python]
from stat import S_ISREG,S_ISDIR,S_ISLNK,S_ISBLK,S_ISCHR
from stat import S_ISFIFO,S_ISSOCK,S_ISPOR..... More

Print this item

  Adaptive experimental design in python
Posted by: Shilbottle - May-09-2024, 02:03 PM - Forum: Data Science - Replies (2)

Background
I'm looking to implement a discrete choice experiment where participant(s) are presented with pairs of 'product profiles' and asked..... More

Print this item

  Extending list doesn't work as expected
Posted by: mmhmjanssen - May-09-2024, 01:36 PM - Forum: General Coding Help - Replies (2)

Adding a list using the += operator or the extend function gives strange results when used in a class (maybe also outslde a class, I didn't check this..... More

Print this item

  pyinstaller + win32print
Posted by: Wild_Tigra - May-09-2024, 12:50 PM - Forum: General Coding Help - Replies (1)

Hello everyone, I’ll say right away that I’m new to programming, I mainly use GPT chat. The essence of the problem is that there is code in Python, an..... More

Print this item

  What's the meaning of dtype=mesh.Mesh.dtype?
Posted by: FerdiFuchs - May-09-2024, 05:31 AM - Forum: General Coding Help - Replies (2)

Hi there,

I'm trying to create STL files using python code and found the following sample:

[python]from stl import mesh
import math
import num..... More

Print this item

  Use or raw string on regular expressions
Posted by: Zaya_pool - May-09-2024, 04:08 AM - Forum: General Coding Help - Replies (5)

I am studying regular expressions in an introduction course and I don't completely understand the use of raw strings. I will ilustrate my question wit..... More

Print this item

  Value Error when Trying to Plot Filtered Waveforms
Posted by: mkohler - May-09-2024, 12:40 AM - Forum: General Coding Help - Replies (1)

Howdy yall. I am trying to apply a highpass filter to my waveform from a specific earthquake but I cant seem to understand the error that I get when i..... More

Print this item

  Class and Object HW for cars - Help with error handling for user inputs
Posted by: jakeshugart - May-08-2024, 07:55 PM - Forum: Homework - Replies (2)

Hi All,

I have this HW problem that deals with classes and objects and I think i did the assignment correctly from the instructions. However, I w..... More


Attached Files

.pdf   class Car HW problem.pdf (Size: 77.8 KB / Downloads: 301)
.py   car_object_error_handling.py (Size: 1.38 KB / Downloads: 210)
.py   Car.py (Size: 1.19 KB / Downloads: 224)
Print this item

  Please make a script
Posted by: Centsicles - May-08-2024, 04:22 PM - Forum: Bar - Replies (10)

jesus christ,i've looked everywhere,im shadow banned on reddit for whatever reason? Anyway i need to terminate a task called nf.exe that starts itself..... More

Print this item

  Regular expression help
Posted by: anilrajr - May-08-2024, 07:51 AM - Forum: General Coding Help - Replies (4)

Hello All,

Need your help to understand what below python regular expression code does. It's from a Ansible playbook.

[b]- { regex: '((?:hares|h..... More

Print this item

  get a game to run in full screen mode
Posted by: agencyclearly - May-08-2024, 07:22 AM - Forum: Game Development - Replies (1)

Hello, I need some assistance with some coding and I'm attempting to get a game to run in full screen mode. However, it's now small and in the center ..... More

Print this item

  Integrating Python Debugging with Visual Studio Code in a Custom Application
Posted by: bill787 - May-08-2024, 03:59 AM - Forum: Networking - Replies (1)

I’ve integrated Python directly into my application, running it within the same process by loading Python’s relevant libraries. I’m looking to debug P..... More

Print this item

  strange result in xor
Posted by: zapad - May-07-2024, 04:08 PM - Forum: General Coding Help - Replies (6)

hello
i am trying to implement an xor test on 2 values
in binary . I receive in return a strange numeric string instead
of the binary I expect ..... More

Print this item

  Odd Print Behavior
Posted by: tanner_1011 - May-07-2024, 03:12 PM - Forum: General Coding Help - Replies (3)

I'm on Windows 10, running Python 3.12.3. I created a python script in a directory called 'python_alarm_help', and it contains print statements that c..... More

Print this item

  Legacy database
Posted by: DPaul - May-07-2024, 05:58 AM - Forum: Bar - Replies (4)

Hi,
I have been handed a legacy database. It's something called 'filemaker pro',
and I have reason to believe : release 13.
Next to a bunch of dlls..... More

Print this item

  can a number preceed a line of code?
Posted by: Skaperen - May-07-2024, 05:40 AM - Forum: News and Discussions - Replies (4)

is there any case where a line of code that begins with a decimal number expressed as a run of digit characters can be valid Python code in Python3? ..... More

Print this item

  choosing keyword argument names
Posted by: Skaperen - May-06-2024, 11:31 PM - Forum: News and Discussions - Replies (2)

keyword argument names are going to be part of an API a (possible set of) function(s) will have. it would be good to choose a name that has some mean..... More

Print this item

  Error on first Python launch
Posted by: garryp4 - May-06-2024, 09:19 PM - Forum: General Coding Help - Replies (5)

I just installed Python 3.12 and get errors in the in the Command Prompt window when launching.

Here is a cut / paste:

Microsoft Windows [Versio..... More

Print this item

  How can you prevent Qt from displaying scrollbars where none are configured?
Posted by: Batucada - May-06-2024, 01:45 PM - Forum: GUI - Replies (4)

Whenever companies try to re-invent the egg-laying, woolly pig, the result is always something terrible. The company Qt has been a thorn in my side fo..... More

Print this item

  How to generate double arrays by two lists using np.zero
Posted by: Safinazsalem - May-06-2024, 01:21 PM - Forum: Homework - Replies (4)

I have these two lists:

X=np.arange(0,50,0.1)
Y=np.arange(10,20,1)

How to generate a doubles array from these two lists by `np.zeros_like()..... More

Print this item

  How to make a double loop to evaluate this triple integral
Posted by: Safinazsalem - May-06-2024, 10:12 AM - Forum: Data Science - Replies (1)

I have a function f(t1,t2,t3, a,k) where I make a triple integral over t1,t2,t3 and make a loop on the value of the variable "k"

-The integrati..... More

Print this item

Exclamation Multi-Threaded Camera Feed issue
Posted by: Khajababa69 - May-05-2024, 09:41 PM - Forum: General Coding Help - No Replies

I have written a python code, for feeding multiple cameras using opencv and websockets ( not socket io ).

The first segment of the code consists of..... More

Print this item

  Keep getting "SyntaxError: incomplete input" but can't see why.
Posted by: Pedroski55 - May-05-2024, 05:26 PM - Forum: General Coding Help - Replies (3)

I am using Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]

I have this file, compiler2.py shown below, from ..... More

Print this item

Star [HELP] The Application of Deep Neural Networks
Posted by: MistyhV1 - May-05-2024, 02:22 PM - Forum: Data Science - No Replies

Hello everyone,

I'm currently working on a regression model to predict financial asset returns, building upon the research by Welch and Goyal and t..... More


Attached Files

.csv   chars60_summary.csv (Size: 4.44 KB / Downloads: 0)
Print this item

  how to: explicitly select the grouping columns after groupby
Posted by: sawtooth500 - May-05-2024, 03:01 AM - Forum: General Coding Help - No Replies

backtestdf_complete.groupby(['b_index', 'sample_dur']).apply(day_test)
That bit of code is throwing me:

[output]
/Volumes/..... More

Print this item

  Learning process
Posted by: Butiournin1976 - May-04-2024, 07:42 PM - Forum: Bar - Replies (2)

Do you think that casino gaming can be a teacher? Have you ever experienced mistakes or failures in a game that taught you valuable lessons?

Print this item

  Suggestion on how to speed up this code?
Posted by: sawtooth500 - May-04-2024, 05:52 PM - Forum: General Coding Help - Replies (1)

[python]
tester_list = []
def day_test(df_row):
day_start_time = time.time()
tester = completedf[(completedf['date'] == unique_dates[df_ro..... More

Print this item

  Method returning None
Posted by: husksedgier - May-04-2024, 11:12 AM - Forum: General Coding Help - Replies (2)

[python]
class Employee:
no_of_employees = 0
raise_amount = 1.04

def __init__(self, first, last, pay):
self.first = first
..... More

Print this item

  Joblib worker error
Posted by: sawtooth500 - May-03-2024, 05:30 PM - Forum: General Coding Help - Replies (1)

I'm using Joblib for parralelization.

Here is my call to joblib:

[python]backtestdf_list = Parallel(n_jobs = coremax)(delayed(do_backtest)(back..... More

Print this item

  Flask role-based authorization
Posted by: erdemath - May-03-2024, 12:39 PM - Forum: Web Scraping & Web Development - Replies (13)

I am working on a script about role-based authorization by using Flask. I am trying to run by gunicorn on Linux Ubuntu 18.02. However, every time I ca..... More

Print this item

  Calculating Average with Error Handling
Posted by: mikasa - May-03-2024, 08:45 AM - Forum: General Coding Help - Replies (7)

I'm trying to write a Python program to calculate the average of a list of numbers, but I'm getting an error message: "TypeError: unsupported operand ..... More

Print this item

  World Clock syntax error
Posted by: OscarBoots - May-03-2024, 03:37 AM - Forum: General Coding Help - Replies (1)

Hi Forum,
I'm using tis code to create a World clock for 4 Countries.
I've copied the code and understand the logic, but i must have made an error a..... More

Print this item

  questions about storage
Posted by: PhantomMouse - May-02-2024, 09:02 PM - Forum: Game Development - Replies (1)

I'm gearing up to make a CCRPG in Python. The characters will be point bought. The starting points for a level 1 character is 100 points. Each leve..... More

Print this item

Information Do regular expressions still need raw strings?
Posted by: bobmon - May-02-2024, 03:43 PM - Forum: General Coding Help - Replies (3)

Hello everyone (1st post!)

When I started using regular expressions back in Python 2, it seemed that best practice was to use raw strings in order ..... More

Print this item

  Connecting to Remote Server to read contents of a file
Posted by: ChaitanyaSharma - May-02-2024, 01:42 PM - Forum: General Coding Help - Replies (1)

I want to get files which are kept on a remote server and can be connected using RDP. however, the port opened is 3389 instead of default port 22. Wh..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  IP address for users 7 hours ago Robots Ruth_Hernandez Networking
  Merge video with subtitle... 9 hours ago Pavel_47 OtiliaGen General Codin...
  Opencv findContours Q Yesterday, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
Most views
  The best Prog... 580458
  Tutorial Requ... 519857
  Web Scraping ... 442794
  Newbie with P... 387004
  New Users Int... 386703
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
JulioLet Today
aellatsz9602 Yesterday
cruisesfares Yesterday
azam Yesterday
zcharlesoogleto9533 Yesterday

User Panel Messages

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