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,516
» Latest member: MMartin71
» Forum threads: 38,584
» Forum posts: 174,837

Full Statistics

Online Users
There are currently 725 online users.
» 2 Member(s) | 719 Guest(s)
Google, Yandex, Bing, Baidu, MMartin71, Gribouillis

Latest Threads
Best way to pass data to ...
Forum: Game Development
Last Post: RogereK
9 hours ago
» Replies: 7
» Views: 5,084
Is Python used to make po...
Forum: Game Development
Last Post: RogereK
Yesterday, 04:17 AM
» Replies: 17
» Views: 31,766
Unequal values when added...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 12:24 AM
» Replies: 1
» Views: 196
Call CLI app with input?
Forum: General Coding Help
Last Post: snippsat
May-23-2025, 07:52 PM
» Replies: 5
» Views: 370
backtesting can't optimiz...
Forum: General Coding Help
Last Post: snippsat
May-23-2025, 07:46 PM
» Replies: 1
» Views: 146
Looking for ideas
Forum: Bar
Last Post: Larz60+
May-23-2025, 10:55 AM
» Replies: 2
» Views: 471
How to put my game loop i...
Forum: Game Development
Last Post: RogereK
May-23-2025, 12:35 AM
» Replies: 9
» Views: 2,704
Languages
Forum: General Coding Help
Last Post: Arush
May-22-2025, 06:51 PM
» Replies: 2
» Views: 270
Error on import: SyntaxEr...
Forum: General Coding Help
Last Post: Kiongi
May-21-2025, 07:49 AM
» Replies: 8
» Views: 21,463
Wish to write a code for ...
Forum: General Coding Help
Last Post: DeaD_EyE
May-21-2025, 06:08 AM
» Replies: 3
» Views: 678

 
  scaling
Posted by: DPaul - Jun-22-2022, 02:47 PM - Forum: GUI - Replies (7)

Hi ,
I have developed and installed an app with a Tkinter GUI .
I have made sure to detect the screen resolution of the user's PC (winfo_width and ..... More

Print this item

  [Hiring] Node.js / Python Engineer (Regular/Senior)
Posted by: jharp - Jun-22-2022, 12:18 PM - Forum: Jobs - Replies (2)

[HIRING][Zürich, Switzerland, Onsite / Remote]
🏢 nexoya ltd., based in Zürich 🇨🇭 is looking for a Node.js / Python Engineer (Regular/Senior)
⚙️ Tech u..... More

Print this item

  Creating Shortcuts with python
Posted by: Oshadha - Jun-22-2022, 11:03 AM - Forum: General Coding Help - Replies (2)

Is there a way for me to create a shortcut (.lnk) file using python. I searched everywhere, but found no answer that works :(

Print this item

  If statements and multiplication
Posted by: elroberto - Jun-22-2022, 10:32 AM - Forum: Homework - Replies (1)

My assignment is to get company name from the user, get the number of fiberoptic cable needed from the user, evaluate whether that number is greater t..... More

Print this item

  list from excel
Posted by: devilonline - Jun-22-2022, 02:09 AM - Forum: General Coding Help - Replies (4)

I
I'm trying to search from a excel file. I've make a convert to a dictionary but still didnt work

I want for example search id 1 and print name Char..... More

Print this item

  Need help (very... very new to python
Posted by: RWHockey13 - Jun-22-2022, 01:43 AM - Forum: General Coding Help - Replies (3)

So, I have this script below (single dashed line below). I want it to prompt for the file and it does. But rather than changes all the words to Upperc..... More

Print this item

  How to download a list of files from FTP?
Posted by: schnarkle - Jun-21-2022, 10:35 PM - Forum: General Coding Help - No Replies

Hi,

I need to download a list of files everyday. These files have the dates in the filenames and I need to pull from 1 - 7 days out.
I have the f..... More

Print this item

  hypothesis 6.46.2 requires python3.7 or later
Posted by: Anldra12 - Jun-21-2022, 05:56 PM - Forum: General Coding Help - Replies (6)

I run the code using charm crypto for a project, python3.6 and Ununtu18 which shows me an error indicating a hypothesis and exception error.
..... More

Print this item

  Server Folder Error : WinError5 Access Denied
Posted by: fioranosnake - Jun-21-2022, 01:36 PM - Forum: General Coding Help - Replies (1)

Hi,

One of our users has created a small Pycharm app on Server A (win 2012) to create new folders on a separate server Server B (win 2012) but when..... More

Print this item

  array change
Posted by: svm - Jun-21-2022, 01:19 PM - Forum: General Coding Help - Replies (6)

Hi,

can you help me to understand where I'm wrong in coding?
[python]
a = [] # define first array (future matrix)
arr = [] # define a second arr..... More

Print this item

  PEP 671 Syntax for late bound function default values
Posted by: stevendaprano - Jun-21-2022, 10:53 AM - Forum: News and Discussions - Replies (2)

PEP 671 proposes to introduce syntax to solve the "early binding gotcha" when mutable objects are used as..... More

Print this item

  switch between multiple monitors
Posted by: muhdaniyal252 - Jun-21-2022, 10:12 AM - Forum: General Coding Help - Replies (2)

Hello guys,

I want to know if there is any way where I can target a monitor attached to my system to execute an exe file.

For example:

1. I ..... More

Print this item

  Sending Whatsapp Message in the text file
Posted by: ebincharles869 - Jun-21-2022, 08:20 AM - Forum: General Coding Help - Replies (9)

Hello,

I am sending whatsapp message through python. Below is the code.

[python]import pywhatkit
pywhatkit.sendwhats_image("E9wnucCUpBpD1aizIUyLv6",..... More

Print this item

  Socket server problem
Posted by: H84Gabor - Jun-21-2022, 12:14 AM - Forum: Networking - No Replies

Hi all,

I've got a socket server with many clients and it all used to work fine. Just recently this receiving line:
RECEIVED_MESSAGE = CLIENT.recv..... More

Print this item

  QR Codes
Posted by: deep_logic - Jun-20-2022, 09:41 PM - Forum: General Coding Help - Replies (1)

Hi all,
I'm trying to generate qr codes in python. I have downloaded and did a pip install of qrcode on the pypi site.
The starter code on the site i..... More

Print this item

  how to join by stack multiple types in numpy arrays
Posted by: caro - Jun-20-2022, 04:11 PM - Forum: General Coding Help - Replies (1)

[python]import numpy as np

arr1 = np.array([1, 2, 3, 4, 5, 6, 7])
arr2 = np.array(['n', 'b', 'c', 'y', 'f', 'j', 'p'])

l = np.stack((arr1, arr2..... More

Print this item

  plt.bar on two different Y axis
Posted by: Menthix - Jun-20-2022, 03:32 PM - Forum: General Coding Help - Replies (1)

Hello,
I have this data set :
Age Var 1 Var 2
17-31 ans 19565 11178
32-44 ans 19757 24011
45-54 ans ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Separating unique, stable, samples using pandas
Posted by: keithpfio - Jun-20-2022, 03:22 PM - Forum: Data Science - Replies (1)

I'm using pandas to process a simple two column table that has a series of input and output integer data samples. Not all samples are useful, because ..... More

Print this item

  go over and search in numpy array faster
Posted by: caro - Jun-20-2022, 11:23 AM - Forum: General Coding Help - Replies (7)

hello,
my array looks like :

[[10,20,'1'],[10,50,'1'],[10,100,'1'],[10,30,'1'],[20,10,'1'],[10,60,'1'],[30,10,'1']

I would like to know how to retur..... More


Attached Files

Thumbnail(s)
   
Print this item

  Setting up new Python kernel for JupyterLab Desktop on M1 Mac
Posted by: daler6 - Jun-20-2022, 03:45 AM - Forum: General Coding Help - No Replies

I am trying to set up a Python kernel running the latest version of Python - 3.10.5 - to use within JupyterLab on my M1 MacMini. I have tried a variet..... More

Print this item

  check for duplicate file paths
Posted by: Skaperen - Jun-19-2022, 10:57 PM - Forum: News and Discussions - Replies (4)

i have a list of files that are expected to exist in the host system name space. i want to check it for duplicate references including hardlinks. a ..... More

Print this item

  replace sets of values in an array without using loops
Posted by: paul18fr - Jun-19-2022, 09:28 PM - Forum: Data Science - Replies (7)

Hi,

I've been thinking I've ever done this, but I do not remember how; in any way I do not understand the Type Error sine I'm using intergers: what..... More

Print this item

  Two text files, want to add a column value
Posted by: zxcv101 - Jun-19-2022, 03:21 PM - Forum: General Coding Help - Replies (8)

Hi guys, a basic question. I have two text files which contain data like the following. There will always be only two columns, the first being date/ti..... More


Attached Files

Thumbnail(s)
   
Print this item

  Reshaping a single column in to multiple column using Python
Posted by: sahar - Jun-19-2022, 10:45 AM - Forum: General Coding Help - Replies (7)

I have an excel file containing a single column (Row's number is not fixed). Using Python 3, I want to,

  1. Import my excel file/data in pytho..... More

Print this item

  max component length of file path name
Posted by: Skaperen - Jun-19-2022, 03:06 AM - Forum: News and Discussions - Replies (1)

i want to get the value of this host's maximum allowed length of a file path name component. for ext4 in Linux this value is 255. it i..... More

Print this item

  Using evdev for background script
Posted by: hotcocoa - Jun-18-2022, 09:46 PM - Forum: General Coding Help - Replies (1)

What I'm attempting to do is have a python script running in the background at all times that only takes input from one of the usb devices plugged int..... More

Print this item

  Pandas - error when running Pycharm, but works on cmd line
Posted by: zxcv101 - Jun-18-2022, 12:32 PM - Forum: General Coding Help - Replies (2)

I'm having problems running scripts that reference pandas when I use Pycharm, but when I run the python scripts on the command line, then it all work..... More


Attached Files

Thumbnail(s)
           
Print this item

  regex question
Posted by: DPaul - Jun-18-2022, 09:11 AM - Forum: General Coding Help - Replies (6)

Hi,
I'm not a regex hero, but I read everywhere it's fast and I should have a look into it.
I need a particular substitution that looks very much like..... More

Print this item

  python-docx regex: replace any word in docx text
Posted by: Tmagpy - Jun-18-2022, 08:24 AM - Forum: General Coding Help - Replies (4)

I'm working on a personal project where I can change any word I can find in the text:

[python]
def replace(input_file,key,value,Numberlist,output..... More

Print this item

  I have no clue what I am doing wrong here
Posted by: elroberto - Jun-18-2022, 05:52 AM - Forum: General Coding Help - Replies (4)

Code Version 1:
[python]message="Thank You for Choosing Robert's Fiberoptics! The One-Stop-Shop for all your fiberoptics needs!"
print(message)

..... More

Print this item

  Simple encoding code
Posted by: ebolisa - Jun-17-2022, 09:44 PM - Forum: General Coding Help - Replies (3)

Hi,

This simple encoding code converts text to ASCII and adds a one digit number to it. It seems to work ok, but while testing it, I noticed that i..... More

Print this item

  ValueError: Found input variables with inconsistent numbers of samples
Posted by: saoko - Jun-16-2022, 06:59 PM - Forum: General Coding Help - No Replies

I'm trying to write a bounding box regression training script with Keras and TensorFlow for object detection. I have a dataset of 3153 images (in jpg ..... More

Print this item

  Looping sent message with socket
Posted by: anastejzja - Jun-16-2022, 06:59 PM - Forum: Homework - Replies (1)

Hi, I'm almost finished with my project for university, but I'm having a really rough time with looping the message that is sent. I've tried doing it ..... More

Print this item

  Grid-EYE and Raspberry Pi to adafruit IO
Posted by: JLivingstonsg - Jun-16-2022, 01:23 PM - Forum: General Coding Help - No Replies

Hi.

Anyone know how to get people counter and x/y position data
https://www.hackster.io/64742/people-cou...-raspberry-..... More

Print this item

  client.get_all_tickers() Doesn't work
Posted by: gerald - Jun-16-2022, 07:44 AM - Forum: General Coding Help - Replies (2)

Hi everyone,

This line used to work without any problems: client.get_all_tickers()

But now all of a sudden it gives a Timeout exception.

Now ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [PyGame] Best way to pass... 9 hours ago Milosz RogereK Game Developm...
  Is Python used to make po... Yesterday, 04:17 ironsheep RogereK Game Developm...
  Unequal values when added... Yesterday, 00:24 Azdaghost deanhystad General Codin...
  Call CLI app with input? 05-23, 19:52 Winfried snippsat General Codin...
  backtesting can't optimiz... 05-23, 19:46 Running_Code snippsat General Codin...
  Looking for ideas 05-23, 10:55 Azdaghost Larz60+ Bar
  How to put my game loop i... 05-23, 00:35 temlotresid6 RogereK Game Developm...
  Languages 05-22, 18:51 Azdaghost Arush General Codin...
  Error on import: SyntaxEr... 05-21, 07:49 kirkwilliams2049 Kiongi General Codin...
  Wish to write a code for ... 05-21, 06:08 Hasan2025 DeaD_EyE General Codin...
  How can I write formatted... 05-20, 12:26 JohnJSal hanmen9527 General Codin...
Most views
  The best Prog... 568260
  Tutorial Requ... 468457
  Web Scraping ... 433046
  Newbie with P... 372007
  Thread remain... 344007
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+ 12053
buran 8171
snippsat 7328
deanhystad 6828
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
MMartin71 Today
lele2405 Today
ntalieyandextz4427 Today
Timpo Today
anitarani82 Today

User Panel Messages

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