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,251
» Latest member: ftk456
» Forum threads: 38,780
» Forum posts: 175,823

Full Statistics

Online Users
There are currently 43 online users.
» 0 Member(s) | 35 Guest(s)
Google, Bing, Mojeek, Facebook, Internet Archive

Latest Threads
New to python and coding
Forum: Homework
Last Post: lary_p
2 hours ago
» Replies: 5
» Views: 139
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 07:26 PM
» Replies: 2
» Views: 84
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 222
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 350
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Nov-11-2025, 05:07 AM
» Replies: 5
» Views: 309
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 134
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,635
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 229
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 221
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,652

 
  Windows 3.7.10 Installer
Posted by: bean2099 - Jun-17-2021, 04:21 PM - Forum: General Coding Help - Replies (3)

Help!

I need to upgrade 3.7.6 to the latest build of 3.7.10 (security fixes). I can't seem to figure out how to compile a new installer. Any help..... More

Print this item

  I don't undestand why my code isn't working.
Posted by: RuyCab - Jun-17-2021, 02:56 PM - Forum: General Coding Help - Replies (2)

[python]treinamentos = [
{'treinamento':'Scrum','moedas':30},
{'treinamento':'Data Science','moedas':40},
{'treinamento':'Gestão de Projetos','moed..... More

Print this item

  Averaging sensor results
Posted by: igorv1234 - Jun-17-2021, 02:44 PM - Forum: General Coding Help - Replies (1)

I have written the following code in python to monitor three sensor values per minute
My goal is to measure every second and take the average per min..... More

Print this item

  Key Error: os.environ["HOME"]
Posted by: Anldra12 - Jun-17-2021, 02:32 PM - Forum: General Coding Help - Replies (12)

I run the python script in python3.8 and this return an key error

Error:
raise KeyError(key) from None E KeyError: 'HOME'
[b]Line No: 20 co..... More

Print this item

  Reading and storing a line of output from pexpect child
Posted by: eagerissac - Jun-17-2021, 12:22 PM - Forum: General Coding Help - Replies (1)

I'm new to learning pexpect and regex and I'm having some trouble figuring out how to get the output of a command I send and store it in a variable, b..... More

Print this item

  [Solved] Please, help me find a simple mistake
Posted by: AlekseyPython - Jun-17-2021, 10:24 AM - Forum: General Coding Help - Replies (2)

Fedora 34, Python 3.9.5

[python]from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QWidget

class M_A(type(QWidget), type):pass
class A(QW..... More

Print this item

  Dynamically changing Xpath
Posted by: AgileAVS - Jun-17-2021, 10:03 AM - Forum: Web Scraping & Web Development - Replies (3)

Hey I have been trying to extract data from table from this website:
https://www.macrotrends.net/stocks/chart...ial-ratios
..... More


Attached Files

.py   Key Ratios.py (Size: 7.62 KB / Downloads: 410)
Print this item

  Print Report Invoice
Posted by: nio74maz - Jun-17-2021, 08:25 AM - Forum: General Coding Help - No Replies

Good day, I'm would like make a management software, I'm searching a library for to do reports invoices and then print them (similar Crystal report i..... More

Print this item

  How to automatically close mathplotlib output window?
Posted by: Pedroski55 - Jun-17-2021, 05:12 AM - Forum: General Coding Help - Replies (2)

I was hoping I could display the output window for a few seconds then close it automatically, but that's not happening.

What am I doing wrong?

[..... More

Print this item

  Find factor to match test curve to golden curve
Posted by: SriRajesh - Jun-17-2021, 04:39 AM - Forum: General Coding Help - No Replies

Hi,
I have a golden curve and test curve, I want to find a factor to multiply each value in test data such as to match (close to) golden curve slope ..... More


Attached Files

.csv   test.csv (Size: 137 bytes / Downloads: 462)
Print this item

  find 'yesterdays files'
Posted by: tester_V - Jun-16-2021, 09:50 PM - Forum: General Coding Help - Replies (8)

Greetings!
I guess the question is not new, but I cannot find a clan small snippet.
I found one here, on this forum - it has a function and 25 lines..... More

Print this item

  This is an Object - Code interpretation
Posted by: JoeDainton123 - Jun-16-2021, 06:50 PM - Forum: General Coding Help - Replies (2)

Hello all

I am trying to gain a better understanding of object orientation programming.

I cam across the following code:-

[python]

import ..... More

Print this item

  Mastermind game in python
Posted by: veronwltan - Jun-16-2021, 04:46 PM - Forum: General Coding Help - Replies (5)

First year student here trying to code a Mastermind game in python (3.9.4) and the ending code doesnt seems to print the winning messages (As in after..... More

Print this item

  Coding a formula
Posted by: citizen - Jun-16-2021, 03:23 PM - Forum: General Coding Help - Replies (2)

Hello

I'm learning python, and have an exercise to do in order to practice bracketing operators. The exercise is to code the following formula:

..... More

Print this item

  AttributeError: 'DataFrame' object has no attribute 'Articles'
Posted by: Anldra12 - Jun-16-2021, 02:43 PM - Forum: General Coding Help - Replies (5)

Purposes I want to plot feathers importance for data prediction and training and testing

[b]Running Time Err..... More

Print this item

  [Solved] TypeError when calling function
Posted by: Laplace12 - Jun-16-2021, 12:56 PM - Forum: General Coding Help - Replies (2)

Hey,

I'm trying to plot a multi-gaussian function to some data, but the code runs a TypeError:

[python]import numpy as np
import matplotlib.pyp..... More

Print this item

  Missing Schema-Python Question
Posted by: Andwconteh - Jun-16-2021, 12:52 PM - Forum: General Coding Help - Replies (1)

Good morning all,

My web scraping program gives me a missing schema invalid URL error, and I do not know how to fix it. I am surely appreciate if s..... More

Print this item

  easy name problem
Posted by: Steinsack - Jun-16-2021, 12:34 PM - Forum: General Coding Help - Replies (1)

Hello,

I am a beginner in Phyton. It is a very basic question I guess, but pls help me anyway :)

[python]listA=[]
a=input()
globals()[a]=[] ..... More

Print this item

  [Solved] Using readlines to read data file and sum columns
Posted by: Laplace12 - Jun-16-2021, 08:24 AM - Forum: General Coding Help - Replies (4)

Hey! I'm working with a data file with 5 columns. My aim is to read from a data file the first and last 20 lines and calculate the sums of first and l..... More

Print this item

  idle and characters with decimal value>127
Posted by: hakelm - Jun-16-2021, 07:34 AM - Forum: General Coding Help - Replies (14)

If I running python 3.8 in the terminal do
print(chr(65)+chr(128))
I get the expected result
A�
but if I execute the same command in idle 2.7.12 ..... More

Print this item

  What WERE They Thinking : Python 3.9x
Posted by: millpond - Jun-16-2021, 12:50 AM - Forum: News and Discussions - Replies (8)

On my Debian Install I loaded v3.9 in /opt and all worked out fne. It doesnt mess with system Python. All is well.

Then comes Win.
I have Win7.1..... More

Print this item

  Learn Python via Zoom Meetings?
Posted by: davidorlow - Jun-16-2021, 12:28 AM - Forum: News and Discussions - Replies (1)

So, the last few weeks, I've been using the app Meetup to find meetings about different topics. It's super cool because there are people out there th..... More

Print this item

  tkinter showing image in button
Posted by: rwahdan - Jun-15-2021, 10:46 PM - Forum: GUI - Replies (3)

Hi,

I am trying to show an image in a button. the approch is to read the path from a file and that path is in the last line. I am able to read the ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Different versions of Python3 and Python
Posted by: Led_Zeppelin - Jun-15-2021, 06:50 PM - Forum: General Coding Help - Replies (2)

I am confused about something that is very simple(or should be). You can see from the code below that:

[output]
(base-dup) C:\Users\james\Download..... More

Print this item

  pdfminer to csv
Posted by: mfernandes - Jun-15-2021, 06:22 PM - Forum: General Coding Help - Replies (2)

Dear Python users,
I am currently learning python and using python 3 version.
I am trying to convert several pdf files into 1 csv file.
pdfminer se..... More

Print this item

  Handle http protocol
Posted by: JohnnyCoffee - Jun-15-2021, 04:11 PM - Forum: Networking - Replies (1)

I am designing a web server for python without using the module ( http.server ), as it is not recommended for production environment. I would like to ..... More

Print this item

  My .exe made using Python being detected as a virus
Posted by: 100grassfed - Jun-15-2021, 03:19 PM - Forum: General Coding Help - Replies (2)

I am currently trying to make simple code that misspells a word and copies it to your clipboard but when I share it to another computer it is detected..... More

Print this item

  @property vs __set__ / __get__ and __setattr__ / __getattr__
Posted by: okhajut - Jun-15-2021, 12:15 PM - Forum: General Coding Help - Replies (1)

I am new to Python and trying to get my head around Python OOP. I can see that using separate getter and setter is a bad approach and becomes tedious ..... More

Print this item

  Make Python as portable
Posted by: flaviu2 - Jun-15-2021, 11:01 AM - Forum: News and Discussions - Replies (3)

Hello Python users. Is there any way to use Python as portable ?

I have installed Python on my C:\Program Files, copy this folder som..... More

Print this item

  [solved] dataframe and read_csv
Posted by: ju21878436312 - Jun-15-2021, 09:44 AM - Forum: General Coding Help - Replies (4)

Aim: I would like to convert data, read with read_csv and convert it to a dataframe.
What I've tried: 1. data = pd.read_csv(...) 2. pd.DataFrame(dat..... More


Attached Files

.csv   minimal_data.csv (Size: 418 bytes / Downloads: 435)
Print this item

Question Problem with string and \n
Posted by: Falassion - Jun-15-2021, 06:38 AM - Forum: General Coding Help - Replies (6)

Hi all,

I have a csv file from which I correctly take a string in a list (list1). In the csv file the element is like:

row
row2
row3
row4

..... More

Print this item

  Sort and merge
Posted by: flintstone - Jun-14-2021, 03:48 PM - Forum: Homework - Replies (1)

I have 2 excel tabs : Purchase Order and Goods Received.
I am trying to use Python to match the Purchase Order from both tabs and then, proceed to m..... More


Attached Files

.zip   partsmerged.zip (Size: 186.65 KB / Downloads: 436)
Print this item

  I am getting a NameError that is not defined and not sure why it happen
Posted by: rick0922 - Jun-14-2021, 12:54 PM - Forum: General Coding Help - Replies (5)

This is my Code:

def test():
    exec("a=100")
    print(a)
    
test()
The Traceback i get is this:
[error]Traceback (most re..... More

Print this item

  loop running indefinitely
Posted by: shantanu97 - Jun-14-2021, 12:10 PM - Forum: General Coding Help - Replies (6)

My elif command is running indefinitely. My elif logic is simple. I have two API. 1) USA API- I wanted this API need should work only before year 1985..... More


Attached Files

.py   check.py (Size: 6.7 KB / Downloads: 428)
Print this item

  Trying to import packages on Pycharm
Posted by: KTam0916 - Jun-14-2021, 10:33 AM - Forum: Homework - Replies (1)

I'm trying to learn to code in Python (via Pycharm) and use the Kalman Filter in it. In this ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 2 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
  Backward compatibility qu... 11-11, 05:07 yutaozhou Gribouillis News and Disc...
  [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
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
Most views
  The best Prog... 578903
  Tutorial Requ... 510093
  Web Scraping ... 441935
  Newbie with P... 385949
  New Users Int... 376652
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
ftk456 Yesterday
sarbogast Yesterday
bmurray Yesterday
kai_cow2710 Yesterday
Kacper 11-11

User Panel Messages

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