Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,465
» Latest member: JeanChristophe
» Forum threads: 38,577
» Forum posts: 174,804

Full Statistics

Online Users
There are currently 761 online users.
» 0 Member(s) | 755 Guest(s)
Bing, Google, Apple, Yandex, Baidu

Latest Threads
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
3 hours ago
» Replies: 0
» Views: 35
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
10 hours ago
» Replies: 5
» Views: 228
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
11 hours ago
» Replies: 16
» Views: 1,050
class Blockage not projec...
Forum: General Coding Help
Last Post: Azdaghost
Yesterday, 01:09 PM
» Replies: 0
» Views: 60
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
Yesterday, 09:04 AM
» Replies: 1
» Views: 335
Pip help
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 05:57 AM
» Replies: 4
» Views: 349
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
Yesterday, 01:12 AM
» Replies: 2
» Views: 959
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 177
smbus.SMBus i2c code whic...
Forum: General Coding Help
Last Post: NewbyTyro
May-12-2025, 03:51 PM
» Replies: 2
» Views: 296
Why are the PythonT symli...
Forum: News and Discussions
Last Post: gernophil
May-12-2025, 08:10 AM
» Replies: 0
» Views: 148

 
  Task calendar problem
Posted by: humanical - Aug-30-2023, 07:50 PM - Forum: Homework - Replies (8)

Here is the task:
Analyzing weekends and holidays around New Year's and May 1st in Russia, the president of Flatlandia has concluded that the rest of..... More

Print this item

  Trying to debug segfault in ctypes binding to Fortran
Posted by: bthomas - Aug-30-2023, 07:30 PM - Forum: General Coding Help - Replies (1)

Hi,

I am just trying to learn creating Python bindings to legacy Fortran using the ctypes module. My code is segfaulting in the Fortran function in..... More

Print this item

  Python Mapped Strings
Posted by: edualfaia - Aug-30-2023, 04:25 PM - Forum: News and Discussions - Replies (12)

Hi experts
I have mapped, the strings below, the words that start win "-" with another string, for example "nrdbc" is equivalent to "n3DeleteBearerC..... More

Print this item

  textfile to customtkinter combobox
Posted by: janeik - Aug-30-2023, 01:49 PM - Forum: General Coding Help - Replies (6)

hello.

Goal: Insert list of country names, stored in a text file, into the combobox.
Idea, create a list of values-
Sadly, country names shows u..... More


Attached Files

.txt   inpland.txt (Size: 2.08 KB / Downloads: 218)
Print this item

Question in this code, I input Key_word, it can not find although all data was exact Help me!
Posted by: duchien04x4 - Aug-30-2023, 10:58 AM - Forum: General Coding Help - Replies (3)

[python]import requests
import tkinter as tk
from tkinter import filedialog
import re

# Thay thế các giá trị sau bằng thông tin thật của bạn
ac..... More


Attached Files

.txt   savecommentFACE.txt (Size: 2.19 KB / Downloads: 217)
Print this item

  A modernized magic trick
Posted by: Gribouillis - Aug-30-2023, 07:51 AM - Forum: Code sharing - No Replies

A few years ago, it occurred to me that if a Python instance obj had attributes 'spam' and 'eggs', ..... More

Print this item

  python Read each xlsx file and write it into csv with pipe delimiter
Posted by: mg24 - Aug-29-2023, 11:13 PM - Forum: General Coding Help - Replies (4)

Hi Team,

I am trying to Read xlsx file and I want to write it into CSV File with pipe delimited.all decimal values wanted to round up 6 decimal pla..... More

Print this item

  Need to replace a string with a file (HTML file)
Posted by: tester_V - Aug-29-2023, 09:17 PM - Forum: General Coding Help - Replies (1)

Greetings!
I need to send tons of emails, to do that I have to use an HTML file.
The string “ MessageBody” in the HTML file must be replaced with t..... More

Print this item

  Capturing BS4 values into DF and writing to CSV
Posted by: cubangt - Aug-29-2023, 07:52 PM - Forum: General Coding Help - Replies (18)

I have the below logic that im getting results from, but when righting to the csv, each data value is being written to row instead of collectively int..... More

Print this item

  Flask - use bootstrap styles in HTML
Posted by: Krayna - Aug-29-2023, 02:22 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi there
I'm new to Flask. I've created couple of apps following some tutorials. Now I'm working on my own project for work.

I noticed in the HTML f..... More

Print this item

  Python Online Compiler
Posted by: alexmaxwell1 - Aug-29-2023, 09:50 AM - Forum: News and Discussions - Replies (2)

Hi everyone,

If anyone is looking for a good Python online compiler to practice theirs's coding skills. I've been looking at a few different option..... More

Print this item

  Query database
Posted by: menator01 - Aug-29-2023, 08:14 AM - Forum: News and Discussions - No Replies

What would be a recommended amount of time to query a database to check for login status? I was thinking querying every five minutes.
Any and all com..... More

Print this item

  scammed through python keylogger
Posted by: Noq - Aug-28-2023, 08:04 PM - Forum: News and Discussions - Replies (12)

hello everyone, first of all, please don't judge me for what happened. I know myself that I am an idiot.

so, to keep it short, someone made me use ..... More

Print this item

  Current project - Simple tkinter login system
Posted by: menator01 - Aug-28-2023, 07:21 PM - Forum: Code sharing - Replies (3)

Just a simple login system. It's not complete, still have some details to work on and after maybe make a generic page class as I have some repeating c..... More

Print this item

  Starting and running .bat in background, tkinter in foreground
Posted by: ProfMeowintgon - Aug-28-2023, 11:49 AM - Forum: General Coding Help - Replies (9)

Hello,

as the title says, how can I achieve a (custom)tkinter window in the foreground (i.e. "maximized") and the cmd terminal which is started whe..... More

Print this item

Question bytes and strings
Posted by: Skaperen - Aug-28-2023, 02:58 AM - Forum: News and Discussions - No Replies

does anyone use the bytes type when dealing with ASCII characters, such as when the input provides the characters as bytes and/or (espec..... More

Print this item

  Installing Older Version Of Numpy & Pandas
Posted by: knight2000 - Aug-28-2023, 02:31 AM - Forum: General Coding Help - Replies (6)

Hi all,

I'm still pretty new to the world of Python. I'm using Pycharm and for the first time I'm trying to test a public project from Github. The..... More

Print this item

  Perform the same action in a browse game on multiple computers at the same time.
Posted by: learningpysh - Aug-28-2023, 12:49 AM - Forum: Networking - No Replies

I'm trying to develop an application split into two parts, server and client, that performs the same action on multiple devices at the same time. All ..... More

Print this item

  TypeError: conversion from bytes to Decimal is not supported
Posted by: Skaperen - Aug-27-2023, 05:41 PM - Forum: News and Discussions - Replies (2)

Output:
TypeError: conversion from bytes to Decimal is not supported
is supporting bytes all that hard to do?

Print this item

  Python beginner that needs an expression added to existing script
Posted by: markham - Aug-27-2023, 04:42 PM - Forum: General Coding Help - Replies (1)

I have a python script that scrubs emails and works well.

I need to add the ability to remove everything including and after the string "Still have..... More

Print this item

  CTkComboBox - not working
Posted by: Sedos101 - Aug-27-2023, 05:28 AM - Forum: General Coding Help - Replies (11)

Hi everyone
I am using customtkinter to make some comboboxes

Basically I have a list of Groups, which have their own corresponding models and buck..... More


Attached Files

.py   customtkinter1.py (Size: 65.96 KB / Downloads: 168)
Print this item

  MVC implementation issue
Posted by: gradlon93 - Aug-26-2023, 10:41 PM - Forum: GUI - Replies (5)

Good Evening everyone. I am working on an Hotel reservation system, that basically consists of a webscraper that picks rates from an hotel website and..... More


Attached Files

Thumbnail(s)
   
Print this item

  number of digits in a decimal.Decimal number object
Posted by: Skaperen - Aug-26-2023, 07:38 PM - Forum: News and Discussions - No Replies

given a decimal number (via args in a function, for example), i can find out how many digits it has with:
[python]
how_many_digits = len(str(a_decim..... More

Print this item

  help with an exercise
Posted by: iiiik - Aug-26-2023, 06:50 PM - Forum: Homework - Replies (5)

I came to ask about the same exercise as last time, with which you helped me and it was very helpful but I would like to know if it could be done in a..... More

Print this item

  [Python 2.7] Why can't I press [ESC] a fourth time?
Posted by: Ashwood - Aug-26-2023, 06:21 PM - Forum: General Coding Help - Replies (3)

Hi everyone, I'm new in the forum, I don't have much programming knowledge, I'm just starting out. This is an Python 2.7 script and it asks a question..... More

Print this item

  Simple conditional not working as expected
Posted by: return2sender - Aug-26-2023, 12:53 PM - Forum: General Coding Help - Replies (8)

Python beginner here--

I wrote a practice program that converts decimal numbers to binary and vice versa. It works great! For example:

[python]>..... More

Print this item

  DF value by Column... not sure what to call it
Posted by: tester_V - Aug-26-2023, 04:54 AM - Forum: General Coding Help - Replies (2)

I'm probably overstaying my welcome but I'd like to ask one more question.
Here is an Excel file:
Cars Sold, Employee Name,
Cadillac CTS, Bill Clin..... More

Print this item

  Cannot rename Columns in df
Posted by: tester_V - Aug-25-2023, 04:59 PM - Forum: General Coding Help - Replies (11)

Greetings!
I need to rename Columns in the Dataframe. I found if the name has a space my script is failing.
I tried a lot of examples from the Net a..... More

Print this item

  Vectorizing a quadruple for loop in python
Posted by: winash12 - Aug-25-2023, 02:18 PM - Forum: General Coding Help - Replies (13)

I have this quadruple for loop that I am looking to vectorize and I have provided a toy example to highlight the problem. This is taking a lot of comp..... More

Print this item

  capturing multiline output for number of parameters
Posted by: jss - Aug-25-2023, 01:34 PM - Forum: General Coding Help - Replies (3)

I am using ttp template to parse a data from command line

I followed the following link while writing below code:
https://python-forum.io/thread-4058..... More

Print this item

  QUIZ GUI Form_When admin panel is open, main quiz form is getting freeze
Posted by: Uday - Aug-25-2023, 12:47 PM - Forum: General Coding Help - Replies (4)

Hi Expert,

I have already created one QUIZ GUI application where user can select option and click on submit button to check the score. One ADMIN butt..... More


Attached Files

.py   import tkinter as tk.py (Size: 8.95 KB / Downloads: 246)
Print this item

  Wrapping c/c++ dll
Posted by: Oolongtea - Aug-25-2023, 12:14 PM - Forum: General Coding Help - Replies (2)

I have a piece of hardware with a C/C++ api in the form of a dll, but I'm unsure what the best option is to make that code useable with python.

I exp..... More

Print this item

  Help: Conversion of Electricity Data into Time Series Data
Posted by: SmallGuy - Aug-25-2023, 09:05 AM - Forum: Data Science - Replies (3)

I want to plot a power load curve with the electricity consumption data. I download a load profile from a EV charger. The data file is a excel contain..... More


Attached Files

Thumbnail(s)
       
Print this item

  txt to image
Posted by: DPaul - Aug-25-2023, 08:11 AM - Forum: Bar - Replies (2)

Hi,
Sometimes I am handed old files that I cannot OCR, but I can read them via a backdoor.
Simplified, I end up with a few 100.000 very small txt fi..... More

Print this item

Photo U-Net runs very slowly
Posted by: Bearpaw - Aug-25-2023, 07:05 AM - Forum: Data Science - No Replies

Hello everyone!

I have written a U-Net with TensorFlow (see attachment). With this I want to predict CT images from MR images. It's nothing fancy a..... More


Attached Files

.py   U-Net.py (Size: 2.98 KB / Downloads: 3)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  tracking version during r... 3 hours ago Skaperen Skaperen News and Disc...
  Return a string or byte o... 10 hours ago Calab snippsat General Codin...
  problems with netcdf if I... 11 hours ago Blaubart Blaubart General Codin...
  class Blockage not projec... Yesterday, 13:09 Azdaghost Azdaghost General Codin...
  Retired and Learning Pyth... Yesterday, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help Yesterday, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... Yesterday, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
  Why are the PythonT symli... 05-12, 08:10 gernophil gernophil News and Disc...
  Send SMS from my phone nu... 05-11, 17:48 aster TheTechNexus General Codin...
Most views
  The best Prog... 563470
  Tutorial Requ... 448389
  Web Scraping ... 428485
  Newbie with P... 362587
  Thread remain... 335164
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7325
deanhystad 6826
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
JeanChristophe Yesterday
EZEKIELGRAPHICSMEDIA Yesterday
BarbaraGonzalez Yesterday
william224477 Yesterday
ellena Yesterday

User Panel Messages

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