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,392
» Latest member: MiaChota
» Forum threads: 38,822
» Forum posts: 176,019

Full Statistics

Online Users
There are currently 51 online users.
» 1 Member(s) | 46 Guest(s)
Bing, Google, AOL, AOL, snippsat

Latest Threads
Найдите все грани победы ...
Forum: General Coding Help
Last Post: MiaChota
6 minutes ago
» Replies: 0
» Views: 6
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 06:21 PM
» Replies: 1
» Views: 60
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Yesterday, 04:06 PM
» Replies: 9
» Views: 233
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,069
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,892
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 138
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 83
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 149
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,297
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 109

 
  I have a question...
Posted by: Szabelka - Feb-14-2023, 08:58 PM - Forum: General Coding Help - Replies (4)

Is is possible to do something like splitting a group? Like if I wanted to deal cards equally to 2 players (26 cards for a person) how is that possibl..... More

Print this item

  The command python3 -m venv venv does not correctly set sys.path
Posted by: echeadle - Feb-14-2023, 04:44 PM - Forum: News and Discussions - Replies (2)

I am running POP_OS 22.04 and Python 3.10.6
If I run the following commands:
[output]cd
mkdir testenv
cd testenv
python3 -m venv venv
source ve..... More

Print this item

  selenium can't find a file in my desk ?
Posted by: SouAmego22 - Feb-14-2023, 03:21 PM - Forum: General Coding Help - No Replies

i want to upload a file from my desk to an specific XPATH in a page web (buttom uplaod).

after using this code in the attachement :

the file i..... More


Attached Files

Thumbnail(s)
       
Print this item

  r+ mode in files
Posted by: grkiran2011 - Feb-14-2023, 02:03 PM - Forum: General Coding Help - Replies (5)

Hi Viewer,

I know r+ mode is used for reading and writing to a file. What I find strange is as soon as I open the file and then write to the file ..... More

Print this item

Question Virtual Environment (using VS Code)
Posted by: Ashcora - Feb-14-2023, 11:29 AM - Forum: General Coding Help - Replies (4)

Hello community,

I am trying to figure out which is the best way to use virtual environments…as there is mamba, conda, miniconda, anaconda and venv..... More

Print this item

  using re.search
Posted by: WJSwan - Feb-14-2023, 07:05 AM - Forum: General Coding Help - Replies (3)

If I use the re.search method:

[python]
pattern = r"\\f (.+)\\fr(.+)\\fk(.+)\\ft(.+)\\\+xt(.+)\\\+xt\*(.+)\\f\*"
fnote=re.search(patt..... More

Print this item

  OneLiner question
Posted by: tester_V - Feb-14-2023, 02:29 AM - Forum: General Coding Help - Replies (7)

Greetings!
I'm trying to shorten my code and I'd like to use OneLiners.
I Googled it and it is not that clear how to use it.
Here is the code I'm t..... More

Print this item

  Division questions
Posted by: Dionysis - Feb-13-2023, 10:27 PM - Forum: General Coding Help - Replies (5)

I'm new to Python and also refreshing my math...
I have two questions:
- Simple division (/) gives floats even if the result can be a round integer...... More

Print this item

  Selenim Help
Posted by: quarinteen - Feb-13-2023, 03:43 PM - Forum: General Coding Help - Replies (1)

Hello I am having an issue getting some Selenium code to work. I am trying to grab some data from a page that requires 2FA. I am trying to use webdriv..... More

Print this item

  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 (8)

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: 297)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Найдите все грани победы ... 6 minutes ago MiaChota MiaChota General Codin...
  How to Integrate External... Yesterday, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... Yesterday, 16:06 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...
Most views
  The best Prog... 580368
  Tutorial Requ... 519122
  Web Scraping ... 442771
  Newbie with P... 386955
  New Users Int... 386281
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
MiaChota Today
taylorlitleoz476 Today
desy845 Today
atalieyandext4063 Yesterday
finallen321 Yesterday

User Panel Messages

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