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,247
» Latest member: Kacper
» Forum threads: 38,779
» Forum posts: 175,813

Full Statistics

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

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
Today, 10:18 AM
» Replies: 1
» Views: 55
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Today, 09:52 AM
» Replies: 11
» Views: 268
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Today, 09:41 AM
» Replies: 3
» Views: 108
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Today, 05:07 AM
» Replies: 5
» Views: 236
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 92
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,603
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 190
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 174
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,920
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,410

 
  continuing an f-string
Posted by: Skaperen - Oct-07-2021, 01:34 PM - Forum: News and Discussions - Replies (2)

i just discovered that when continuing an f-string, what i quoted next needs to also be an f-string if it has any formatting elements that need to be ..... More

Print this item

  Having trouble with my Computer Science task
Posted by: Dunxx - Oct-07-2021, 11:03 AM - Forum: Homework - Replies (1)

My computer science teacher doesn't know python, ive spent 20 minutes trying to figure this out but cannot.
This is my task

You are required to pr..... More


Attached Files

Thumbnail(s)
   
Print this item

  install apache-airflow[postgres,google] on Python 3.8.12 virtual env
Posted by: ShahajaK - Oct-07-2021, 10:23 AM - Forum: General Coding Help - Replies (1)

Hello all, this is my first time here so apologies if something is missed or in the wrong place.

I want to create a python 3.8.12 virtual env with ..... More

Print this item

  Radio butto to enable/disable combo box in Tkinter
Posted by: cybertooth - Oct-07-2021, 08:28 AM - Forum: GUI - Replies (5)

I have two rows of combo boxes representing two different groups. the user needs to select either of the group and then choose different values from t..... More

Print this item

  Matplotlib Animation with Threading
Posted by: peterjv26 - Oct-07-2021, 05:12 AM - Forum: General Coding Help - Replies (4)

I have a requirement to do animation with matplotlib and also generate/manipulate the data to be plotted. I was hoping to get this done in the same pr..... More

Print this item

  Creating a function interrupt button tkinter
Posted by: AnotherSam - Oct-07-2021, 05:02 AM - Forum: GUI - Replies (2)

[code]from tkinter import *

def start(num):
global sweepCancel
print(num)
if num < 10:
num = num +1
sweepCancel=wi..... More

Print this item

  Cannot install tensorflow, numpy etc in Pycharm with Python 3.10
Posted by: plumberpy - Oct-07-2021, 02:31 AM - Forum: General Coding Help - Replies (2)

I cannot install tensorflow, numpy etc in Pycharm with Python 3.10

Am I doing something wrong or have to wait for tensorflow etc to be compatible w..... More

Print this item

  Retrieving a column from a data set using a function
Posted by: Bayle - Oct-06-2021, 05:51 PM - Forum: General Coding Help - Replies (6)

Hello all, this is my first time here so apologies if something is missed or in the wrong place.

I have recently started to learn to code and I am st..... More

Print this item

  Synconizing mobile app to desktop
Posted by: hammer - Oct-06-2021, 01:33 PM - Forum: General Coding Help - Replies (2)

Just looking for some expert direction on things to research to achieve the following.Note i am just learning python but have programmed some in VB. I..... More

Print this item

Star I'm getting syntax error while using input function in def.
Posted by: yecktmpmbyrv - Oct-06-2021, 08:56 AM - Forum: General Coding Help - Replies (1)

Please tell me what is wrong and why it is wrong? what is wrong with indentation? please explain
Error when input() is given below def():

[attachm..... More


Attached Files

Thumbnail(s)
       
Print this item

  Using Qt to emit a signal (or maybe with QTimer)
Posted by: pyhill00 - Oct-06-2021, 08:12 AM - Forum: GUI - Replies (1)

I am trying to send an .hdf5 file to a method in the main python file in the class here:[python]

class DesignerMainWindow(QtGui.QMainWindow, ..... More

Print this item

  How to recognize negative in a text?
Posted by: AlekseyPython - Oct-06-2021, 07:54 AM - Forum: Data Science - Replies (1)

With word2vec I can vectorize both individual words and whole texts (as the arithmetic mean of all words included in the text). But at the same time, ..... More

Print this item

  Slittping table into Multiple tables by rows
Posted by: drunkenneo - Oct-06-2021, 06:07 AM - Forum: General Coding Help - Replies (1)

I have a dataframe which have data in it eg:

A B C
1 2 3
4 2 3
D F C
4 5 7

I want the dataframe to split into two diff..... More

Print this item

  Exit function from nested function based on user input
Posted by: Turtle - Oct-05-2021, 08:02 PM - Forum: General Coding Help - Replies (5)

Hello,

Currently making a chat bot that helps with adding some items to a database. I want a user to be able to start adding something to a databa..... More

Print this item

  multiplying an iterator
Posted by: Skaperen - Oct-05-2021, 06:00 PM - Forum: News and Discussions - Replies (9)

if this didn't raise an exception, would you expect it to produce an iterator that multiplies this given iterator?
[python]
given = reversed('foobar..... More

Print this item

  Have you considered adding a section for MicroPython?
Posted by: Tiel - Oct-05-2021, 03:16 PM - Forum: Board - Replies (7)

Sure, I know hardly anyone uses MicroPython but for entirely selfish reasons I would like to see a section on this forum for MicroPython.

Of course..... More

Print this item

  Why not allow users to offer paid bounties?
Posted by: Tiel - Oct-05-2021, 03:04 PM - Forum: Board - Replies (5)

When I ask questions on python-forum.io I typically wonder why users don't have the option to offer paid bounties like https://www.bountysource.com/...... More

Print this item

  Removing nan values from a dict
Posted by: tomtom - Oct-05-2021, 02:57 PM - Forum: General Coding Help - Replies (8)

I have this dict:

Output:
[438.4, 439.18, 439.9, 440.21999999999997, 440.38, 441.08000000000004, nan, nan, nan, nan]
Please how can I rem..... More

Print this item

  PyautoGUI- How to use If - Else with pyautogui.locateCenterOnScreen
Posted by: Tiel - Oct-05-2021, 12:47 PM - Forum: General Coding Help - Replies (3)

Essentially I want my Python script to perform this...

[python] x = True
if x == True:
print('Congratulations, you won!')
..... More

Print this item

  Python AES ECB
Posted by: mistvan - Oct-05-2021, 10:27 AM - Forum: General Coding Help - Replies (1)

Hi,

I'm very new to python and I have a question about AES.
I have to use a function in both python and PHP which uses AES/ECB crypto, but couldn'..... More

Print this item

  Exporting data frame to excel
Posted by: dyerlee91 - Oct-04-2021, 06:35 PM - Forum: Data Science - No Replies

Hey everyone. I've got several lists I want to export to excel, but the only thing my script yields is an empty file with no file type. Can anyone poi..... More

Print this item

  How to increase the size of a png picture for the heatmap of the correlation?
Posted by: lulu43366 - Oct-04-2021, 06:11 PM - Forum: General Coding Help - Replies (9)

Good evening to the community Smile
I am working with the file "Santé3".
I would like to create and download a png picture with a good definit..... More


Attached Files

Thumbnail(s)
   

.csv   Santé3.csv (Size: 5 KB / Downloads: 373)
Print this item

  Redirect uri mismatch github in django
Posted by: SubratP - Oct-04-2021, 05:04 PM - Forum: Web Scraping & Web Development - No Replies

Hello,

I am working in django framework and having an issue with login to github from application using oauth.
When i login into the github accou..... More

Print this item

  A question about 'Event loop is closed'
Posted by: fc5igm - Oct-04-2021, 02:24 PM - Forum: General Coding Help - Replies (3)

I will appreciate it if anyone could give me some help!
My code:
[python]
import asyncio
import aiohttp
from lxml import etree
import requests
..... More

Print this item

  is it pythonic to add a name 'attribute' to an existing variable?
Posted by: amjass12 - Oct-04-2021, 08:26 AM - Forum: General Coding Help - Replies (6)

I have several variables in a list: - they are the result of ana analysis run using another library in python

[python]vars = [run1, run2, run3, run..... More

Print this item

  Showing and saving the output of a python file run through bash
Posted by: Rim - Oct-04-2021, 07:55 AM - Forum: General Coding Help - Replies (3)

Hi all,

I'm new to the world of Python, linux and programming in general so my question may be very basic but I can't find an answer anywhere.

I..... More


Attached Files

.py   mycode.py (Size: 5.69 KB / Downloads: 408)
Print this item

  Why doesn't drop_duplicates() modify my Dataframe?
Posted by: shantanu97 - Oct-04-2021, 04:14 AM - Forum: General Coding Help - Replies (1)

I have two files with exactly same data in it. My python reads that input file and fetch out all the necessary information and then save it in a CSV f..... More


Attached Files

Thumbnail(s)
   

.csv   RDPlod.csv (Size: 1.56 KB / Downloads: 406)
.py   rdplod.py (Size: 3.06 KB / Downloads: 390)
Print this item

  Why built in functions are defined as class?
Posted by: quazirfan - Oct-04-2021, 03:46 AM - Forum: General Coding Help - Replies (5)

In python official documentation there is a list of built in functions. But if I click on ..... More

Print this item

Big Grin question about simple algorithm to my problem
Posted by: jamie_01 - Oct-04-2021, 01:15 AM - Forum: General Coding Help - Replies (1)

question about this line

[code]
#!/usr/bin/python3

names = [] # list
outF = open("myOutFile.txt", "w")

total = 0
p = '\n'
char_count = "C..... More

Print this item

  How can I assign "multiple variables" to a single "value"?
Posted by: Psycpus - Oct-04-2021, 12:16 AM - Forum: General Coding Help - Replies (2)

I'm sorry if the title confused you. This is the first time I'm posting here, forgive me if I have mistakes.

Here's what I'm trying to do:
I'm trying..... More

Print this item

  Need help with my Python code (Multiplication)
Posted by: NeedHelpPython - Oct-03-2021, 07:55 PM - Forum: General Coding Help - Replies (2)

[python]print("\n----Task 4---- Multiple numbers")

numbers = input("Input numbers to multiply: ")
num_1 = int()
num_2 = int()
print("Extracted n..... More

Print this item

  Class-Aggregation and creating a list/dictionary
Posted by: IoannisDem - Oct-03-2021, 05:08 PM - Forum: General Coding Help - Replies (1)

Hello

I am creating three classes and I try to use aggregation/association between them for inheritance.
The first class has the info of the stude..... More

Print this item

  a function common to methods of a class
Posted by: Skaperen - Oct-03-2021, 04:56 PM - Forum: General Coding Help - Replies (7)

when coding a class with multiple methods, how to code a function to be common to all these methods?

Print this item

  List comprehension used differently
Posted by: coder_sw99 - Oct-03-2021, 03:39 PM - Forum: General Coding Help - Replies (3)

Hello,

I saw on GitHub this line of code:

word_list = [letter if letter in used_letters else '-' for letter in word]
But I ..... More

Print this item

  Simple code question about lambda and tuples
Posted by: JasPyt - Oct-03-2021, 01:51 PM - Forum: General Coding Help - Replies (7)

I have a simple code:

my_tuple = (0,1,2,3,4,5,6)
foo = list(filter(lambda x: x-0, my_tuple))

print(foo)
I know what the out..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding Today, 10:18 lary_p Larz60+ Homework
  [Tkinter] I’m building a ... Today, 09:52 tsgiannis tsgiannis GUI
  Help with Serial.write in... Today, 09:41 racingsubby Larz60+ General Codin...
  Backward compatibility qu... Today, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 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...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
Most views
  The best Prog... 578806
  Tutorial Requ... 509769
  Web Scraping ... 441908
  Newbie with P... 385899
  New Users Int... 375920
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Kacper Today
isla123456 Today
vibrometro Today
thebigback Yesterday
dimitriwati Yesterday

User Panel Messages

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