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,241
» Latest member: ColorTig
» Forum threads: 38,777
» Forum posts: 175,795

Full Statistics

Online Users
There are currently 52 online users.
» 2 Member(s) | 41 Guest(s)
Google, Applebot, AOL, Bing, Facebook, DeaD_EyE, Axel_Erfurt

Latest Threads
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
7 hours ago
» Replies: 1
» Views: 43
Data Science
Forum: Data Science
Last Post: mamta25
7 hours ago
» Replies: 3
» Views: 2,577
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
Yesterday, 10:15 PM
» Replies: 1
» Views: 104
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 151
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 134
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 131
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,352
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,383
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,584
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 211

 
  Creating a GUI for Point Cloud visualisation
Posted by: khablt96 - Feb-15-2022, 04:41 PM - Forum: GUI - Replies (6)

Hello everyone, i need to create a interface for the visualisation the Point Cloud (PCD-Format), i tried with this code but it`s doesnt work.
Normall..... More

Print this item

  Loop through a list of string
Posted by: oldtrafford - Feb-15-2022, 01:34 PM - Forum: General Coding Help - Replies (3)

I have this code and i want to loop through the number of cases in the list "Cases". here i put an example with 3 elements in the list.
how can I para..... More

Print this item

  [solved] iteration + df.loc
Posted by: ju21878436312 - Feb-15-2022, 08:14 AM - Forum: General Coding Help - Replies (2)

I'd like to iterate through the lines by a for loop.
And when the condition "df['col2'] == "second"is true, I'd like to do some calculations in this..... More

Print this item

  permutations of varying length
Posted by: Skaperen - Feb-15-2022, 01:22 AM - Forum: News and Discussions - Replies (4)

i need to create permutations of N letters. but i also need all lengths in range(1,N+1), N just happens to also be the number of letters to be..... More

Print this item

  REST API x.509 authentication
Posted by: crossover - Feb-14-2022, 11:34 PM - Forum: General Coding Help - Replies (1)

Hi, new poster here! Been working with Excel, VBA and PowerQuery for a few years now and really wondered what's all the fuss about Python. I work a lo..... More

Print this item

  Exercise about Matplotlib
Posted by: Raselrameda - Feb-14-2022, 07:48 PM - Forum: Homework - Replies (2)

This is just an Exercise and I did it but I have some errors. I attached my file. Could you help me, please?

Write a Python program through the fol..... More


Attached Files

.py   Section 5 Matplotlib Exercise.py (Size: 1.64 KB / Downloads: 353)
Print this item

  Matplotlib multiple set_over / under
Posted by: G_rizzle - Feb-14-2022, 12:13 PM - Forum: General Coding Help - No Replies

Hey,

I'm plotting gradients of a surface. Most of them lay between 0 -1, but there are also a few from 1 - 700.

Right now im coloring gradients ..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to accumulate volume of time series
Posted by: amdi40 - Feb-14-2022, 11:10 AM - Forum: Data Science - Replies (3)

Hello, I am working with a time series containing rain. the data looks like

intensity
0.1
0.2
0.1
0.1
0.0
0.0
0.2

And I want to be able t..... More

Print this item

  how to add two numbers and pass the result to the next page in tkinter?
Posted by: pymn - Feb-14-2022, 02:11 AM - Forum: GUI - Replies (7)

I am new to tkinter. I want to add two numbers and pass the result to the second page. in my code, I don't understand why instead of adding the number..... More

Print this item

  Flow Control Help
Posted by: RoadToSensei - Feb-13-2022, 08:04 PM - Forum: General Coding Help - Replies (5)

I am having a hard time programming a Rock Paper Scissors Code:
[Python]
import random, sys
Wins = int()
Losses = int()
Ties = int()
print ('Let..... More

Print this item

  Cannot get pygame.JOYBUTTONDOWN to register
Posted by: dboxall123 - Feb-13-2022, 07:01 PM - Forum: Game Development - Replies (4)

Hello all,

I'm messing around with a usb joystick I got online, and I cannot seem to get pygame to register it. I have written the following, simpl..... More

Print this item

  Python code to read second line from CSV files and create a master CSV file
Posted by: sh1704 - Feb-13-2022, 05:52 PM - Forum: General Coding Help - Replies (1)

I have a folder lets say as 'input_Folder' which has a list of CSV files with data. I'm trying to write a python code which reads this list of CSV fil..... More

Print this item

  Can this run faster?
Posted by: duckredbeard - Feb-13-2022, 04:15 PM - Forum: Code Review - No Replies

I need help making this run faster. It takes about 7 seconds for the lights to respond when I open or close the door. I'm thinking lines 24-26 and ..... More

Print this item

  Convert string to int
Posted by: Frankduc - Feb-13-2022, 03:47 PM - Forum: General Coding Help - Replies (8)

Hello,

Trying to sum string numbers to int, but there is a ; between them.

[python]tab = input("Éntrez les nombres entiers séparés par des (;) :..... More

Print this item

  Pygame and tkinter
Posted by: seteg - Feb-13-2022, 01:28 PM - Forum: General Coding Help - Replies (1)

I keep getting the error message "AttributeError: type object 'Tk' has no attribute 'tk' when trying to start my program. I have tried to change lette..... More


Attached Files

.py   testing.py (Size: 3.41 KB / Downloads: 315)
Print this item

  What are some good books for learning NumPy and Pandas?
Posted by: Pnerd - Feb-13-2022, 01:02 PM - Forum: General Coding Help - Replies (1)

What are some good books for learning NumPy and Pandas after learning the basics of Python? And which one should I start learning first – NumPy or Pan..... More

Print this item

  ## Its part of my boot camp Task
Posted by: Raselrameda - Feb-13-2022, 08:55 AM - Forum: Homework - Replies (7)

Write a Python program through the following steps:
1. Create a list variable, names, which contains the names of three of your friends.
2. Create a..... More

Print this item

  Excel to Python
Posted by: AntonioCruz - Feb-12-2022, 10:52 PM - Forum: General Coding Help - Replies (2)

Good evening all

I'm brand new to Python and trying to use the following excel array formula
'=SUM(IF(SUMIF($A3:$H3,K1:M1),1))' and I dont know ho..... More

Print this item

  Can't get tkinter button to change color based on changes in data
Posted by: dford - Feb-12-2022, 10:06 PM - Forum: GUI - Replies (4)

I'm trying to get a "Save" button color to change color if any form data has been changed. I got this to work once before but misplaced my flash driv..... More

Print this item

  Use ranking function for different lists
Posted by: klatlap - Feb-12-2022, 09:19 PM - Forum: General Coding Help - Replies (6)

Hi.

I have a function that i use to rank a list from highest to lowest, right now it is hard coded to one list, what i would like to be able to do ..... More

Print this item

Question Having trouble writing an Enum with a custom __new__ method
Posted by: stevendaprano - Feb-12-2022, 10:32 AM - Forum: General Coding Help - Replies (3)

I have an enum subclass where I need to associate two pieces of data with each enum. The first is used for the enum value itself, the second needs to ..... More

Print this item

  [split] [split] New to the forum, how to post a question?
Posted by: karnik - Feb-12-2022, 08:02 AM - Forum: General Coding Help - Replies (2)

Please find my code , I am getting below error

[python]class it :
def rec (self,c,id,ac,bd,ad,bc):
return (c + id)(ac - bd) + (ad + bc)

a ..... More

Print this item

  How can I solve this file handling issue?
Posted by: GiggsB - Feb-12-2022, 06:52 AM - Forum: General Coding Help - Replies (17)

I am using SPI communication protocol, where a microcontroller sends data to the Raspberry Pi. Raspberry Pi collects this data and stores it in a file..... More

Print this item

  About Tkinter Treeview.selection_get() usage.
Posted by: water - Feb-11-2022, 07:03 PM - Forum: GUI - Replies (3)

Tkinter Treeview widget has selection_get, but document not introduce about that, how to use it?

[python]from tki..... More

Print this item

  PYQT charts in tabs
Posted by: frohr - Feb-11-2022, 06:55 PM - Forum: General Coding Help - Replies (10)

Hi, I need draw charts in two tabs. It there any easy way how to do it? Thank you for help.

This is my code.

[python]
import sys
from PyQt5.Q..... More

Print this item

  Hi can you help me this reaction kinetics
Posted by: Vengdasan - Feb-11-2022, 03:54 PM - Forum: General Coding Help - Replies (4)

[python]
import numpy as np
from scipy.integrate import odeint
import matplotlib.pyplot as plt
import math

def rxn(M,t):
R = 8.314
T ..... More

Print this item

  [split] Results of this program in an excel file
Posted by: eisamabodian - Feb-11-2022, 12:31 PM - Forum: General Coding Help - Replies (1)

Hi.
I want to get the results of this program in an excel file.
Nine numbers.I have the results in terminal in python without any problem but how ca..... More

Print this item

  Playing around with a clock's seconds in tkinter
Posted by: menator01 - Feb-11-2022, 10:25 AM - Forum: Code sharing - Replies (1)

Has a grid of numbers from 00 - 59 that highlights the background matching the clocks seconds.

[python]
import tkinter as tk
from time import str..... More

Print this item

  How can I ignore empty fields when scrapping
Posted by: never5000 - Feb-11-2022, 09:19 AM - Forum: Web Scraping & Web Development - No Replies

I'm gathering Card data for a game I like. some cards don't have the certain text and others do, the script searches for it and when it comes across a..... More

Print this item

  CSV to Text File and write a line in newline
Posted by: atomxkai - Feb-11-2022, 12:35 AM - Forum: General Coding Help - Replies (4)

Hello,
The script generates output as 1 line for each record but I wanted to separate the output that looks like this. Your response is greatly app..... More


Attached Files

.csv   datafile.csv (Size: 161 bytes / Downloads: 329)
Print this item

  How to insert different types of data into a function
Posted by: DrData82 - Feb-10-2022, 10:41 PM - Forum: General Coding Help - No Replies

I'm trying to design a function that will insert both a different "oldTable", string, and column name for each iteration. The "withColumn" calculation..... More

Print this item

  Migrating data from oracle into postgres
Posted by: python_student - Feb-10-2022, 08:52 PM - Forum: General Coding Help - Replies (1)

I am trying to migrate data from oracle into postgres using python. My code follow bellow.

[python]def insert_postgres():

con = OracleHook(..... More

Print this item

  Find if chain of characters or number
Posted by: Frankduc - Feb-10-2022, 05:29 PM - Forum: General Coding Help - Replies (4)

Hello,

Try to determine if its a chain of characters or numbers.

[python]
mot = input("input something: ")

for num in mot:
if num not in "0123..... More

Print this item

  How can I target and scrape a data-stat
Posted by: never5000 - Feb-10-2022, 04:29 PM - Forum: Web Scraping & Web Development - Replies (5)

I’m trying to scrape data from page.
There are no classes in the HTML that I can use, but they do have data-stat ID’s how can I target them to scrap..... More

Print this item

  Inverted Index
Posted by: thewal - Feb-10-2022, 03:54 PM - Forum: Data Science - No Replies

Hi,
I am trying to create an Inverted Index, but I cant seem to get it working.
So I have read in xml files that contain ID, DESC and TEXT, and have..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [split] print two differe... 7 hours ago Reema Gribouillis General Codin...
  Data Science 7 hours ago Oshadha mamta25 Data Science
  [Tkinter] I’m building a ... Yesterday, 22:15 tsgiannis woooee GUI
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [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
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
Most views
  The best Prog... 578731
  Tutorial Requ... 509432
  Web Scraping ... 441870
  Newbie with P... 385831
  New Users Int... 375352
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ColorTig Today
AcoolPurpleOne1863 Today
racingsubby Today
Reema Today
lary_p Yesterday

User Panel Messages

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