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,440
» Latest member: latifayounes
» Forum threads: 38,551
» Forum posts: 174,698

Full Statistics

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

Latest Threads
Build Fast, Type-Safe API...
Forum: Tutorial Requests and Submissions
Last Post: Mido
2 hours ago
» Replies: 0
» Views: 42
Python script not working...
Forum: Web Scraping & Web Development
Last Post: noisefloor
5 hours ago
» Replies: 3
» Views: 167
How to understand object-...
Forum: General Coding Help
Last Post: noisefloor
5 hours ago
» Replies: 3
» Views: 219
Picamera2 commands betwee...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 07:39 PM
» Replies: 1
» Views: 194
PyVisa Query Command fail...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:58 PM
» Replies: 1
» Views: 185
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 03:46 PM
» Replies: 2
» Views: 173
[SOLVED] [Beautiful Soup]...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 03:43 PM
» Replies: 2
» Views: 292
CSV reader with PyQt6
Forum: Code sharing
Last Post: Axel_Erfurt
Yesterday, 11:38 AM
» Replies: 3
» Views: 211
where should DEFAULT_CIPH...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 07:00 AM
» Replies: 8
» Views: 424
what name to give to a ne...
Forum: News and Discussions
Last Post: Skaperen
Apr-30-2025, 09:39 PM
» Replies: 4
» Views: 222

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

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: 179)
.py   car_object_error_handling.py (Size: 1.38 KB / Downloads: 137)
.py   Car.py (Size: 1.19 KB / Downloads: 140)
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

  Filer and sort files by modification time in a directory
Posted by: tester_V - May-02-2024, 03:57 AM - Forum: General Coding Help - Replies (5)

Greetings!
I need to filter files by file names, sort by the last modification time and process them.
I got this code but it does not work.
[python..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Django] Build Fast, Type... 2 hours ago Mido Mido Tutorial Requ...
  Python script not working... 5 hours ago texwilson47 noisefloor Web Scraping ...
  How to understand object-... 5 hours ago snl_9527 noisefloor General Codin...
  Picamera2 commands betwee... Yesterday, 19:39 GigiG deanhystad General Codin...
  PyVisa Query Command fail... Yesterday, 16:58 dazz deanhystad General Codin...
  [SOLVED] [Beautiful Soup]... Yesterday, 15:46 Winfried Winfried General Codin...
  [SOLVED] [Beautiful Soup]... Yesterday, 15:43 Winfried Winfried General Codin...
  CSV reader with PyQt6 Yesterday, 11:38 suburbanprojects Axel_Erfurt Code sharing
  where should DEFAULT_CIPH... Yesterday, 07:00 Skaperen snippsat General Codin...
  what name to give to a ne... 04-30, 21:39 Skaperen Skaperen News and Disc...
  function arguments 04-30, 17:23 Curbie Curbie General Codin...
Most views
  The best Prog... 557515
  Tutorial Requ... 424753
  Web Scraping ... 422995
  Newbie with P... 351110
  Thread remain... 325027
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 325
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12036
buran 8165
snippsat 7324
deanhystad 6809
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
latifayounes Today
Mido Today
CarmelaAffow Today
AlexZolotov Yesterday
ekaintan1590 Yesterday

User Panel Messages

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