Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,955
» Latest member: samuel223
» Forum threads: 38,728
» Forum posts: 175,529

Full Statistics

Online Users
There are currently 46 online users.
» 1 Member(s) | 41 Guest(s)
Bing, Google, AOL, AOL, snippsat

Latest Threads
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
17 minutes ago
» Replies: 2
» Views: 94
How to retrieve money los...
Forum: General Coding Help
Last Post: samuel223
32 minutes ago
» Replies: 1
» Views: 12
how to export a dictionar...
Forum: GUI
Last Post: Pedroski55
10 hours ago
» Replies: 3
» Views: 158
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Today, 01:04 AM
» Replies: 0
» Views: 346
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 02:48 PM
» Replies: 10
» Views: 29,375
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,403
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Sep-23-2025, 09:08 AM
» Replies: 0
» Views: 282
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Sep-23-2025, 03:29 AM
» Replies: 2
» Views: 730
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 929
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,193

 
  Store a set in a dictionary's value
Posted by: SalsaBeanDip - Oct-04-2020, 01:18 AM - Forum: General Coding Help - Replies (9)

Hello everyone. I am having trouble understanding how to store a set in a dictionary's value.

I have to read a file that contains a chronological l..... More

Print this item

  Setting Tick Intervals In Sub Plots
Posted by: JoeDainton123 - Oct-03-2020, 09:20 PM - Forum: General Coding Help - Replies (1)

Hello all

I was hoping someone could point me in the right direction regarding setting the intervals for the Y axis ticks.

I have the following ..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  extracting data from a us... 17 minutes ago Perry DeaD_EyE General Codin...
  How to retrieve money los... 32 minutes ago samuel223 samuel223 General Codin...
  [Tkinter] how to export a... 10 hours ago RonR Pedroski55 GUI
  Is the interpreter that c... Today, 01:04 helendamdam helendamdam General Codin...
  pip install requests does... Yesterday, 14:48 misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 09-23, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... 09-23, 03:29 Littlefish Littlefish General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
Most views
  The best Prog... 576850
  Tutorial Requ... 499369
  Web Scraping ... 440628
  Newbie with P... 384603
  New Users Int... 368554
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12088
buran 8176
snippsat 7367
deanhystad 6895
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
samuel223 Today
Perry Today
bianchiluca116 Yesterday
Jorgecog Yesterday
adamsmith12 Yesterday

User Panel Messages

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