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,401
» Latest member: oliviajuior7959
» Forum threads: 38,825
» Forum posts: 176,036

Full Statistics

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

Latest Threads
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 2
» Views: 166
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 11:47 AM
» Replies: 2
» Views: 134
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Dec-31-2025, 08:02 PM
» Replies: 6
» Views: 7,185
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Dec-31-2025, 07:58 AM
» Replies: 28
» Views: 15,673
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 215
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,632
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 294
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,648
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 262
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 407

 
  list, int and .grid() come on!
Posted by: Davy_Jones_XIV - Jan-23-2021, 08:44 PM - Forum: Homework - Replies (5)

Hey all,

I am stuck on this error that I thought I understood, but I am struggling, so I decided to reach out to the community.

The code is:
..... More

Print this item

  create new tabs and populate using python
Posted by: reggie4 - Jan-23-2021, 07:47 PM - Forum: General Coding Help - Replies (2)

Hi all,

It it possible to place data programmatically into different spreadsheet tabs using python?

Thanks,

Reggie.

Print this item

Photo How do you translate this in Python?
Posted by: pythonflea - Jan-23-2021, 06:21 PM - Forum: Data Science - Replies (5)

How do you translate this (what I believe is an) algorithm?
[Image: gkzUVYz]
If you can't see the image, kindly click on this li..... More

Print this item

  Outputs "NaN" after "DataFrame columns" function?
Posted by: epsilon - Jan-23-2021, 06:17 PM - Forum: Data Science - Replies (7)

[python]
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy.signal import argrelextrema

data = pd.read_csv("Data..... More

Print this item

  Flask-WTF - FlaskForm
Posted by: mateuszpozn - Jan-23-2021, 02:07 PM - Forum: Homework - Replies (2)

Hi all Smile
I am learning Flask and I have trouble understanding FlaskForm from Flask-WTF.
Code below.

hello.py
[python]
class NameForm(..... More

Print this item

  loading a dictionary
Posted by: Skaperen - Jan-23-2021, 08:00 AM - Forum: General Coding Help - Replies (4)

i get a dictionary returned from a function call. this is a bunch of variable name keys and new values for them. there are a lot of them and a very ..... More

Print this item

  testing value type
Posted by: Skaperen - Jan-23-2021, 01:13 AM - Forum: News and Discussions - Replies (1)

what is the reason we should do isinstance(foo,str) instead of type(foo) is str or type(foo) == str..... More

Print this item

  len(row) does not count rows correctly
Posted by: quest_ - Jan-22-2021, 11:35 PM - Forum: General Coding Help - Replies (3)

Hello,

I have this code script:
[python]
triplets = tuple(itertools.product((0, 1), repeat = 2))
freq = []
sums = {}
for row in newlist2:
print(..... More

Print this item

  [PyGTK] How to center text on multi-line buttons?
Posted by: Lomax - Jan-22-2021, 11:25 PM - Forum: GUI - Replies (3)

Title pretty much says it all; if I make a button in GTK with a text label that has line-break(s) in it, the text on the label ends up being left alig..... More

Print this item

  Request for [PyGTK] or [GTK] prefix in GUI forum
Posted by: Lomax - Jan-22-2021, 11:09 PM - Forum: News and Discussions - Replies (2)

I am the only one building Python GUI apps with GTK3? Surely not! Or have I missed something? Undecided

Print this item

  MP3 Tags to Excel Not working
Posted by: giddyhead - Jan-22-2021, 09:16 PM - Forum: General Coding Help - Replies (5)

Hello,

I have been trying for a while now to have the MP3 Tags from the song files added to an excel spreadsheet. When I use the gettags[0] in the..... More

Print this item

  Making new lines of code
Posted by: AvioxyYT - Jan-22-2021, 06:25 PM - Forum: General Coding Help - Replies (1)

Hi there!

Sorry about the lame question but I just started using python and am wondering how to make a new line like
this without it running the code..... More

Print this item

  Virtual environment and upgrading python 3.5 to 3.9
Posted by: NeilUK - Jan-22-2021, 05:34 PM - Forum: General Coding Help - Replies (4)

I have python 3.5.2 with a single virtual environment on linux mint 18, which also has a system 2.7.12. I have installed a number of packages using pi..... More

Print this item

  Python Doubt
Posted by: csrlima - Jan-22-2021, 05:23 PM - Forum: General Coding Help - Replies (5)

Hi , i need some help in python script :
Im receiveing data from USB0 of my Raspberry Pi and for now , with my python script i can print all data . W..... More

Print this item

  sorting alphanumeric values in a human way
Posted by: idiotonboarding - Jan-22-2021, 04:37 PM - Forum: General Coding Help - Replies (3)

So simple question, I could make it work in a lambda probably but my experience is limited and I suspect there may already be a built in to do what I ..... More

Print this item

  I have two Same Code but One of them Doesnt Work
Posted by: beginner721 - Jan-22-2021, 04:32 PM - Forum: General Coding Help - Replies (6)

Hello everyone.. I have a problem
I have two Same Code but One of them Doesnt Work

This is the one that doesnt work
[python]balance=1000
## 1= BALANC..... More

Print this item

  Hide source code from python process itself
Posted by: xmghe - Jan-22-2021, 04:07 PM - Forum: Web Scraping & Web Development - Replies (2)

If someone manages to hack my web application and/or the python interpreter itself, is it possible to prevent the python process from extracting its o..... More

Print this item

  Sublime Text
Posted by: TechNitium - Jan-22-2021, 03:38 PM - Forum: General Coding Help - Replies (4)

I am using sublime text but when I run/build it, my code just prints and isn't interactive so how do I run it through terminal.

Print this item

  convert List with dictionaries to a single dictionary
Posted by: iamaghost - Jan-22-2021, 02:28 PM - Forum: General Coding Help - Replies (3)

Hey guys,

i have a matrix with lots of zeroes. In order to make the code more efficient i want to write code, that takes the rows and colums as ind..... More

Print this item

  How do I end my while loop
Posted by: TechNitium - Jan-22-2021, 01:56 PM - Forum: General Coding Help - Replies (5)

[python]choice = input("")
c = ("enter")

while c != ("exit"):
if (choice) == (2):
new_entry()
c = ("enter")
#if you select optio..... More

Print this item

  How to update values in a pyarrow table?
Posted by: xraphael75 - Jan-22-2021, 01:29 PM - Forum: General Coding Help - Replies (1)

I have a python script that reads in a parquet file using pyarrow. I'm trying to loop through the table to update values in it. If I try this:

[pytho..... More

Print this item

  Working with Timestamp in Mulitindex
Posted by: krischanb - Jan-22-2021, 12:52 PM - Forum: General Coding Help - No Replies

Hi,
I imported a csv containing from three different temprature sensors values taken each 10 minutes. The point, where I am stuck right now is the Mu..... More

Print this item

  Filesystem folder size sort
Posted by: reggie4 - Jan-22-2021, 12:45 PM - Forum: General Coding Help - No Replies

Hi all,

I have a large number of videos in a large number of folders on a 4TB removable hard drive. I want to backup this 4TB to 4x1TB drives. The ..... More

Print this item

  Why do I get Syntax error?
Posted by: TechNitium - Jan-22-2021, 12:25 PM - Forum: General Coding Help - Replies (1)

[python]#getpass will hide what the person is typing during the password
import getpass

def new_entry():
#input the username and password and t..... More

Print this item

  TKinter restarting the mainloop when button pressed
Posted by: zazas321 - Jan-22-2021, 08:25 AM - Forum: GUI - Replies (7)

Hello. I have a complex program running in Python and I want to be able to interrupt it and restart the mainloop at any time I want.

I have made a ..... More

Print this item

Star Recursively convert nested dicts to dict subclass
Posted by: Alfalfa - Jan-22-2021, 02:37 AM - Forum: General Coding Help - Replies (1)

Context: Elegant solution needed to monitor and save database changes during runtime. To minimze IO, the solution should be based on signals ra..... More

Print this item

  Open a setup python file?
Posted by: Adlo777 - Jan-22-2021, 12:10 AM - Forum: Homework - Replies (2)

I recently downloaded the VSL compiler developed by Matthieu Amiguet (http://www.matthieuamiguet.ch/pages/compilateurs) to learn how to compile with P..... More

Print this item

  Trying to solve an exercise
Posted by: frafrog - Jan-21-2021, 10:59 PM - Forum: Homework - Replies (3)

Hello, I'm trying to solve this exercise from the book think python :
Exercise 9.6. Write a function called is_abecedarian that returns True if the l..... More

Print this item

  What book/course do you recommend for an "advanced" beginner?
Posted by: Edmond - Jan-21-2021, 09:31 PM - Forum: News and Discussions - Replies (3)

Hello! I'm teaching myself to code with the eventual goal of a career switch into data science (long term). I've started by reading books and watchi..... More

Print this item

  Object detection on ground via the use of geo/sat UAV images
Posted by: hobbyist - Jan-21-2021, 09:02 PM - Forum: General Coding Help - Replies (2)

Hello,

I have few UAV images and I am searching how to do 2 things.
1) Identify specific objects on ground and isolate these objects as new images
2)..... More

Print this item

  Simple longline function
Posted by: programerAnel - Jan-21-2021, 07:17 PM - Forum: Code Review - No Replies

Please guys don't tell me that I must use the save to path and load from path

[python]def reduce_image_size(dmy):
with open('MyTempImage.jpg'..... More

Print this item

  Cannot Assign right Answers To Shuffled Questions
Posted by: Boblows - Jan-21-2021, 06:50 PM - Forum: General Coding Help - Replies (6)

Hello guys,just started coding with python and come up with an idea of writing multiple choice exam wich shuffles the questions with random.shuffle i..... More

Print this item

  getpass.getpass error
Posted by: Juice1277 - Jan-21-2021, 06:49 PM - Forum: General Coding Help - Replies (3)

Hey guys I'm getting this error when trying to run my code. Anyway someone could help me out. Thanks!
Bellow is the command line trying to run th..... More

Print this item

  Where to add own python modules in WinPython?
Posted by: HinterhaeltigesSchlaengelchen - Jan-21-2021, 04:11 PM - Forum: General Coding Help - Replies (1)

i have a WinPython distribution decicated to a project that is used by multiple developers. I added all modules required for the project via WinPython..... More

Print this item

  .remove() from a list - request for explanation
Posted by: InputOutput007 - Jan-21-2021, 03:52 PM - Forum: General Coding Help - Replies (3)

Hi guys,

I am learning python and I came across a weird thing which is hard for me to find the cause of it.
Here is my code:
[python]
l = [1, 2,..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Check if running from she... Yesterday, 11:52 rjdegraff42 noisefloor General Codin...
  Sorry Help Yesterday, 11:47 BioNanoTech noisefloor General Codin...
  IP address for users 12-31, 20:02 Robots DeaD_EyE Networking
  Merge video with subtitle... 12-31, 07:58 Pavel_47 OtiliaGen General Codin...
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
Most views
  The best Prog... 580483
  Tutorial Requ... 520164
  Web Scraping ... 442800
  Newbie with P... 387022
  New Users Int... 386837
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
oliviajuior7959 Yesterday
aoliiapetrov4786 Yesterday
zanaalietexaxd4208 Yesterday
zasamueluniorz7349 Yesterday
BioNanoTech Yesterday

User Panel Messages

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