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,422
» Latest member: alexfox
» Forum threads: 38,829
» Forum posts: 176,077

Full Statistics

Online Users
There are currently 28 online users.
» 0 Member(s) | 25 Guest(s)
Bing, Google, AOL

Latest Threads
If I open a file write or...
Forum: General Coding Help
Last Post: bowlofred
3 hours ago
» Replies: 5
» Views: 112
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 05:21 AM
» Replies: 3
» Views: 746
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 02:57 AM
» Replies: 8
» Views: 511
Exponential Number Conver...
Forum: General Coding Help
Last Post: DeaD_EyE
Jan-09-2026, 08:47 PM
» Replies: 4
» Views: 455
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 803
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,763
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 732
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: OtiliaGen
Jan-07-2026, 07:13 AM
» Replies: 6
» Views: 1,033
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,622
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 17,380

 
  One silly stripping func to complement the lib
Posted by: voidptr - Oct-03-2020, 09:14 PM - Forum: Code sharing - Replies (4)

Another silly function I use often...
(I got an extention module with functions not in python lib.)

Stripping a bunch of caracters from a string..... More

Print this item

  Real-time processing
Posted by: tagalog - Oct-03-2020, 05:59 PM - Forum: General Coding Help - Replies (5)

Hi, I've just started programming with Python.
I have to write a code trough which I have to process two different signals: ECG and respiration. I ne..... More

Print this item

  easygui use enter instead of ok
Posted by: udihamudi - Oct-03-2020, 04:39 PM - Forum: GUI - Replies (2)

Hi guys, sorry newbe question- is there a way to dismiss easygui dialog by pressing enter on the keyboard rather than clicking "ok" (or some other bu..... More

Print this item

  GCF function w recursion and helper function(how do i fix this Recursion Error)
Posted by: hhydration - Oct-03-2020, 04:02 PM - Forum: Homework - Replies (3)

[python]
def gcd(x,y):
if x > y:
return gcd_helper(x, y, y)
else:
return gcd_helper(x, y, x)
if x == y:
ret..... More

Print this item

  Using different IDE
Posted by: Lass86 - Oct-03-2020, 04:00 PM - Forum: News and Discussions - Replies (4)

Hello everyone,

I'm doing a course in Python and they're recommending Wing IDE. After searching for a while, I just can't seem to make it work wit..... More

Print this item

  Singular error with numpy.linalg.inv
Posted by: LennartLindner - Oct-03-2020, 02:07 PM - Forum: Homework - Replies (1)

Hi there Smile ,

I have a problem with calculating the inverse of a Matrix A. I use the numpy library.

Inverse = numpy.linalg(A)

This wo..... More

Print this item

  Error When Plotting ValueError: x and y must have same first dimension
Posted by: JoeDainton123 - Oct-03-2020, 01:44 PM - Forum: General Coding Help - Replies (1)

Hi all

I was hoping someone could help me.

I am trying to create a series of plots from a large data set.

But every plot has a different set ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Data cardinality is ambiguous: x sizes: 51 y sizes: 26
Posted by: sidra - Oct-03-2020, 11:43 AM - Forum: Data Science - No Replies

hi.
i am new to python. i am trying lstm model with Xtraining data=1405 columns and 26 rows, y training=3 classes(columns) and 26 rows, XTest daya=1..... More

Print this item

  get two characters, count and print from a .txt file
Posted by: Pleiades - Oct-03-2020, 05:08 AM - Forum: General Coding Help - Replies (9)

Hi all, I'm back anyway

The program I wrote is terrible so if anyone can make a different py and give me some pointers well thanks a bunch **wall*..... More

Print this item

  Easy File Scanner
Posted by: Tek - Oct-02-2020, 11:42 PM - Forum: Code Review - Replies (2)

I'm not a heavy Python programmer, but I enjoy it habitually and started a project recently.
The idea is to have a program that checks a backup copy ..... More

Print this item

  Getting largest indices of array less than or equal to an array of numbers
Posted by: schniefen - Oct-02-2020, 10:21 PM - Forum: Homework - Replies (5)

Consider the following code:

[python]
import numpy as np
y_i=np.linspace(0,1,11) #0,0.1,0.2,...,1
y=np.random.uniform(0,1) #random point in [0,1..... More

Print this item

  Creating Plots & Sharing X Axis
Posted by: JoeDainton123 - Oct-02-2020, 10:10 PM - Forum: General Coding Help - Replies (2)

Hello all

I am trying to create a plot in matplotlib where I have 2 x data sets, Data Set 1 which has a list of XY co-ordinates (where the Y values..... More


Attached Files

Thumbnail(s)
   
Print this item

  Very Lost
Posted by: vollynez - Oct-02-2020, 07:20 PM - Forum: Homework - Replies (3)

I'm currently working on a hw assignment which may be very basic for some but they are not really teaching us properly in my opinion. we are being ask..... More

Print this item

  Looping Through Large Data Sets
Posted by: JoeDainton123 - Oct-02-2020, 06:59 PM - Forum: General Coding Help - Replies (10)

Hello all

I have a csv file with over 60,000 rows of data which i have imported into a dataframe, I want to perform varies calculations on this dat..... More

Print this item

  wireless access point on raspberry PI
Posted by: zazas321 - Oct-02-2020, 05:33 PM - Forum: General Coding Help - No Replies

Hello. I have a Raspberry PI as a center unit in my automation system which consists of many remote esp32 devices. I use mqtt to communicate between t..... More

Print this item

  HELP! i need the solution to show for original indexing
Posted by: bntayfur - Oct-02-2020, 05:27 PM - Forum: General Coding Help - Replies (1)

[python]import pandas as pd
df = pd.read_csv('Instances.csv', header = 1)

def Knapsack(K,s,v,n):

# 3 & 4

x = [0] * n

z = 0
..... More

Print this item

  Wifi Camera Connection
Posted by: MeenAg - Oct-02-2020, 04:28 PM - Forum: General Coding Help - Replies (2)

Problem: Need to send commands to camera (akaso brave 7 le) over wifi to have camera take pictures and send pictures back to computer.

Background: ..... More

Print this item

  Making Buttons in Pygame!
Posted by: Russ_CW - Oct-02-2020, 04:07 PM - Forum: Tutorial Requests and Submissions - No Replies

Hi folks,

I got tired of creating buttons every time so I've made a button Class to make the process quicker and easier!

GitHub link below as w..... More

Print this item

  TypeError: string indices must be integers
Posted by: hendern - Oct-02-2020, 04:06 PM - Forum: General Coding Help - Replies (2)

Hi!

I have a piece of code that works fine:

result_ack = client.service.AcknowledgeResults([{'_value_1': 'OK', 'PassageID': id}])
..... More

Print this item

  Syntax error?
Posted by: enderfran2006 - Oct-02-2020, 01:05 PM - Forum: General Coding Help - Replies (5)

Hello I am trying to make a calender on Python but for some reason it is not working. could some one help

[python]event = int(input("When is your e..... More

Print this item

  Telegram Bot for forwarding messages
Posted by: johnotherise - Oct-02-2020, 11:46 AM - Forum: Networking - Replies (1)

First time poster so I hope Im in the right place of the forum. Excuse me in advance if I use wrong terms or names I am an absolute beginner with this..... More

Print this item

  updating cluster of elements based on the max value of distance
Posted by: alex80 - Oct-02-2020, 11:11 AM - Forum: Data Science - No Replies

I working on a machine learning program to cluster a list of elements, then I try to calculate distance euclidean of each element with each cluster, t..... More

Print this item

  Global not working why?
Posted by: Milfredo - Oct-02-2020, 07:29 AM - Forum: General Coding Help - Replies (13)

I know Global's are looked down upon, but in this instance I don't know what else to do. Any in the function at top the print statement works just fin..... More

Print this item

  case transparent names in configpaser
Posted by: Skaperen - Oct-01-2020, 08:35 PM - Forum: General Coding Help - Replies (4)

is there a way to customize configparser to disable case insensitive aspect of INI files. i only need case transparency where sections ..... More

Print this item

  Need help with Flask App
Posted by: Nnot2envy - Oct-01-2020, 07:07 PM - Forum: Web Scraping & Web Development - Replies (8)

I'm working from a basic skeleton code to build up this app but i have been facing issues just trying to initially run the app. after installing flask..... More

Print this item

  Control Minecraft server with Discord bot
Posted by: 1Slim3yBoi - Oct-01-2020, 06:58 PM - Forum: Code Review - No Replies

Send commands and get information to and from Minecraft server. Basic commands like, kick, ban, kill, teleport, whisper, broadcast, change weather, an..... More

Print this item

  newbie question....importing a created class
Posted by: ridgerunnersjw - Oct-01-2020, 06:46 PM - Forum: General Coding Help - Replies (5)

Hello all....
I've created a class in a directory using Python. I go to my command line to import and I get an error 'ModuleNotFoundError'.

Can s..... More

Print this item

  opinion: configparser should have been better
Posted by: Skaperen - Oct-01-2020, 05:32 PM - Forum: News and Discussions - Replies (8)

configparser would have been easier to work with if it had used the dictionary API. i'm not saying not to do what it does, now, but to also do..... More

Print this item

  newbie need help update code
Posted by: Mariaa - Oct-01-2020, 05:04 PM - Forum: General Coding Help - Replies (3)

Hi,
I am really new with phyton coding. I am not programmer and have no IT experience. I just know very basic coding. My coworker wrote the code and ..... More

Print this item

  IS there a way to preserve some order in a tSNE/PCA plot?
Posted by: amjass12 - Oct-01-2020, 04:43 PM - Forum: Data Science - No Replies

Hi,

I was wondering if there is any way to preserve the order of a group of vectors in a tSNE or PCA plot.

I have vectors of common words from d..... More


Attached Files

Thumbnail(s)
   
Print this item

  Locating elements via Selenium
Posted by: peterjv26 - Oct-01-2020, 04:16 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi, Below is an extract from an html page I was working with

<span>
<span class="nice-name">
NIFTY OCT 11200 CE
</span>
</span>

I ..... More

Print this item

  if statement in for loop
Posted by: researcher123 - Oct-01-2020, 02:53 PM - Forum: General Coding Help - Replies (6)

This runs a blank. Any suggestions?
[python]
story="HOW THE WHALE GOT HIS THROAT IN the sea, once upon a time, O my Best Beloved, there was a Whale,..... More

Print this item

  Just need some clarification
Posted by: Tonje - Oct-01-2020, 02:50 PM - Forum: General Coding Help - Replies (3)

[python]boston_celtics = ("kemba", "jaylen", "jayson")

second_player = (boston_celtics[1])

print("The second player in boston is %s" %second_pla..... More

Print this item

  How to append to a set in Python
Posted by: dgrunwal - Oct-01-2020, 02:18 PM - Forum: General Coding Help - Replies (7)

I am trying to append to a set and getting the following error:

AttributeError: 'dict' object has no attribute 'append'

[python]lst = [3, 3, 22,..... More

Print this item

  Dividing list into subsets
Posted by: Michael11 - Oct-01-2020, 12:26 PM - Forum: Homework - Replies (10)

A list is given. You know the number of sticks with which we divide our list into subsets. The rules of division is that the sum of elements in each p..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  If I open a file write or... 3 hours ago Pedroski55 bowlofred General Codin...
  a function to watch files Yesterday, 05:21 Skaperen Skaperen News and Disc...
  python re.finditer return... Yesterday, 02:57 arbiel Pedroski55 General Codin...
  Exponential Number Conver... 01-09, 20:47 Tuurbo46 DeaD_EyE General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
Most views
  The best Prog... 580740
  Tutorial Requ... 522302
  Web Scraping ... 442918
  New Users Int... 388147
  Newbie with P... 387140
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 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
alexfox Yesterday
zalexisshulzeo8879 Yesterday
SUMIATI Yesterday
starboy25 Yesterday
zabenjamitop8877 01-10

User Panel Messages

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