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,781
» Forum posts: 175,825

Full Statistics

Online Users
There are currently 50 online users.
» 0 Member(s) | 42 Guest(s)
Bing, Google, Facebook, Apple

Latest Threads
re.split issue
Forum: General Coding Help
Last Post: paul18fr
20 minutes ago
» Replies: 0
» Views: 4
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
1 hour ago
» Replies: 6
» Views: 322
New to python and coding
Forum: Homework
Last Post: lary_p
5 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: 92
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 226
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 351
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 136
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: 232
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 224

 
Question Embedding a python file online
Posted by: Dreary35 - Jun-10-2021, 05:05 PM - Forum: General Coding Help - No Replies

I was wondering if there is a way I could embed a .py file online. I want to participate in the GMTK jam but I want to use pygame for it so I w..... More

Print this item

Video name is not defined
Posted by: pygauss10 - Jun-10-2021, 04:31 PM - Forum: General Coding Help - Replies (6)

(**English is not my native language; please excuse typing errors.)
I am running this opencv code with pycharm, but the weird thing is that it shows ..... More

Print this item

  Plotting sum of data files using simple code
Posted by: Laplace12 - Jun-10-2021, 01:26 PM - Forum: General Coding Help - Replies (3)

Hey,

I'm trying to plot the sum of 25 data files with 5 columns. The code is this:

[python]import matplotlib.pyplot as plt
import numpy as np
..... More

Print this item

  Check if a Group/dataset path exists
Posted by: paul18fr - Jun-10-2021, 12:03 PM - Forum: Data Science - No Replies

Hi

I'm working on hdf5 files having group and subgroups, so I'm providing the path to the datasets or the groups. In practise, I know how to check ..... More

Print this item

  first project read from xslx get only 1 column\row?
Posted by: korenron - Jun-10-2021, 10:12 AM - Forum: Data Science - Replies (9)

Hello
I have xlsx file with 6 columns with 100 rows ~ .
the first thing I want to do is :
Read column A see the data , insert him to a list if it'..... More

Print this item

  scraping a table from an http page
Posted by: vchealy - Jun-10-2021, 09:40 AM - Forum: General Coding Help - Replies (1)

A website that I have to log into and work my way through to a page with selenium is okay.

The problem I have is getting the one table that is show..... More

Print this item

  Stop the serial read until video is recorded
Posted by: vj01 - Jun-10-2021, 09:33 AM - Forum: General Coding Help - Replies (1)

Hi

im new to python so of course i do understand that if this is a stupid question or at least an easy fix. my code does work as it takes a picture..... More

Print this item

  Dugeon maze game with turtle module.
Posted by: Newbie1114 - Jun-10-2021, 09:01 AM - Forum: Game Development - Replies (3)

Hi ,I am making a dungeon maze game with turtle module and there is an error and i don't know that what does that error mean and how to fix it.Please ..... More

Print this item

  Modifying Class File/ Name-Mangling
Posted by: CWillis105 - Jun-09-2021, 11:33 PM - Forum: Homework - Replies (4)

Python 3.9.5
Mac OS

Hi All,

I am working on an assignment and could really use some help. It involves two different files (Customer.py and main..... More

Print this item

  AttributeError while switching between Sprite Animations
Posted by: paulmills3 - Jun-09-2021, 02:51 PM - Forum: Game Development - Replies (2)

Getting an AttributeError(AttributeError: 'builtin_function_or_method' object has no attribute 'get_rect') after I added code to switch Sprite Animati..... More

Print this item

  Question from complete python's newbie
Posted by: Davicom - Jun-09-2021, 02:42 PM - Forum: General Coding Help - Replies (3)

Hi all,
there is a powerful python based program https://github.com/siberian-git/Xnoppo
This program works as an emby client and permit to reproduc..... More

Print this item

  Password Protection to the file
Posted by: San - Jun-09-2021, 02:00 PM - Forum: General Coding Help - No Replies

Hi All,

i am currently reading file from azure blob storage and sending email . I would like to add password protection to the attachment.
below i..... More

Print this item

Heart near "(": syntax error
Posted by: Maryan - Jun-09-2021, 01:52 PM - Forum: General Coding Help - Replies (3)

Hi guys, I need little help with the code below. I want to edit the guest room, name or surname, but I get "near "(": syntax error".
Any help is appr..... More

Print this item

  Python Regular expression, small sample works but not on file
Posted by: Acernz - Jun-09-2021, 01:34 PM - Forum: General Coding Help - Replies (5)

Hi Experts,

Small sample:
<span id="AccordionHeaderText52741" class="clsAccordionHeaderText"><a id="AccordionHeaderTab52741" tabIndex="101" onkey..... More


Attached Files

.txt   textsample.txt (Size: 29.62 KB / Downloads: 540)
Print this item

  No module named theapp
Posted by: Clives - Jun-09-2021, 11:55 AM - Forum: Web Scraping & Web Development - Replies (10)

Greetings,
I am developing a Flask application, but keep getting an error from:
import theapp
and
from theapp import app??

This is the fold..... More


Attached Files

Thumbnail(s)
   
Print this item

  VS Code debugger using wrong Python environment
Posted by: topfox - Jun-09-2021, 10:01 AM - Forum: General Coding Help - No Replies

I hope you can help me persuade the VS Code debugger to use the right environment.
Trying to run this sample file, mintest.py:

[python]import nump..... More

Print this item

  Fitting Gaussian curve to data file
Posted by: Laplace12 - Jun-09-2021, 09:15 AM - Forum: General Coding Help - No Replies

Hey,

I'm trying to build a code to fit Gaussians (1, 2 & 3) to some data to determine peak position, and though the code in itself seems to be worki..... More


Attached Files

Thumbnail(s)
   
Print this item

  How does this if clause work?
Posted by: Pedroski55 - Jun-09-2021, 09:04 AM - Forum: General Coding Help - Replies (3)

In this thread from just a couple of days ago here, an elegant solution was given.

I was impress..... More

Print this item

  Understanding Python super() for classes
Posted by: OmegaRed94 - Jun-09-2021, 08:48 AM - Forum: General Coding Help - Replies (1)

Good day, Dear Pythonistas

Could you, please, explain in a simple way why super() is used for classes sometimes. I saw many examples dealing..... More

Print this item

  how long can a line of code be?
Posted by: Skaperen - Jun-09-2021, 12:39 AM - Forum: General Coding Help - Replies (2)

how long can a line of code be that is generated and compiled and run without any biological creature trying to read it?

Print this item

  Acces atributes from a button defined in a class inside the .kv
Posted by: Tomli - Jun-09-2021, 12:30 AM - Forum: GUI - Replies (2)

Hello!
Lately I have been trying my luck on kivy, and I'm always having problem when I try to access attributes that have been defined in the .kv

..... More

Print this item

  Why does Python not use parenthesis to contain loops?
Posted by: davidorlow - Jun-08-2021, 10:48 PM - Forum: General Coding Help - Replies (3)

I'm following along with the MIT online course. I am a very elementary programmer, but I have some really basic knowledge of c++ and c#. Then I have..... More

Print this item

  bytes f-string ?
Posted by: Skaperen - Jun-08-2021, 10:43 PM - Forum: General Coding Help - Replies (5)

i can make a bytes string:

bs = b'foobar'
i can make an f-string:
foo = 'hello'
fs = f'{foo}bar'
no..... More

Print this item

  How to import an xml file to Pandas
Posted by: sjhazard - Jun-08-2021, 08:19 PM - Forum: Data Science - No Replies

Hello All,
I am a new Pandas user, I am now familiar with this application. I'm fine with importing a CSV file and similar data tables.
However, for..... More


Attached Files

.xml   teszt1.xml (Size: 7.92 KB / Downloads: 0)
Print this item

  listbox constantly being added to the list.
Posted by: speedev - Jun-08-2021, 07:50 PM - Forum: GUI - Replies (4)

Hi,

   

I made a simple left-justified menu with buttons. Assign functions as commands to buttons. That is, the menu contents are ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Read file, reformat and write new file
Posted by: bryanmartin113 - Jun-08-2021, 05:44 PM - Forum: General Coding Help - Replies (1)

Hi,

I'm new to coding and struggling with a file that will take me an age to do manually.

I have a file C:\file.txt in format at the bottom. I w..... More

Print this item

  Round float according to uncertainty
Posted by: CatorCanulis - Jun-08-2021, 02:10 PM - Forum: Data Science - Replies (2)

Hello everyone,

I'm familiar with the rounding function in python but at work I encountered a new situation.

Say you have a measurement result l..... More

Print this item

  Why are two variables unequal as they point to the same value?
Posted by: fc5igm - Jun-08-2021, 01:29 PM - Forum: General Coding Help - Replies (4)

[python]>>> girl
<_io.TextIOWrapper name='D:\\python\\works\\girl_3.txt' mode='w' encoding='cp936'>
>>> fgirl3
<_io.TextIOWrapper name='D:\\python\..... More

Print this item

  List comprehension and Lambda
Posted by: cametan - Jun-08-2021, 06:54 AM - Forum: General Coding Help - Replies (2)

Let's think easy case. Use the map function like this:

test = map(lambda x: x, [1, 2, 3])
This gives us an iteratable object. T..... More

Print this item

  Python Style and Naming Variables
Posted by: rsherry8 - Jun-07-2021, 09:00 PM - Forum: General Coding Help - Replies (3)

Please consider the following Python code:
[python]def my_sum(array):
ret = 0
for i in range(len(array)):
ret += array[i]
ret..... More

Print this item

  [solved] Save a matplotlib figure into hdf5 file
Posted by: paul18fr - Jun-07-2021, 08:40 PM - Forum: Data Science - Replies (1)

Hi

I've tried several methods to save directly a figure from Matplotlib into a hdf5 file, but Hdfview cannot open the file ("error opening file"): ..... More

Print this item

  Error about parser library and tree builder
Posted by: Led_Zeppelin - Jun-07-2021, 07:09 PM - Forum: General Coding Help - Replies (8)

I am trying to run the code shown below. It fails at the line indicated as shown in this error;

[code]
FeatureNotFound T..... More

Print this item

  Export AWS Cognito Users
Posted by: fioranosnake - Jun-07-2021, 02:50 PM - Forum: General Coding Help - No Replies

HI,


Ive found the following solution : https://medium[url=https://python-forum.io/thread-33894.html]..... More

Print this item

  Get Latitude and Longitude for Multiple address
Posted by: San - Jun-07-2021, 01:47 PM - Forum: General Coding Help - Replies (5)

have list of companies in excel with address , i need to get Latitude and Longitude details for 300 companies.

I found the below code

[python]im..... More

Print this item

  Detect http request on my ip
Posted by: riccardoob - Jun-07-2021, 12:33 PM - Forum: Networking - Replies (1)

I want to write a python script that detects when a http request is made on the IP address of my home network. I have a dynamic DNS set up so that I c..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  re.split issue 20 minutes ago paul18fr paul18fr General Codin...
  Backward compatibility qu... 1 hour ago yutaozhou noisefloor News and Disc...
  New to python and coding 5 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... 578910
  Tutorial Requ... 510115
  Web Scraping ... 441937
  Newbie with P... 385952
  New Users Int... 376692
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