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,252
» Latest member: Jessicaadams
» Forum threads: 38,781
» Forum posts: 175,827

Full Statistics

Online Users
There are currently 35 online users.
» 1 Member(s) | 31 Guest(s)
Bing, Google, AOL, lemonred

Latest Threads
re.split issue
Forum: General Coding Help
Last Post: paul18fr
45 minutes ago
» Replies: 2
» Views: 31
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
2 hours ago
» Replies: 6
» Views: 323
New to python and coding
Forum: Homework
Last Post: lary_p
7 hours ago
» Replies: 5
» Views: 145
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 07:26 PM
» Replies: 2
» Views: 96
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 229
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 357
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 138
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,636
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 234
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 226

 
  Flask read real time print from subprocess without deadlock
Posted by: vofka32 - Jun-02-2021, 09:36 AM - Forum: Web Scraping & Web Development - No Replies

Hello. Maybe someone could help? The problem is with subprocess.
I need to run the subprocess (generator.py) and show the output real-time on HMTL vi..... More

Print this item

  Docx Convert Word Header to Body
Posted by: CaptainCsaba - Jun-02-2021, 09:06 AM - Forum: General Coding Help - Replies (3)

I am trying to scrape Pdf information. I need a to collect a lot of information about each paragraph. Right now it seems that the way I can extract al..... More

Print this item

Question random in python
Posted by: ilikedofs - Jun-02-2021, 12:09 AM - Forum: General Coding Help - Replies (3)

I seem to have a problem. When I use
random.choice it will print out the list instead. here is the code and the output
first the ..... More

Print this item

  You have any idea, how fix TypeError: unhashable type: 'list'
Posted by: lsepolis123 - Jun-01-2021, 07:21 PM - Forum: General Coding Help - Replies (2)

from pcpartpicker import API

You have any idea, how to print api.supported_parts where

api = API()

You have any idea, how fix TypeError: unh..... More

Print this item

  extra slashes in the network path for shutil.copy
Posted by: tester_V - Jun-01-2021, 06:51 PM - Forum: General Coding Help - Replies (3)

Hi,
I'm trying to copy logs from a network drive.
There is a text file it holds all the Path\file lines for files copy, like this:
[python]
\\\\n..... More

Print this item

  pip3 v21.1.2 SSL Error on RHEL 7
Posted by: malibu - Jun-01-2021, 03:14 PM - Forum: General Coding Help - No Replies

Hi there, I am on:

Red Hat Enterprise Linux Server release 7.9 (Maipo)

This is a new server, I did:

yum install python3 python3-pip python3-w..... More

Print this item

  Hide clicked buttons
Posted by: Rubberduck - Jun-01-2021, 01:43 PM - Forum: GUI - Replies (6)


.csv   PostDummy.csv (Size: 481 bytes / Downloads: 472)
Hi There

I already code a small app which fulfils my needs. Now, I want to hide the clicked buttons from the upper part of my ap..... More

Print this item

  Check last time file was accessed
Posted by: Pavel_47 - Jun-01-2021, 12:51 PM - Forum: General Coding Help - Replies (4)

Hello,
How do I check the time at which a file was opened last time ?
Thanks.

Print this item

  Reading data to python: turn into list or dataframe
Posted by: hhchenfx - Jun-01-2021, 04:06 AM - Forum: General Coding Help - Replies (2)

Hi,

I tried 3 different ways to read csv data into python.

The 1st and 2nd methods turn data to dataframe and list, and they both work OK

The..... More

Print this item

  compressing a file
Posted by: Skaperen - Jun-01-2021, 02:53 AM - Forum: General Coding Help - Replies (5)

i have a text file. i want to read the file in a compressed form (in binary, of course). lzma.open() seems to do the opposite of what i need. it un..... More

Print this item

  empty lines in source code
Posted by: Skaperen - Jun-01-2021, 12:48 AM - Forum: News and Discussions - Replies (6)

is it safe to discard empty lines in Python source code other than a multi-line triple quote? i need to keep source code for EC2 instance userdata as..... More

Print this item

  Function - Return multiple values
Posted by: tester_V - May-31-2021, 11:14 PM - Forum: General Coding Help - Replies (10)

Greeting!
I have to scan directories and find/process subdirectories.
Number of SubDirs not static.
I thought I could use a function but found I c..... More

Print this item

  ImageTk Paste
Posted by: KDog - May-31-2021, 09:47 PM - Forum: General Coding Help - Replies (14)

I'm back again with my camera app! Trying to overlay/merge two images when saving them.
The error i get is [error]AttributeError: 'PhotoImage' object..... More

Print this item

  Filtering a data frame according to number of occurences of an observation
Posted by: Menthix - May-31-2021, 08:12 PM - Forum: General Coding Help - Replies (1)

Hi,
I have a data frame that looks like
COL1
A
A
A
A
A
B
B
B
B
B
C
D
D
D
D
E
E

I 'd like to keep observations that appear more ..... More

Print this item

  extract color text from PDF
Posted by: Maha - May-31-2021, 04:05 PM - Forum: General Coding Help - No Replies

Hi,

I am working on a project to extract information from a pdf file using python language, but I am unable to extract color text.

Is there a wa..... More

Print this item

  Calculate mean only for match strings
Posted by: ranbarr - May-31-2021, 03:17 PM - Forum: Homework - Replies (1)

Hi,
I have this assignment in which I have a file that contains alot of chromosed that I need to calculate for each one of them the mutation level.
..... More

Print this item

Question Yielding ahead of time
Posted by: Daring_T - May-31-2021, 02:39 PM - Forum: General Coding Help - Replies (5)

I was making a function that could output the results one by one with yield or return all results in a list. I have everything in the right indention,..... More

Print this item

  FEN to 2dArray in Python
Posted by: Marc212021 - May-31-2021, 01:13 PM - Forum: General Coding Help - Replies (1)

Hey, does someone have any idea, how i could convert an FEN input like this:` [ bRbNbBbQbKbBbNbR/bpbpbpbpbpbpbpbp/8/8/8/8/wpwpwpwpwpwpwpwp/wRwNwBwQw..... More

Print this item

  Extract specific sentences from text file
Posted by: Bubly - May-31-2021, 12:58 PM - Forum: General Coding Help - Replies (3)

Hi all,
I am a beginner in python. How to extract sentences, which have specific set of words (or combination of words), from a text file. For exampl..... More

Print this item

Lightbulb Object Oriented programming (OOP) problem
Posted by: OmegaRed94 - May-31-2021, 11:45 AM - Forum: General Coding Help - Replies (6)

Hello everyone, Dear Pythonistas

I have started to learn python several months ago and got to Object Oriented programming (OOP), solved many exerci..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to make the mouse move to the desired color when clicking with the left mouse
Posted by: isn_ - May-31-2021, 09:47 AM - Forum: Code Review - Replies (1)

I created a bot in python so when the purple color passes where the mouse cursor is, the left mouse button will click, now I want the mouse to move on..... More

Print this item

  YouTube Video Downloader
Posted by: BlazingWarlord - May-31-2021, 07:30 AM - Forum: Code sharing - Replies (1)

YouTube Video Downloader

A simple YouTube video downloader that ..... More

Print this item

  Cloning a directory and using a .CSV file as a reference to search and replace
Posted by: bg25lam - May-31-2021, 04:37 AM - Forum: General Coding Help - Replies (2)

Hello I am trying to clone a directory with text files (XML, L5X, txt, etc). I would like to build something that would reference a .CSV with what tex..... More

Print this item

  embedding data in a script
Posted by: Skaperen - May-31-2021, 04:04 AM - Forum: News and Discussions - Replies (1)

i have gotten AWS instances to run a Python script to do the instance initialization instead of bash. but this often needs to carry along chunks of d..... More

Print this item

  Conditional evaluation
Posted by: stsxbel - May-31-2021, 01:27 AM - Forum: General Coding Help - Replies (7)

Good day. Please tell me how to correctly compute with the condition? there is a code:
[python]
a1 = float(result1[0] * 0.1)
b1 = float(row[2])
c1 = b..... More

Print this item

  print out is producing same graph
Posted by: mbrown009 - May-30-2021, 11:29 PM - Forum: Data Science - Replies (2)

I have the following code. It is grahing the aggregate case rate but I also want to do only the past 60 days. It produces 2 graphs. They are the same...... More

Print this item

  Marks calculator
Posted by: michalmonday - May-30-2021, 04:40 PM - Forum: Code sharing - No Replies

Given a list of previously achieved marks it produces a graph showing what future marks you need to get in order to get specific total mark.
https://..... More

Print this item

  Why the save.txt part is not working
Posted by: Melcu54 - May-30-2021, 04:27 PM - Forum: General Coding Help - Replies (8)

hello. I have this py code. It translates some text into english (default lang).

But I don't know why the translation is not saved in save.txt fil..... More

Print this item

  [FIXED] User-defined module: ModuleNotFoundError error in VSCode but not in PyCharm
Posted by: epoxy - May-30-2021, 02:56 PM - Forum: GUI - Replies (5)

Dear all,

My apologies in advance for such a simple question, but I've spent hours browsing on the Net w/o obtaining a solution. I am newbie to Pyt..... More

Print this item

  Python script for excel sheet
Posted by: Nabil - May-30-2021, 01:30 PM - Forum: General Coding Help - Replies (4)

Hi all,
i'd like to make a script to read esch value in the first column and copy it to the empty cell of the corresponding line as follow:
A1 ..... More

Print this item

Question UnboundLocalError
Posted by: arpitmittal1221 - May-30-2021, 10:55 AM - Forum: Game Development - Replies (6)

Please tell me how to fix the UnboundLocalError
I am currently trying to make a car racing game which is still not completed.

I have linked my cod..... More


Attached Files

.py   Graphics.py (Size: 5.07 KB / Downloads: 473)
Print this item

  db migration(db version control) for python
Posted by: lubaz - May-30-2021, 08:41 AM - Forum: General Coding Help - Replies (2)

Hi,
I am looking for db migration(db version control) api which can be invoked from python code for SQL Server db (like Flyway in Java and dbUpdate ..... More

Print this item

  how to keep VSCode up to date in a Anaconda-environment?
Posted by: apollo - May-30-2021, 08:02 AM - Forum: Bar - No Replies

dear Python-enthusiasts, dear pythonists, dear community,


today - no coding question. Today no question regarding python itself.

the questio..... More

Print this item

  Matching two files based on a spited elements
Posted by: tester_V - May-29-2021, 10:00 PM - Forum: General Coding Help - Replies (5)

Greetings!
I'm trying to find lines from one file in another file.
I have to do that by matching timestamp.
Lines look like this:
File 1
[python]..... More

Print this item

  Missing ticks on X axis
Posted by: drunkenneo - May-29-2021, 04:16 PM - Forum: General Coding Help - No Replies

Hi All,

I have a label column in table which has integers in it. I want to plot negative, positive and neutral on x axis in graph.

Problem is if..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  re.split issue 45 minutes ago paul18fr paul18fr General Codin...
  Backward compatibility qu... 2 hours ago yutaozhou noisefloor News and Disc...
  New to python and coding 7 hours ago lary_p lary_p Homework
  why is the image not show... Yesterday, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 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
Most views
  The best Prog... 578912
  Tutorial Requ... 510123
  Web Scraping ... 441937
  Newbie with P... 385953
  New Users Int... 376712
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+ 12107
buran 8195
snippsat 7388
deanhystad 6908
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Jessicaadams Today
ftk456 Yesterday
sarbogast Yesterday
bmurray Yesterday
kai_cow2710 Yesterday

User Panel Messages

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