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,537
» Latest member: rb9594
» Forum threads: 38,665
» Forum posts: 175,197

Full Statistics

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

Latest Threads
pip3 install certifi fail...
Forum: General Coding Help
Last Post: rb9594
1 hour ago
» Replies: 0
» Views: 12
"iBolt Cyber Hacker Recov...
Forum: Bar
Last Post: lilianaortegga
5 hours ago
» Replies: 0
» Views: 18
HIRE DIGITAL FORENSIC EXP...
Forum: Bar
Last Post: Saragonzales
7 hours ago
» Replies: 0
» Views: 22
Custom Sorting List of Di...
Forum: Homework
Last Post: deanhystad
7 hours ago
» Replies: 2
» Views: 175
Unable to define function...
Forum: Homework
Last Post: deanhystad
7 hours ago
» Replies: 1
» Views: 45
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 10:14 AM
» Replies: 6
» Views: 665
Qt Event Filtering
Forum: GUI
Last Post: deanhystad
Yesterday, 09:36 AM
» Replies: 3
» Views: 158
processing nested json da...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 01:32 AM
» Replies: 1
» Views: 112
Convert .pdf to .txt
Forum: General Coding Help
Last Post: Pedroski55
Jul-13-2025, 11:23 AM
» Replies: 7
» Views: 479
Trouble Importing cell2lo...
Forum: General Coding Help
Last Post: snippsat
Jul-12-2025, 04:00 PM
» Replies: 3
» Views: 269

 
  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 (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: 256)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  pip3 install certifi fail... 1 hour ago rb9594 rb9594 General Codin...
  "iBolt Cyber Hacker Recov... 5 hours ago lilianaortegga lilianaortegga Bar
  HIRE DIGITAL FORENSIC EXP... 7 hours ago Saragonzales Saragonzales Bar
  Custom Sorting List of Di... 7 hours ago aryasinner deanhystad Homework
  Unable to define function... 7 hours ago gmonroe deanhystad Homework
  RemoTe server operation w... Yesterday, 10:14 mario17 snippsat General Codin...
  Qt Event Filtering Yesterday, 09:36 deanhystad deanhystad GUI
  processing nested json da... Yesterday, 01:32 Kumo_Koloo Pedroski55 Web Scraping ...
  Convert .pdf to .txt 07-13, 11:23 vmars316 Pedroski55 General Codin...
  Trouble Importing cell2lo... 07-12, 16:00 haileyp snippsat General Codin...
  Why is bool() an instance... 07-12, 02:41 voidtrance deanhystad General Codin...
Most views
  The best Prog... 572689
  Tutorial Requ... 485720
  Web Scraping ... 437145
  Newbie with P... 380084
  Thread remain... 351375
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12073
buran 8174
snippsat 7352
deanhystad 6857
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
rb9594 Today
lilianaortegga Yesterday
Saragonzales Yesterday
homerpalmer Yesterday
aihancaiji31 Yesterday

User Panel Messages

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