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,248
» Latest member: playguypt42
» Forum threads: 38,779
» Forum posts: 175,814

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 44 Guest(s)
Bing, Google, AOL

Latest Threads
tools
Forum: Bar
Last Post: playguypt42
14 minutes ago
» Replies: 2
» Views: 1,662
New to python and coding
Forum: Homework
Last Post: Larz60+
Yesterday, 10:18 AM
» Replies: 1
» Views: 60
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 09:52 AM
» Replies: 11
» Views: 271
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 09:41 AM
» Replies: 3
» Views: 109
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Yesterday, 05:07 AM
» Replies: 5
» Views: 246
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 94
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,605
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 193
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 177
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,950

 
  bleak library RuntimeError: This event loop is already running
Posted by: alice93 - Sep-29-2021, 03:39 PM - Forum: General Coding Help - Replies (3)

Hello,

I would like to use Bleak library to read the datas from an Arduino nano 33 BLE sense.
I am a beginner so I am trying to do it step by st..... More

Print this item

  Downloading images from webpages
Posted by: H84Gabor - Sep-29-2021, 10:32 AM - Forum: General Coding Help - Replies (2)

Hi all,

I have thousands of images to download that I need to automate. I tried a number of solutions I found on the internet, but they all produce..... More

Print this item

  Juypter Notebook_Library_keras.util.
Posted by: dackley27 - Sep-28-2021, 06:21 PM - Forum: General Coding Help - No Replies

Greetings!
In loading a particular library from keras.util in Juypter, the to_categorical import step throws an error.
Why is this happening and h..... More

Print this item

  I am trying to reverse a string using loop
Posted by: codinglearner - Sep-28-2021, 12:09 PM - Forum: General Coding Help - Replies (4)

Hi, I recently started learning python, I read this blog and trying to implementing it.

I am getting stuck, I can't use [inline]".join(reversed(str..... More

Print this item

  Print first day of the week as string in date format
Posted by: MyerzzD - Sep-28-2021, 11:34 AM - Forum: General Coding Help - Replies (2)

Hey guys, I'm new to Python and I'm struggling with getting the beginning of the week as a string.

[python]from apiclient.discovery import build
..... More

Print this item

  Please, prompt open data repositories
Posted by: AlekseyPython - Sep-28-2021, 11:11 AM - Forum: Data Science - Replies (4)

To improve model predictions, I sometimes add features from open sources. Unfortunately, now I have to googling to find them. For example, now I need ..... More

Print this item

  name 'x' is not defined
Posted by: dolev28 - Sep-28-2021, 09:40 AM - Forum: General Coding Help - Replies (2)

hi,
I keep getting errors regarding variable definition.
I did defined the variable, yet the visual studio still getting the error:
[error]Exceptio..... More

Print this item

  How to find the impact of each of the correlated features?
Posted by: AlekseyPython - Sep-28-2021, 09:05 AM - Forum: Data Science - No Replies

I have two features that have a strong correlation (> 0.7). Because of this, it's not clear, which of them has a stronger influence on the result: dur..... More

Print this item

  adding a delay on end
Posted by: Daz2264 - Sep-28-2021, 07:56 AM - Forum: General Coding Help - Replies (6)

Noob here.

I've been trying to set up a simple code to operate two relays.
Relay 1 is to turn on a router.
Relay 2 is to turn on a vacuum.
This ..... More

Print this item

  How to pass list of values to a API request URL
Posted by: chetansaip99 - Sep-28-2021, 07:37 AM - Forum: General Coding Help - No Replies

In the below script, I'm pulling data from level opportunity api, take contact from opportunity and pass it to level contact api and get all the field..... More

Print this item

Exclamation question about input, while loop, then print
Posted by: jamie_01 - Sep-28-2021, 06:08 AM - Forum: General Coding Help - Replies (5)

[code]
#!/usr/bin/python3

'''
name #1 : april
name #2 : brett
name #3 : susan


>> create list
'''

count = 1
while (count <= 3):
n..... More

Print this item

  Problem in Regex Expression
Posted by: shantanu97 - Sep-28-2021, 03:29 AM - Forum: General Coding Help - Replies (2)

I have file where I want to replace the particular row when a particular thing(string) matches with semicolon. If Equipment onsite is null/nothing the..... More


Attached Files

Thumbnail(s)
   

.csv   TestEquipmentOnsite.csv (Size: 204 bytes / Downloads: 343)
Print this item

  Basic Inheritance, Why Use init
Posted by: udinjelek - Sep-28-2021, 02:59 AM - Forum: General Coding Help - Replies (5)

I'm new in Programing Language.

in here Bird and Cat are inheritance from Animal,
- Bird use __init__ and super
- Cat use nothing

but both ha..... More

Print this item

  Show HTML in Python application and handle click
Posted by: SamHobbs - Sep-28-2021, 12:14 AM - Forum: Web Scraping & Web Development - Replies (2)

I know how to do this using C#. C# has a WebBrowser class and later classes.

I want to show a HTML file in a Python application, not in a browser (no..... More

Print this item

  How does this generator work?
Posted by: JgKSuperstar - Sep-27-2021, 09:00 PM - Forum: General Coding Help - Replies (2)

code = "F9E56d"

rgb = tuple(int(code[i:i+2], 16) for i in (0, 2, 4))
Hi, I don't quite understand the logic of this code.
Can ..... More

Print this item

  How to clean the dataset? (avoid semi colons)
Posted by: lulu43366 - Sep-27-2021, 08:27 PM - Forum: General Coding Help - Replies (5)

Good morning to the community.
I would like to know how to clean the dataset. I don'yt know if my excel sheet "Santé3" is not well formatted or my co..... More


Attached Files

Thumbnail(s)
   

.csv   Santé3.csv (Size: 2.98 KB / Downloads: 369)
Print this item

  Passing Argument Errors
Posted by: cosmarchy - Sep-27-2021, 07:47 PM - Forum: General Coding Help - Replies (6)

I have a simple(ish) program which is supposed to start a thread which will start two periodic processes.

The roughed out code I'm using to get st..... More

Print this item

  Script stop work after 3 actioins - PLEASE WHERE IS THE PROBLEM?
Posted by: rondon442 - Sep-27-2021, 05:40 PM - Forum: General Coding Help - No Replies

Hey,

I have telegram msg script and he stop work after 3 sends..Please how can I slove this?

This is the code: https://pastebin.com/raw/C4Ney51k..... More

Print this item

  PyCharm One Interpreter for every file?
Posted by: muzikman - Sep-27-2021, 05:39 PM - Forum: General Coding Help - Replies (3)

Greetings,

I am trying out PyCharm and it is extremely frustrating. I am using it with Anaconda. Currently, each time I want to run a specific file..... More

Print this item

  Python OOP - two numbers
Posted by: ben1122 - Sep-27-2021, 05:30 PM - Forum: Homework - Replies (31)

Okay, basically, the question is in hebrew ( my land launage), so I am translating it for you in english, hopefully it will be a good translation:

Wr..... More

Print this item

  Idiomatic Python compared
Posted by: pitosalas - Sep-27-2021, 05:17 PM - Forum: News and Discussions - Replies (3)

I've been using python a lot after many years on Ruby. I've been indoctrinated on Ruby community opinions about code smells and idiomatic programing. ..... More

Print this item

  building a sudoku solver
Posted by: usercat123 - Sep-27-2021, 03:07 PM - Forum: General Coding Help - Replies (7)

Hi,

For some reason, a call to solve_sudoku() will not print the solved sudoku, "test" is not even printed and I don't see why. Can anyone help me?..... More

Print this item

  Printing file path of lift elements
Posted by: dyerlee91 - Sep-27-2021, 12:44 PM - Forum: Data Science - Replies (1)

Say I generated a list of all the files in a specific directory, but instead of just the file names, I wanted to print the complete file path for each..... More

Print this item

  Extract text based on postion and pattern
Posted by: guddu_12 - Sep-27-2021, 11:05 AM - Forum: General Coding Help - Replies (2)

Hello Gurus,

I am from sql background and i am working on one python requirement to extract text from the give string based on position and pattern..... More

Print this item

  Amortized analysis: Insertion in a list
Posted by: quazirfan - Sep-26-2021, 10:05 PM - Forum: General Coding Help - Replies (1)

I am trying to calculate the time is takes to append one element in a list. According to amortized analysis, it should be constant regardless how long..... More

Print this item

  Combining arrays into dict
Posted by: ebolisa - Sep-26-2021, 09:06 PM - Forum: General Coding Help - Replies (7)

Hi,

I'm trying to create a dictionay combining 2 arrays but I just cannot get it right.
The end result should be: EDITED: [python]{'in_ledS':0, 'in_l..... More

Print this item

  Descending order unique squares
Posted by: OmegaRed94 - Sep-26-2021, 07:15 AM - Forum: Homework - Replies (6)

Good day, Dear Pythonistas

I have the following problem: [b]Given a list, we should write a function that returns sorted in descending order unique ..... More

Print this item

  How can I loop PyAutoGUI's locateCenterOnScreen until the image is found?
Posted by: Tiel - Sep-26-2021, 07:06 AM - Forum: GUI - Replies (2)

I'm running Python 3.8.10 on Lubuntu 20.04 LTS.

How can I modify:
`a, b = pyautogui.locateCenterOnScreen('/home/image01.png', confidence=0.6, regi..... More

Print this item

  For Loop Returning 3 Results When There Should Be 1
Posted by: knight2000 - Sep-26-2021, 03:11 AM - Forum: General Coding Help - Replies (12)

Hi Guys,

After trying to figure this one out for over 8 hours, I thought I would get a fresh perspective from someone.

I'm practicing some web ..... More


Attached Files

.html   out_of_stock2.html (Size: 7.61 KB / Downloads: 420)
Print this item

  width of Unicode character
Posted by: Skaperen - Sep-26-2021, 02:16 AM - Forum: General Coding Help - Replies (6)

i have been print()ing Unicode characters (not on paper) from a script that wraps them in double quotes. this overlapped so i added an extra space af..... More

Print this item

  Solving periodic cot(x) function
Posted by: TheGoodTheBadTheUgly - Sep-25-2021, 10:16 PM - Forum: General Coding Help - Replies (1)

Hello everyone,

I am looking to know of it's possible in python to solve the following equation: cot(x)*a-x=0 where a is a constant. ..... More

Print this item

  deep learning python
Posted by: Stevedas - Sep-25-2021, 10:15 PM - Forum: General Coding Help - Replies (1)

WHat does x_train, y_train = zip(*train) mean? WHat does the "zip" and the asterick mean? How are they dividing X and Y ?

[python]for x in range(40..... More

Print this item

  AttributeError: 'NoneType' object has no attribute 'text'
Posted by: speedev - Sep-25-2021, 10:10 AM - Forum: GUI - Replies (9)

Hi,

[python] for x in secilen.indexes():
satirlar = '{ "row" : 2, "column": 2 }'
asdds = json.loads(satirlar)
..... More


Attached Files

Thumbnail(s)
   
Print this item

  [UnicodeEncodeError from smtplib]
Posted by: yoohooos - Sep-25-2021, 04:27 AM - Forum: General Coding Help - No Replies

[UnicodeEncodeError from smtplib] 'ascii' codec can't encode character '\u2019' in position 77: ordinal not in range(128)

I'm trying to send an ema..... More

Print this item

  problem writing dataframe to oracle
Posted by: aliyesami - Sep-25-2021, 12:38 AM - Forum: General Coding Help - Replies (4)

i have a simple csv file as follows :

Output:
1,'sami' 2.'john', 3,'mary' 4,'peter'
and i have a table [inline]test(id, name[/inline..... More


Attached Files

.txt   run_with_header_none.txt (Size: 3.35 KB / Downloads: 369)
.txt   run_withhout_header_none.txt (Size: 3.35 KB / Downloads: 354)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  tools 14 minutes ago lindabelmore playguypt42 Bar
  New to python and coding Yesterday, 10:18 lary_p Larz60+ Homework
  [Tkinter] I’m building a ... Yesterday, 09:52 tsgiannis tsgiannis GUI
  Help with Serial.write in... Yesterday, 09:41 racingsubby Larz60+ General Codin...
  Backward compatibility qu... Yesterday, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 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...
Most views
  The best Prog... 578808
  Tutorial Requ... 509789
  Web Scraping ... 441913
  Newbie with P... 385905
  New Users Int... 375950
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
playguypt42 Today
Kacper Yesterday
isla123456 Yesterday
vibrometro Yesterday
thebigback 11-10

User Panel Messages

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