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,389
» Latest member: atalieyandext4063
» Forum threads: 38,821
» Forum posts: 176,018

Full Statistics

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

Latest Threads
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
8 hours ago
» Replies: 1
» Views: 46
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
10 hours ago
» Replies: 9
» Views: 224
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,063
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,890
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 136
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 80
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 144
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,294
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 107
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 755

 
  Treeview heading event detect.
Posted by: water - Apr-10-2022, 07:44 PM - Forum: GUI - Replies (1)

I try to detect which column of Treeview heading clicked, like below:

[python]
from tkinter import Tk, ttk

def click_test(event):
region = tr..... More

Print this item

  kill a thread
Posted by: Skaperen - Apr-10-2022, 07:17 PM - Forum: News and Discussions - Replies (9)

is there a way to kill a thread that is waiting for something (it can't check a flag)? the only answers i find are to check a flag.

Print this item

  SMA (simple moving avg) Not receiving Data (stock prices).
Posted by: gdbengo - Apr-10-2022, 06:31 PM - Forum: General Coding Help - Replies (2)

Hello All!
I'm using historical stock prices for which I am using to calculate the SMA, but the SMA returns "None". Could you help figure out why my ..... More

Print this item

  How do I remove spurious "." from a string?
Posted by: Zuhan - Apr-10-2022, 05:50 PM - Forum: General Coding Help - Replies (7)

The goal is to remove erroneous . from a string, i.e. to go from this:

"I a.m so pl.ea.sed to me.et y.ou. I ho.pe .tha.t th.is is t.he st.a.rt of a..... More

Print this item

  How to read python shortcut target profile directory of Chrome Ink file
Posted by: sunny9495 - Apr-10-2022, 04:53 PM - Forum: General Coding Help - Replies (1)

Hi,

Iam trying to read the target profile directory of Chrome Ink shortcut file.

I use the following code

[python]
import win32com.client
..... More

Print this item

  Visual Studio Code Intellisense for Imported Modules Not Working
Posted by: hockinsk - Apr-10-2022, 01:54 PM - Forum: General Coding Help - Replies (1)

New to the forum and Python and struggling to search with the right terminology to fix this s issue or if it's possible. When I install a custom modul..... More

Print this item

  scheduling and timining issues using mqtt and tkinter
Posted by: kiko4590 - Apr-10-2022, 10:35 AM - Forum: GUI - Replies (2)

Please be patient with me as I am a newbie inpython and I really need your help. I have a custom GUI created in tkinter using Python3.7 on Raspbian (f..... More

Print this item

  Current Project
Posted by: menator01 - Apr-10-2022, 08:26 AM - Forum: Code sharing - Replies (3)

I like the post from here and thought I would give it a try using tkinter.
Only got a basic text ..... More

Print this item

  formatting float like int for whole values
Posted by: Skaperen - Apr-10-2022, 04:55 AM - Forum: General Coding Help - Replies (8)

i know i have seen this before but now that i have a use case, i can't find it.

Output:
>>> foo(3.25) '3.25' >>> foo(4.0) '4' >>>
..... More

Print this item

  what is being tested with this while ?
Posted by: atexit8 - Apr-09-2022, 06:04 PM - Forum: General Coding Help - Replies (7)

I am new to Python but not other programming languages.

What is the condition being tested for in the while loop in the following snippet.
..... More

Print this item

  Os command output in variable shows wrong value
Posted by: paulo79 - Apr-09-2022, 03:38 PM - Forum: General Coding Help - Replies (2)

I have this :

v_num_distinct_phy_disks_in_cells=os.system('cat /tmp/p_count_num_phy_disks_all_cell | sort -u | wc -l')
The con..... More

Print this item

Question Python and Power BI Desktop
Posted by: dangermaus33 - Apr-09-2022, 03:27 PM - Forum: General Coding Help - Replies (1)

I want to use Python to automate tasks in Power BI Desktop (i.e. open a Power BI Desktop workbook, filter a report, save a workbook, publish a workboo..... More

Print this item

  Extractig an score is not there
Posted by: jrotaetxe - Apr-09-2022, 03:09 PM - Forum: Web Scraping & Web Development - Replies (4)

Hello.
First of all, thank you in advance anyone who tries to help. I realise this will be not the smartest question ever, but need help as I have no..... More

Print this item

  unpack dict
Posted by: menator01 - Apr-09-2022, 02:18 PM - Forum: General Coding Help - Replies (1)

Giving the following example:
How can one unpack the dict

Current output:
[output]Class: Wizard
NAME Ralph
AGE 20
SPELLS {'fireball': 10, 'fir..... More

Print this item

  How to map by time stamp and name
Posted by: SriRajesh - Apr-09-2022, 12:49 PM - Forum: General Coding Help - No Replies

Hi,
I have two data frames of different size. I want to map name in df1 to in df2 name & time stamp.

There are same name but different time stamp..... More

Print this item

  Problem with "Number List" problem on HackerRank
Posted by: Pnerd - Apr-09-2022, 12:24 AM - Forum: General Coding Help - Replies (5)

I'm trying to solve the Number List problem from HackerRank

Here's what I did ..... More

Print this item

  Regex Expression With Code Query In Pandas
Posted by: eddywinch82 - Apr-08-2022, 09:06 PM - Forum: General Coding Help - Replies (8)

Hi there,

I have the following Part of a Python Code in Pandas :-

[python]for i,row in temp_df.iterrows():
text = row[1]
text=text.replace('..... More

Print this item

  Avoid third party functions to wrote my python code into system debug-log?
Posted by: mark - Apr-08-2022, 08:41 PM - Forum: General Coding Help - Replies (9)

I already asked this on stackoverflow, i will here as well.

I'm not sure how exactly to explain this question because my english is no so god. But ..... More

Print this item

  Transposition Cipher Issues
Posted by: beginner_geek07 - Apr-08-2022, 07:44 PM - Forum: General Coding Help - No Replies

I am recently new to python and I have been given the task to create a function that uses transposition cipher to encrypt and decrypt a user-input mes..... More

Print this item

  SOLVED variable as tuple name
Posted by: krayon70 - Apr-08-2022, 06:04 PM - Forum: General Coding Help - Replies (7)

Hi all,
I'm newbie in python coding.
Can somebody help me... i've search for a solution without success...
The problem is in the iomage...
Thanks...... More


Attached Files

Thumbnail(s)
   
Print this item

  meaning of -> syntax in function definition
Posted by: DrakeSoft - Apr-08-2022, 03:30 PM - Forum: General Coding Help - Replies (5)

Hi,

I came across the following function:

[python]
def getWords(self) -> list[str]:
with open(self.word_list_path, "r") as f:
wo..... More

Print this item

  Cursor Variable inside Another Cursor . CX_ORacle
Posted by: paulo79 - Apr-08-2022, 02:41 PM - Forum: General Coding Help - Replies (1)

Hi all,

I have 3 cursors, want to pass values from first and second on third cursor query as below.



[python]import cx_Oracle as oracledb
..... More

Print this item

  saml2 idp sso authentication
Posted by: tiagome - Apr-08-2022, 11:09 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi guys, would you be able to help me with how I can connect to an website using the authentication above? I have been looking for examples in the int..... More

Print this item

  How do the variables work?
Posted by: Oshadha - Apr-08-2022, 05:47 AM - Forum: General Coding Help - Replies (4)

Here's the snippet;
[python]
oneday = [20.00, 12.00, 16.00, 60.00, 15.00]
twoday = [30.00, 18.00, 24.00, 90.00, 22.50]

vdays = 1
ttype = 0

g..... More

Print this item

  Can someone explain this small snippet of code like I am a 5 year old?
Posted by: PythonNPC - Apr-07-2022, 07:40 PM - Forum: General Coding Help - Replies (3)

Hello everyone,

I have been detached from Python for quite a while now, can someone explain this code to me as if I am a 5 year old?


[python]
print..... More

Print this item

  running a TensorFlow program
Posted by: Led_Zeppelin - Apr-07-2022, 06:33 PM - Forum: General Coding Help - No Replies

I am not sure if I am at the correct forum for this. I am quite new to TensorFlow. I have created and activate TensorFlow environment. I am using the ..... More

Print this item

  Is it possible to write a python script to block twitter feeds?
Posted by: cubangt - Apr-07-2022, 04:14 PM - Forum: General Coding Help - No Replies

So i noticed lately that im seeing more and more tweets on my twitter account from users that follow the same accounts i follow.. and since they respo..... More

Print this item

  <= not supported but I already use int as an input
Posted by: vonits23 - Apr-07-2022, 02:12 PM - Forum: Homework - Replies (2)

Here's my code.
[python]userlist = "Angelo","Luigi","Russell"
userlist2 = "Von", "Enzo", "R-Cel"

#date_exp = '4-8-2032'

#date = datetime.strpt..... More

Print this item

  Trouble with saving openpyxl filename
Posted by: fjbianchi93 - Apr-07-2022, 01:50 PM - Forum: General Coding Help - Replies (4)

Hello all,

I am working to automate the creation of network diagrams using python/openpyxl. The script I have is working for the most part, but one..... More

Print this item

  Query output in Tuple
Posted by: paulo79 - Apr-07-2022, 12:13 PM - Forum: General Coding Help - Replies (2)

Hi all, I have this wuery output that I want to write to a text file. But it is writeen with "(" and "'" and I want it clear.

From database I have..... More

Print this item

  what is wrong with my code
Posted by: 53535 - Apr-07-2022, 10:29 AM - Forum: Homework - Replies (4)

[python]
import sqlite3
id1 = input('Enter the book id: ')
conn = sqlite3.connect("KJV+.SQLite3")
c = conn.cursor()
c.execute("select * from vers..... More

Print this item

  how to use variables when open a sqlite database?
Posted by: 53535 - Apr-07-2022, 08:29 AM - Forum: General Coding Help - Replies (1)

this is my code

[python]import sqlite3

conn = sqlite3.connect("KJV+.SQLite3")
c = conn.cursor()


while True:
b_id = input('Enter the ..... More

Print this item

  Migrating Selenium from Windows 7 to 10
Posted by: gw1500se - Apr-07-2022, 05:28 AM - Forum: Web Scraping & Web Development - Replies (11)

I am a bit confused about my migration problem. Some Selenium libraries have been deprecated but I cannot figure out how to make the appropriate chang..... More

Print this item

  Print Error
Posted by: DaveG - Apr-07-2022, 01:08 AM - Forum: General Coding Help - Replies (1)

Could somebody please tell me why the variable 'collapse_steps' is not returned in the variable 'collapse_times'?

[python]collapse_duration = 60.0 ..... More

Print this item

  If then statement help
Posted by: standenman - Apr-06-2022, 10:14 PM - Forum: General Coding Help - Replies (1)

I am new to coding and trying to figure out a way to code in python for a decision tree that is long and complicated. It is the logic behind a webfor..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to Integrate External... 8 hours ago finallen321 noisefloor General Codin...
  Calling python from anoth... 10 hours ago eedjsa eedjsa General Codin...
  IP address for users Yesterday, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... Yesterday, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
Most views
  The best Prog... 580359
  Tutorial Requ... 519049
  Web Scraping ... 442771
  Newbie with P... 386953
  New Users Int... 386240
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
atalieyandext4063 Yesterday
finallen321 Yesterday
DTECHSYSTEM Yesterday
zashleyfracesz3221 Yesterday
itx_sumeet Yesterday

User Panel Messages

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