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,235
» Latest member: Alfredd
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 43 online users.
» 0 Member(s) | 39 Guest(s)
Applebot, Bing, Google

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

 
  key error
Posted by: Led_Zeppelin - Aug-31-2022, 06:16 PM - Forum: General Coding Help - Replies (1)

The following code is not working and I believe it should.

[code]
q = df.loc[df2['machine_status']==0]['time_period']
p = df.loc[df2['machine_sta..... More


Attached Files

Thumbnail(s)
   
Print this item

  Python in Singularity Container on Ubuntu
Posted by: erdemath - Aug-31-2022, 02:17 PM - Forum: General Coding Help - No Replies

I have ubuntu 20.04 and downloaded singularity 3.10.2. I created a container wherein I need to download, install, run my python codes.
Here is the i..... More

Print this item

  export into excel, how to implement pandas into for-loop
Posted by: deneme2 - Aug-31-2022, 01:46 PM - Forum: General Coding Help - Replies (6)

Hello all,
I want to export json data file into excel in terms of loop code I wrote in the below.

football.json

[python]{
"results": [
{
..... More

Print this item

  Soup('A')
Posted by: new_coder_231013 - Aug-31-2022, 12:09 PM - Forum: Web Scraping & Web Development - Replies (5)

Hello,

I've been going through an introductory Python book that includes some material on web scraping using BeautifulSoup. My question is about th..... More

Print this item

  best way to embed passwords into scripts
Posted by: mikey6785 - Aug-30-2022, 10:41 PM - Forum: General Coding Help - Replies (3)

what is the best way to embed passwords in python scripts?
I am wanting to automate tasks that would typically require credentials.

I've been loo..... More

Print this item

  DS/ML - what is next?
Posted by: OmegaRed94 - Aug-30-2022, 06:23 PM - Forum: Data Science - Replies (1)

Good day, Dear DS/ML specialists/enthusiasts

I have read several DS/ML and Python books, passed additional online courses, participated in Kaggle...... More

Print this item

  Removal of items in .txt using python
Posted by: nanakochan - Aug-30-2022, 05:46 PM - Forum: General Coding Help - Replies (8)

Hi, I hv been self-learning Python on youtube videos. Today I visited the topic of file operation in which I would use Python to operate on notepad(tx..... More

Print this item

  Link implementation
Posted by: JonWayn - Aug-30-2022, 03:38 PM - Forum: Web Scraping & Web Development - Replies (4)

Total newbie here. For starters in my scraping coding, I am faced with 2 websites that implement their links differently. In one case, I can return al..... More

Print this item

  TypeError: string indices must be integers
Posted by: JonWayn - Aug-30-2022, 01:02 PM - Forum: General Coding Help - Replies (12)

given the code snippet:
[python]
i = 0

for key, value in quiz.items():
i += 1
print(f"Question {str(i)} : {key['question']}")
[/python..... More

Print this item

  swapping data in mongodb
Posted by: saisankalpj - Aug-30-2022, 12:42 PM - Forum: General Coding Help - No Replies

I have created a mongodb collection in python django.The collection name is audit_details and it consists of following data
[output]
_id:630e026211cb3..... More

Print this item

  Searching for nested items within the dictionary data structure
Posted by: rob101 - Aug-30-2022, 08:55 AM - Forum: Code Review - Replies (10)

I've been studying the dictionary data structure as I wanted to discover a way of searching for nested items, so this code is a demonstration of that ..... More

Print this item

  Python: re.findall to find multiple instances don't work but search worked
Posted by: Secret - Aug-30-2022, 06:52 AM - Forum: General Coding Help - Replies (1)

I want to find ALL instances of asked questions and the persons who asked them in the below text.

++++++++++++++++

26 Mr Kwek Hian Chuan Henry a..... More

Print this item

  Trying to find the fastest way to bulk extract from oracle
Posted by: python300 - Aug-30-2022, 06:07 AM - Forum: News and Discussions - Replies (2)

Hi all,
We are on RHEL 8, Oracle DB 12+ and Python 3.9
I am trying to find the fastest way to extract large data from Oracle DB to local Linux file..... More

Print this item

  Beginner Python Error
Posted by: ianmac88 - Aug-30-2022, 12:36 AM - Forum: General Coding Help - Replies (4)

Hello,

I am extremely new to programming/python and I have been watching thenewboston on YouTube going through his Python Programming playlist. In..... More

Print this item

  count certain task in task manager[solved]
Posted by: kucingkembar - Aug-29-2022, 03:27 PM - Forum: General Coding Help - Replies (2)

hi, sorry for my bad English
I creating a downloader to download multiple files at once using python,
I will not write details, this is the part:
[pyt..... More

Print this item

  Installing Modules
Posted by: PythonBorg - Aug-29-2022, 08:52 AM - Forum: General Coding Help - Replies (10)

Hi There,

Have installed the Markdown module into Python3 using PIP.
it install without a problem... but when i try to use it, Python does not re..... More

Print this item

  will this work
Posted by: AGM - Aug-29-2022, 08:37 AM - Forum: Homework - Replies (2)

i made this but i cant test it cause i am on a chromebook and the compiler i used wont work, i want this to give player_ones_hand
7 random cards
(b..... More

Print this item

  python -m sysconfig
Posted by: Skaperen - Aug-29-2022, 12:30 AM - Forum: News and Discussions - Replies (3)

i get this:
[output]
lt1a/forums/2 /home/forums 4> python -m sysconfig|fgrep userbase
userbase = "/home/forums/.local"
lt1a/forums/2 /home/forums..... More

Print this item

  MIME type
Posted by: Skaperen - Aug-28-2022, 11:37 PM - Forum: News and Discussions - Replies (2)

when might Python source code files get a real permanent MIME type, instead of temporary "text/x-python", such as perhaps "lang/python"?

Print this item

  Help Switching between keyboard/Mic input in my code
Posted by: Extra - Aug-28-2022, 08:56 PM - Forum: General Coding Help - Replies (1)

Hello,

I'm trying to get my voice assistant to be able to take user commands via Keyboard or Mic depending on what the user chooses.
Right now, it d..... More

Print this item

Star Python GUI - PyQt Containers and Layouts Explained
Posted by: panofish - Aug-28-2022, 07:29 PM - Forum: GUI - No Replies

Part 3 of my youtube series on Python Desktop GUI creation is out.
https://youtu.be/ejKel3ObLPc

This one c..... More

Print this item

  Text stacking on top of one another
Posted by: menator01 - Aug-28-2022, 02:44 PM - Forum: Game Development - Replies (5)

I've been playing around a bit with pygame and image buttons. When creating a button with the button class, I can't seem to get button text correct. I..... More

Print this item

  Help with bleak - how to send test to BLE device?
Posted by: korenron - Aug-28-2022, 10:53 AM - Forum: General Coding Help - Replies (1)

Hello,
I'm trying to send data to my BLE device - but can't seem to find hte right fundtion for it

this is what I have done so far:
[python]
o..... More

Print this item

  Made my First function.
Posted by: PythonBorg - Aug-28-2022, 10:33 AM - Forum: Code Review - Replies (7)

[python]
def my_fibonacci():
p = 0
c = 1
result = (p + c)
print(result,"",end = "")
while result < 5000:
p = c
c = result
result =..... More

Print this item

  Merge htm files with shutil library (TypeError: 'module' object is not callable)
Posted by: Melcu54 - Aug-28-2022, 07:00 AM - Forum: General Coding Help - Replies (7)

why is my code not working?

[python]import shutil

filenames = shutil('*.htm') # list of all .htm files in the directory

with open('output_f..... More

Print this item

  Use module docx to get text from a file with a table
Posted by: Pedroski55 - Aug-28-2022, 03:32 AM - Forum: General Coding Help - Replies (8)

I made a simple function to get text from .docx files. Works OK.

Now I have a file containing a text frame at the top, a little text and a big tabl..... More


Attached Files

.docx   table_Adverbs_ly.docx (Size: 7.32 KB / Downloads: 353)
Print this item

  pygame animated button with images
Posted by: menator01 - Aug-28-2022, 01:26 AM - Forum: Code sharing - Replies (1)

Example of using images and pygame for buttons. (did not do the callback function part).
Just hover and click animation. Hope it will help someone.
..... More

Print this item

  regex multi-line
Posted by: kucingkembar - Aug-27-2022, 05:11 PM - Forum: General Coding Help - Replies (6)

hi,
i have some page that "the content" do not have specific tag(<something><like><this>) except for the <HTML>,
so I can't use the soup to get the..... More

Print this item

  Is there a good tutorial on installing Python correctly on Windows?
Posted by: CynthiaMoore - Aug-27-2022, 11:19 AM - Forum: Tutorial Requests and Submissions - Replies (4)

I checked several websites discussing Python installation. Some talk about using a "virtual environment". Others do not.

Is there a good tutorial I..... More

Print this item

  Can't update label in new tk window, object has no attribute
Posted by: tompranks - Aug-27-2022, 09:24 AM - Forum: GUI - Replies (3)

Hi, I have this code but i get the error "object has no attribute".

[python]from tkinter import *

root = Tk()

root.geometry("300x300")

cou..... More


Attached Files

Thumbnail(s)
       
Print this item

  No "Post Thread" button
Posted by: CynthiaMoore - Aug-27-2022, 05:35 AM - Forum: Board - Replies (4)

I went to the Tutorials forum to see if there is a good tutorial on getting started with Python. When I selected the [i]Python Installation and Execut..... More

Print this item

  search is not finding documentation i want
Posted by: Skaperen - Aug-26-2022, 05:04 AM - Forum: GUI - Replies (1)

i am trying to search for documentation/tutorials/guides for Python3 GUI programming but am coming up basically empty. on python.org i was getting lo..... More

Print this item

  python read iperf log and parse throughput
Posted by: jacklee26 - Aug-26-2022, 05:03 AM - Forum: General Coding Help - Replies (4)

HI
i have a file which is iperf3's log file, I wish to get the Throughput value from the file.
I have written python code and would like to ask for..... More

Print this item

  C++ python embedding
Posted by: comarius - Aug-26-2022, 01:50 AM - Forum: General Coding Help - No Replies

I am looking for a good package / library to extend a C++ application with python scripting. I would need both ways calls, from python to C++ function..... More

Print this item

  -i option changes sys.path (removes leading empty string '')
Posted by: markanth - Aug-26-2022, 12:13 AM - Forum: General Coding Help - Replies (6)

I have an issue that I found very strange.

Why would invoking Python with '-i' option affect sys.path?

I have two aliases that I use to launch P..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 2 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 5 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 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... 578667
  Tutorial Requ... 509038
  Web Scraping ... 441833
  Newbie with P... 385779
  New Users Int... 375007
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
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday
ironwolfan7Dip Yesterday

User Panel Messages

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