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,471
» Latest member: iloveimg3
» Forum threads: 38,578
» Forum posts: 174,809

Full Statistics

Online Users
There are currently 704 online users.
» 0 Member(s) | 697 Guest(s)
Bing, Google, Yandex, Twitter

Latest Threads
Text frame
Forum: Homework
Last Post: Pedroski55
22 minutes ago
» Replies: 2
» Views: 302
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 226
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 179
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,354
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 130
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 431
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,241
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 382
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 466
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 1,015

 
  Why is this import running twice?
Posted by: extan1 - Feb-13-2023, 02:14 PM - Forum: General Coding Help - Replies (10)

I'm new to python and am trying to migrate my flask app to a package structure.

I have run.py sitting in a directory alongside a /myproject..... More

Print this item

  Setting with copy warning
Posted by: catlessness - Feb-13-2023, 02:07 PM - Forum: Data Science - Replies (5)

Why am I getting the "setting with copy" warning with the code below? Am I not doing what they suggested? And the result is wrong so I guess there is ..... More

Print this item

  My First App
Posted by: BCopeland64 - Feb-13-2023, 09:18 AM - Forum: Code Review - Replies (7)

Hello Everyone,

I have created a habit tracking app that I would love to get some feedback on. This is my first real OOP project in Python. If anyo..... More

Print this item

  floppys & diskettes
Posted by: DPaul - Feb-12-2023, 06:17 PM - Forum: Bar - Replies (29)

Hi,
Do we know of a python module that can do recovery of diskette & floppy files.
I recieved somebody's life's genealogy work on those media, and ..... More

Print this item

  Problem with writing an objective oriented python assignment
Posted by: mikikiki - Feb-12-2023, 02:54 PM - Forum: Homework - Replies (5)

Can someone help me while writing an assignment?

It is necessary to create a template for creating objects of the Student type. Each Student should..... More

Print this item

  Take the variable of a cursor class
Posted by: delcencen - Feb-12-2023, 02:24 PM - Forum: GUI - Replies (2)

Hello, i try diffrent things beffor call your help but that doesn't work.
I would like to get the x value in my main code.
[python]
from tkinter im..... More

Print this item

  Pandas read csv file in 'date/time' chunks
Posted by: MorganSamage - Feb-12-2023, 01:38 PM - Forum: Data Science - Replies (4)

I have written code to read a large time series data csv file (X million rows) using pandas read_csv() with chunking. That part of the code is working..... More

Print this item

  What's a good IDE and how would I type in and run this good once?
Posted by: flexman71 - Feb-11-2023, 11:13 PM - Forum: Board - Replies (2)

What's a good IDE and how would I type in and run this good once?

Print this item

  "TypeError: string indices must be integers, not 'str'" while not using any indices
Posted by: bul1t - Feb-11-2023, 05:39 PM - Forum: General Coding Help - Replies (2)

Hi guys! Currently trying to code my first program to automate an API, but got stuck at the moment where I transfer 2 arguments from earlier functions..... More

Print this item

  Sorting Data Returned From Database
Posted by: Timbo03 - Feb-11-2023, 03:32 PM - Forum: Homework - Replies (9)

I have a table in a database with about 1600 rows containing an ingredient name column with another column with all the recipe ids that ingredient is ..... More

Print this item

  Kivy UI language translation lib
Posted by: mikepy - Feb-11-2023, 12:16 PM - Forum: GUI - Replies (2)

Hi guys! Is there any library which I can use to translate my Kivy UI into any other language? In my case, I want to transform my UI language from Gre..... More

Print this item

  embed python script in C programm
Posted by: gucio321 - Feb-11-2023, 10:44 AM - Forum: General Coding Help - No Replies

Hi everyone!
I'm working on a project written in GO and some time ago our team was made to use a python module (as it was the only available). Go uses..... More

Print this item

  I cannot able open a file in python ?
Posted by: ted - Feb-10-2023, 09:39 PM - Forum: General Coding Help - Replies (5)

Myself is ted,
i am trying open a text file in python using open("filename.txt") but i am seeing FileNotFoundError: [Errno 2] No s..... More


Attached Files

.py   1.py (Size: 47 bytes / Downloads: 242)
Print this item

  Looking to automate updating a spreadsheet with image from email
Posted by: cubangt - Feb-10-2023, 03:51 PM - Forum: General Coding Help - Replies (2)

ok, so at work we have an email that is sent out daily each morning.. in this email the body contains a image of a graph.(screenshot)
Within teams / ..... More

Print this item

  Mysql Workbench table not updated
Posted by: CatBall - Feb-10-2023, 03:19 PM - Forum: General Coding Help - Replies (2)

My code:
(I want "pathology" table in MySQL Workbench to be updated when clicking on the "update" button.)
[python]
def update(self):
..... More

Print this item

  kivy: how to create a widget that represents a circled letter?
Posted by: Coricoco_fr - Feb-10-2023, 03:11 PM - Forum: GUI - Replies (1)

Hello,
[kivy]
how to create a widget that represents a circled letter?
I want to be able to move this widget to my root widget as I please. However..... More

Print this item

  Compare 2 files
Posted by: tslavov - Feb-10-2023, 02:44 PM - Forum: General Coding Help - Replies (2)

What is the Script in Python to
Print Field = 2 of "File1.txt" and Field = 4 of "File2.txt"
When Field = 1 is "A4" of "File1.txt" is equal Field =..... More

Print this item

  PyQT Problems with multiple fonts
Posted by: DrakeSoft - Feb-10-2023, 02:21 PM - Forum: GUI - Replies (3)

I have a PyQT program that saves a file in HTML format.

It uses the QFontComboBox and on a change in selection I set the editor (QTextEdit) to matc..... More

Print this item

  convert string to float in list
Posted by: jacklee26 - Feb-10-2023, 10:43 AM - Forum: General Coding Help - Replies (6)

HI
Do anyone know how to convert element in the list to float, and write them into excel?
My code will read a file and write it into excel, attached ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Difference one column in a dataframe
Posted by: Scott - Feb-10-2023, 08:41 AM - Forum: General Coding Help - No Replies

Hi everyone,

I have a dataframe (df2) with about 5 columns and I want to difference one column and keep the other columns. Do you know how I do tha..... More

Print this item

  Hyperlinks
Posted by: DPaul - Feb-10-2023, 07:06 AM - Forum: Bar - Replies (6)

This time I have been given a truckload of pdfs.
They are scans of historical articles. Quality is good, OCR is OK.
I can search the texts programatic..... More

Print this item

  How to apply function lower() to the list?
Posted by: Toltimtixma - Feb-10-2023, 06:57 AM - Forum: General Coding Help - Replies (2)

Hi, everyone!
I have a list with the names of users:
users = ['Timoteusz', 'MAD', 'GaMer', 'ToXIC',....]
All the names are in different letter cas..... More

Print this item

  How to use xmlrpc from flrig?
Posted by: mamoman - Feb-09-2023, 09:40 PM - Forum: General Coding Help - Replies (3)

Hi
I am new to python and am looking for a simple example on how to communicate with a program called FL-RIG (Ham radio control) in XMLRPC.

The FL..... More

Print this item

  Sequential Decision Making
Posted by: erdemath - Feb-09-2023, 09:20 PM - Forum: Data Science - Replies (2)

I am generating a sequential decision making model. I am using tensorflow.keras.sequantial.
But any time I train my model, I have t..... More

Print this item

  Matplot / numpy noisy data problem
Posted by: the57chambers - Feb-08-2023, 11:23 PM - Forum: General Coding Help - Replies (1)

Hi there,
I seem to be having a weird issue with my python when using numpy, pandas and matplot lib. I have a basic time series data that is uploaded..... More


Attached Files

Thumbnail(s)
           
Print this item

  Cross 2 arrays
Posted by: dylan261999 - Feb-08-2023, 08:23 PM - Forum: General Coding Help - Replies (4)

Hi,

With Matlab, I can run this easily :

a = [0 0 0 0 0]
b = [1 1 1 1]

a(1:1:end) = b
To obtain : a = [0 1 0 1 0 1 0 1 0..... More

Print this item

  What are these python lines for? What are tey doing?
Posted by: Led_Zeppelin - Feb-08-2023, 05:56 PM - Forum: General Coding Help - Replies (7)

In the following code I need to know exactly what the two lines of code are doing:

#!/usr/bin/env python
# coding: utf-8

# In[1]:

[python]..... More


Attached Files

Thumbnail(s)
           
Print this item

Question Email, certificate verify failed: unable to get local issuer certificate
Posted by: SpongeB0B - Feb-08-2023, 02:24 PM - Forum: Networking - No Replies

Hi everyone,

I'm trying to connect to my email provider with (extract)
[python]
from smtplib import SMTP_SSL

context = ssl.create_default_cont..... More

Print this item

  Better way to write this function
Posted by: SephMon - Feb-08-2023, 11:21 AM - Forum: General Coding Help - Replies (1)

Hello
I have created a rock paper scissors game, it works fine but one function is very long and I was wondering if maybe there was a better way to ..... More

Print this item

  API Calls for my app
Posted by: newby77 - Feb-08-2023, 07:23 AM - Forum: Homework - Replies (4)

Hi everyone,

I'm looking for API calls to fetch information for my EV Charging App and how to merge them into the app code.
My code has dummy ent..... More

Print this item

  Replace with upper(string)
Posted by: WJSwan - Feb-08-2023, 05:25 AM - Forum: General Coding Help - Replies (7)

I need to find all strings like this: \nd string \nd*
where string is any alphabetic string, eg. [A-z]+

I then need to replace it by upper(stri..... More

Print this item

  numpy newbie question
Posted by: bcwilly_ca - Feb-08-2023, 02:20 AM - Forum: General Coding Help - Replies (4)

Hello:

Just started in python and have successfully connected to an application using its API

When I query the API for Data I get a list returne..... More

Print this item

  Help with test
Posted by: Jacopo_98 - Feb-07-2023, 05:04 PM - Forum: Homework - Replies (7)

Hi, i'm currently following a google online course on python, and I am having truble solving a programming problem. I am studying strings at the momen..... More


Attached Files

Thumbnail(s)
   
Print this item

  Where to best ask for feature requests for TK(inter)
Posted by: NebularNerd - Feb-07-2023, 12:10 PM - Forum: GUI - Replies (2)

Hello fellow Python'eers

I recently switch from PySimpleGUI to customtkinter, a bit of a learning curve between the two but after a couple of days ..... More

Print this item

  How to timeout a task using the ThreadpoolExecutor?
Posted by: lowercase00 - Feb-07-2023, 04:37 AM - Forum: General Coding Help - Replies (2)

Hi all.

I'm wonder what are the possible approaches to handle timeout of a task that was submitted to an executor ThreadPoolExecutor.
I know I can ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Text frame 22 minutes ago dnabtuh Pedroski55 Homework
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
Most views
  The best Prog... 565047
  Tutorial Requ... 455247
  Web Scraping ... 430007
  Newbie with P... 365858
  Thread remain... 338169
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 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
iloveimg3 Yesterday
ishaD Yesterday
fitobar43 Yesterday
AymanNassar 05-16
Shailesh 05-15

User Panel Messages

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