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,244
» Latest member: thebigback
» Forum threads: 38,778
» Forum posts: 175,804

Full Statistics

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

Latest Threads
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
33 minutes ago
» Replies: 2
» Views: 28
Backward compatibility qu...
Forum: News and Discussions
Last Post: yutaozhou
1 hour ago
» Replies: 4
» Views: 158
I’m building a Python Dat...
Forum: GUI
Last Post: Gribouillis
3 hours ago
» Replies: 6
» Views: 162
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Today, 05:37 AM
» Replies: 1
» Views: 69
Data Science
Forum: Data Science
Last Post: mamta25
Today, 05:27 AM
» Replies: 3
» Views: 2,584
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 157
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 150
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,481
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,390
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,587

 
  Problem with Selenium webdriver
Posted by: Fred - Jan-10-2022, 01:09 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello all,

I imported the selenium librery and the Chrome driver with the version compatible with the chrome browser

I try this simple code

f..... More

Print this item

  Scan for Bluetooth device
Posted by: korenron - Jan-10-2022, 01:06 PM - Forum: General Coding Help - No Replies

Hello ,
I'm trying to scan for bluetooth devices around me
I'm using this simple code I have found here ([python]https://geektechstuff.com/2020/06..... More

Print this item

  How to swap two numbers in fields in python
Posted by: Joni_Engr - Jan-10-2022, 08:26 AM - Forum: General Coding Help - Replies (5)

Hi,
I have two numbers written in the user field. I would like to swap these numbers in the fields when the swap button is pressed. I did a basic se..... More

Print this item

  How to solve this file handling issue?
Posted by: GiggsB - Jan-10-2022, 06:58 AM - Forum: General Coding Help - Replies (3)

Hi,

I am using the below code to store data on Raspberry Pi using UART whenever it receives any data. Raspberry Pi receives data continuously for 6..... More

Print this item

  PANDAS: DataFrame | Replace and others questions
Posted by: moduki1 - Jan-09-2022, 08:21 PM - Forum: Data Science - Replies (2)

Hello, i'm trying to create a script that parse the CSV.
This is what i got at moment.

[python]#### Importando arquivo CSV

import pandas as pd..... More

Print this item

  change item in column based on the item before[solved]
Posted by: amdi40 - Jan-09-2022, 07:14 PM - Forum: Homework - Replies (4)

Hello I would like to be able to compare a number with another number, and if the numbers are equal to each other, then I would like to add a number t..... More


Attached Files

.xlsx   newfile1.xlsx (Size: 8.72 KB / Downloads: 379)
Print this item

  console pwd file
Posted by: kucingkembar - Jan-09-2022, 06:42 PM - Forum: General Coding Help - Replies (4)

hi, sorry for my bad English,
is there any way to run the PWD file,
but if something happens like an error,
the "console" (what this is called? co..... More

Print this item

  Date Conversion issue
Posted by: Racer_x - Jan-09-2022, 05:17 PM - Forum: General Coding Help - Replies (2)

Hello All,

Disclaimer (Python Newbie):

No matter what I do I get the 'TypeError: Variable.dtype datetime64[ns] not supported' error. Even after ..... More

Print this item

  Scraping data from table into existing dataframe
Posted by: vincer58 - Jan-09-2022, 05:15 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello

1.) I have initial code below that scrapes various stock data from Finviz and gives the output below titled First Output. The problem comes u..... More

Print this item

  Can't strip extra characters from Data
Posted by: Canflyguy - Jan-09-2022, 04:06 PM - Forum: General Coding Help - Replies (7)

I'm new at Python with a Fortran, Basic and Visual Basic background, but I've managed to get a running program, but can't strip off the extra informat..... More

Print this item

  Unable to Loop Over Date
Posted by: gdbengo - Jan-09-2022, 03:55 PM - Forum: General Coding Help - Replies (2)

Hello, I'm trying to loop over a dictionary that contains date but as I do so I'm unable to print out the date, can you help me on this and possibly e..... More

Print this item

  How to output Python in Spout or any other video sharing network?
Posted by: buzzdarkyear - Jan-09-2022, 02:59 PM - Forum: General Coding Help - Replies (4)

Hi,

I've been new to Python and I've created something that I would like to stream in Spout so I can output it in touchdesigner/MadMapper. In the p..... More

Print this item

  TypeError: not enough arguments for format string
Posted by: MaartenRo - Jan-09-2022, 07:45 AM - Forum: General Coding Help - Replies (6)

I am doing an assignement program from a book. I need to write a program that
makes a test with 50 mutliple choice questions asking what the capital ..... More

Print this item

Question Scraping Columns with Pandas (Column Entries w/ more than 1 word writes two columns)
Posted by: BrandonKastning - Jan-09-2022, 05:47 AM - Forum: Web Scraping & Web Development - Replies (7)

Scraping Columns with Pandas (Column Entries w/ more than 1 word writes two columns)

My code is the following:

[CODE..... More

Print this item

  efficiency of CPython expression comppilation
Posted by: Skaperen - Jan-09-2022, 12:03 AM - Forum: News and Discussions - Replies (1)

i need to divide a number which is a long duration in seconds by the number of seconds in a week (604800) to get the number of weeks. if i were to wr..... More

Print this item

  Making a hotel filled with people categorizing them
Posted by: lucasrohr - Jan-08-2022, 05:12 PM - Forum: General Coding Help - Replies (3)

Hello forum,

so I've been trying to learn python by myself and made up an exercise that I can't handle.

I've been trying to populate a hotel (i.e. l..... More

Print this item

  how to get the sudoku solver to work?
Posted by: Tool1211 - Jan-08-2022, 03:29 PM - Forum: Homework - Replies (8)

hello, I'm fairly new to python programming and I need help as I watched this video (https://www.youtube.com/watch?v=lK4N8E6uNr4) to create a sudoku s..... More


Attached Files

.py   sudoku.py (Size: 4.26 KB / Downloads: 357)
Print this item

  Creating file with images
Posted by: BobSmoss - Jan-08-2022, 03:18 PM - Forum: General Coding Help - Replies (1)

Hello,
I need some help with my coding skills (again XD).

What i am trying to accomplish:
I want to make a script that creates a file. For exampl..... More

Print this item

  Closing Threads and the chrome window it spawned from Tkinter close button
Posted by: law - Jan-08-2022, 12:13 PM - Forum: General Coding Help - No Replies

[python]
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import time
import threading
from threading impo..... More

Print this item

  Problems getting tk Combobox contents to populate properly
Posted by: dford - Jan-08-2022, 08:15 AM - Forum: GUI - Replies (4)

I could use some help with tkinter comboboxes, and populating the combobox from a database. First question is, will the combobox accept a dictionary ..... More

Print this item

  tk is not defined
Posted by: jip31 - Jan-08-2022, 07:55 AM - Forum: General Coding Help - Replies (8)

Hi

The code below works when I execute it with idle or in CLI but when I execute it with vscode, I have the message "NameError: name 'Tk' is not de..... More

Print this item

  Simple question (I guess)
Posted by: tchadrack - Jan-08-2022, 03:17 AM - Forum: Data Science - Replies (1)

I have a txt file with data, sctructured this way:

[output][
[
1,
"ABRAHAN LINFE",
"JUNIAN",
10,
2011,
"$ 6.277,35"..... More

Print this item

  Need to parse a list of boolean columns inside a list and return true values
Posted by: Python84 - Jan-08-2022, 12:14 AM - Forum: General Coding Help - Replies (4)

Hi All,

Need to do this only when whole expression is true

Example 1: List -> [[A] OR [B]]
True value: A
o/p expected : [A]

Example 2: List ->..... More

Print this item

  Search text in PDF and output its page number.
Posted by: atomxkai - Jan-07-2022, 06:56 PM - Forum: General Coding Help - Replies (21)

Hello,

I'm trying to use this script to search a word or text in a PDF and will output the text and its page number.

Please note: I'm using Wind..... More

Print this item

  POST `api` 415 (Unsupported Media Type)
Posted by: Dexty - Jan-07-2022, 03:22 PM - Forum: Web Scraping & Web Development - Replies (2)

A little off the scope of Python but I'm trying to get things done in the frontend before integrating the Django backend.
I have tried different hea..... More

Print this item

  Please Wait window
Posted by: kucingkembar - Jan-07-2022, 03:14 PM - Forum: GUI - Replies (4)

hi, sorry again for my bad English,
I like to create "loading, please wait... " window
but somehow the windows do not appear, this is the code

[p..... More

Print this item

  Split single column to multiple columns
Posted by: SriRajesh - Jan-07-2022, 02:17 PM - Forum: General Coding Help - Replies (1)

Hi,
I have pandas.core.Dataframe as below
When I write to csv using df.to_csv it placed in single columns and 8 rows with delimiter as comma(","). F..... More

Print this item

  set and sorted, not working how expected!
Posted by: wtr - Jan-07-2022, 01:31 PM - Forum: General Coding Help - Replies (2)

Hello all,

I implemented the following. I don't understand why the output is unsorted list. I'm using set and sort to filter my list.
freq_list = ..... More

Print this item

  Not able to get image as background in a Toplevel window
Posted by: finndude - Jan-07-2022, 11:53 AM - Forum: GUI - Replies (4)

Hi All,

I have the below code:

[python]
from tkinter import * # imports all from tkinter
from tkinter import messagebox # imports messagebox
..... More

Print this item

  General Programming Question with Dictionary
Posted by: giddyhead - Jan-07-2022, 05:59 AM - Forum: General Coding Help - Replies (12)

I have a dictionary that contains books names, numbers of pages, who wrote the book, etc. What I attempting to do is search the whole dictionary for..... More

Print this item

  My program won't recognize the filename.
Posted by: braingoblins - Jan-07-2022, 03:16 AM - Forum: General Coding Help - Replies (1)

I'm working on a Markov bot for Twitter that reads off of a static directory and I know barely anything about coding. The program I got from a library..... More

Print this item

  SQL wild card use
Posted by: hammer - Jan-07-2022, 02:25 AM - Forum: General Coding Help - Replies (3)

I am trying to use a " * " in a a SQL WHERE clause passed in as an argument. The reason is to return the last entered tagNo if they do not know the ot..... More

Print this item

Big Grin General programming question (input string)[
Posted by: jamie_01 - Jan-07-2022, 01:37 AM - Forum: General Coding Help - Replies (2)

[code]
#!/usr/bin/python3

list_item_two = ['apples', 'oranges', 'pears', 'apricots']

list_item_two.append("celery")

print("ADD (1) or REMOVE..... More

Print this item

  WinError 2, since fresh new Windows 10 install
Posted by: alok - Jan-06-2022, 10:50 PM - Forum: General Coding Help - Replies (1)

I recently installed a fresh new version of Windows 10. Because of this I lost Python 3.9.7 and Sublime Text, which both had worked great.
I had to r..... More

Print this item

  Reiszing figure to occupy entire frame
Posted by: fishbackp - Jan-06-2022, 10:33 PM - Forum: General Coding Help - No Replies

I have a frame within my root window and wish to place a plot inside the frame. What I have so far is the following:

[python]from tkinter import Tk..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Help with Serial.write in... 33 minutes ago racingsubby racingsubby General Codin...
  Backward compatibility qu... 1 hour ago yutaozhou yutaozhou News and Disc...
  [Tkinter] I’m building a ... 3 hours ago tsgiannis Gribouillis GUI
  [split] print two differe... Today, 05:37 Reema Gribouillis General Codin...
  Data Science Today, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... Yesterday, 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...
  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...
Most views
  The best Prog... 578748
  Tutorial Requ... 509531
  Web Scraping ... 441880
  Newbie with P... 385850
  New Users Int... 375481
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+ 12103
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
thebigback Today
dimitriwati Today
johnsonlucas83 Today
ColorTig Today
AcoolPurpleOne1863 Today

User Panel Messages

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