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,237
» Latest member: alexmaarley8855
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

Online Users
There are currently 44 online users.
» 1 Member(s) | 39 Guest(s)
Bing, Apple, Google, kshahzad1985

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 4
» Views: 91
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 95
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 70
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 106
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,065
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,364
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,555
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 186
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,196
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,442

 
  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

  wrapping c++ library
Posted by: JESuh - Jun-16-2022, 05:56 AM - Forum: General Coding Help - Replies (2)

Hello,

I want to use some c++ library in python code.
I used scipy dsp(digital signal processing) filter until now, but it was too slow and this p..... More

Print this item

  print statements without ()
Posted by: petec - Jun-16-2022, 03:58 AM - Forum: General Coding Help - Replies (7)

I have been findiing sites that include examples that have print ststements that don't use (), they use "".
When I try to execute these examples they..... More

Print this item

  generators with errors
Posted by: Skaperen - Jun-15-2022, 10:47 PM - Forum: News and Discussions - Replies (1)

normally a generator initially returns a reference to an instance of that generator which is holding specific parameters and/or data it needs to do it..... More

Print this item

  Pandas dataframe indexing
Posted by: pythonNovice - Jun-15-2022, 08:51 PM - Forum: Homework - Replies (1)

I am new to python and have decided to take a self-paced free course. i attempting to generate a scatter plot for "price" vs "area" in the state of "R..... More


Attached Files

Thumbnail(s)
   
Print this item

  Can a program execute code in iPython shell and get result?
Posted by: deanhystad - Jun-15-2022, 08:44 PM - Forum: General Coding Help - Replies (3)

I am playing around with iPython magic commands. I am trying to write a command to "enter" an object. When the user types:
[python]ENTER expression[..... More

Print this item

  \n not working
Posted by: WouldWerker - Jun-15-2022, 07:48 PM - Forum: General Coding Help - Replies (4)

Why does the following code work in my CLI, but not on my local Apache web server?

[python]#!C:\Python310\python.exe
print ("Content-type: text/ht..... More

Print this item

  An idiotic problem on Python lists on HackerRank
Posted by: anata2047 - Jun-15-2022, 06:32 PM - Forum: Homework - Replies (4)

I found the hackerrank.com, where you can solve tasks and use whatever tutorials for this.
There's one problem on Python lists, which seems idiotic an..... More

Print this item

  python wheel file
Posted by: Led_Zeppelin - Jun-15-2022, 01:07 PM - Forum: General Coding Help - Replies (1)

I am trying to install python 3.7 or less in my virtual env. via pip or conda. But it says it cannot find the version I want and aborts the install. ..... More

Print this item

  __getitem__ Error
Posted by: stahorse - Jun-15-2022, 07:33 AM - Forum: General Coding Help - Replies (4)

Hi,

I have this code below:

[python]import configparser
import graph

def main():
# print('Python Graph Tutorial\n')

# Load setti..... More

Print this item

  Passing string functions as arguments
Posted by: Clunk_Head - Jun-15-2022, 04:44 AM - Forum: General Coding Help - Replies (3)

I want to pass string functions like string.upper into another function as a parameter, there to be called as a function.
A simplified example:
[pyt..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 1 hour ago Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [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
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578684
  Tutorial Requ... 509128
  Web Scraping ... 441840
  Newbie with P... 385793
  New Users Int... 375065
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
alexmaarley8855 Yesterday
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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