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,247
» Latest member: Kacper
» Forum threads: 38,779
» Forum posts: 175,813

Full Statistics

Online Users
There are currently 52 online users.
» 0 Member(s) | 43 Guest(s)
Bing, Google, Mojeek, Facebook, Apple

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
Today, 10:18 AM
» Replies: 1
» Views: 55
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Today, 09:52 AM
» Replies: 11
» Views: 266
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Today, 09:41 AM
» Replies: 3
» Views: 108
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Today, 05:07 AM
» Replies: 5
» Views: 236
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 92
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,602
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 190
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 174
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,918
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,410

 
  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

Brick looking for a Coding Partner
Posted by: sahorier - May-01-2024, 08:28 AM - Forum: Bar - Replies (1)

I am a new learner. Now I am learning Python. But I think having a coding partner boosts learning interest. Now I am looking for a coding partner with..... More

Print this item

  Excel isnt working properly after python function is started
Posted by: IchNar - May-01-2024, 06:24 AM - Forum: General Coding Help - Replies (2)

I have a Python application that can create a graph based on input that the user enters into a form(GUI) that is created via Tkinter. This application..... More

Print this item

  Button to +1 in text box everytime it's clicked
Posted by: martyloo - May-01-2024, 12:24 AM - Forum: GUI - Replies (1)

Hello I have the following code that I want it to start counting from 0 adding 1 every time "pushbutton" is pressed and the value to be shown in "text..... More

Print this item

  Strange behavior list of list
Posted by: mmhmjanssen - Apr-30-2024, 05:13 PM - Forum: General Coding Help - Replies (3)

You can initialise a list containing 3 zeroes as follows:
mylist = 3*[0]

If you initialise a list containing 4 of such lists as follows:
mylist =..... More

Print this item

  two functions working in a strange way
Posted by: zapad - Apr-30-2024, 11:26 AM - Forum: General Coding Help - Replies (3)

[python]I am meeting a problem with 2 functions
The 1st one
the first function job: clean a string and
at the end, it calls the function def pi_dig..... More

Print this item

  How can I print from within actor(func) ??
Posted by: Pedroski55 - Apr-30-2024, 07:51 AM - Forum: General Coding Help - Replies (2)

I have the following example from here.

To help me understand what is going on, I like to put pri..... More

Print this item

  Python editor that will SFTP automatically on save
Posted by: sawtooth500 - Apr-29-2024, 10:15 PM - Forum: General Coding Help - Replies (1)

Can anyone recommend a python editor for Windows that will automatically upload my file to the server upon save via SFTP? I prefer a minimalist editor..... More

Print this item

Question Convert UTC now() to local time to compare to a strptime()
Posted by: Calab - Apr-29-2024, 04:56 PM - Forum: General Coding Help - Replies (2)

I have a string that contains a local time "2024-12-31 23:59:59". The local time is "America/Edmonton".

The time zone on my machine is UTC, so date..... More

Print this item

  PayrollSystem with file handling
Posted by: nikadry1 - Apr-29-2024, 01:16 PM - Forum: Homework - Replies (1)

I have a problem in exercise. I tried ai, to solve it but the issue didn't go away. Here you can find my code, expected output and my output. I always..... More

Print this item

  Urgent:help about prediction size
Posted by: kzbn - Apr-29-2024, 10:32 AM - Forum: Data Science - Replies (5)

Hi all,
I'm a bit new to pyhton. In my jupyter lab code, I'm working on time series project. The code below doesn't give last 2 prediction from test ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Visualizing musician chart performance and ranking using pandas and matplotlib
Posted by: Drone4four - Apr-28-2024, 05:26 PM - Forum: Data Science - Replies (5)

I am enrolled in a not for school credit Udemy course by Colt Steele on data anl[url=https://python-forum.io/thread-42047.html]..... More


Attached Files

Thumbnail(s)
       
Print this item

  [SOLVED] Loop through directories and files one level down?
Posted by: Winfried - Apr-28-2024, 01:10 PM - Forum: General Coding Help - Replies (3)

Hello,

Google didn't help.

On Windows, I need to loop through the directories one level below the start directory, and through all the files in ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding Today, 10:18 lary_p Larz60+ Homework
  [Tkinter] I’m building a ... Today, 09:52 tsgiannis tsgiannis GUI
  Help with Serial.write in... Today, 09:41 racingsubby Larz60+ General Codin...
  Backward compatibility qu... Today, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
Most views
  The best Prog... 578805
  Tutorial Requ... 509764
  Web Scraping ... 441908
  Newbie with P... 385899
  New Users Int... 375918
Most reputation
buran 581
snippsat 510
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Kacper Today
isla123456 Today
vibrometro Today
thebigback Yesterday
dimitriwati Yesterday

User Panel Messages

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