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,272
» Latest member: DataScientist071
» Forum threads: 38,787
» Forum posts: 175,857

Full Statistics

Online Users
There are currently 36 online users.
» 2 Member(s) | 29 Guest(s)
Bing, Google, Applebot, Twitter, woooee, deanhystad

Latest Threads
best way to learn python
Forum: News and Discussions
Last Post: mamta25
5 minutes ago
» Replies: 5
» Views: 3,051
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 10:27 PM
» Replies: 3
» Views: 180
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 11:47 AM
» Replies: 4
» Views: 160
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Yesterday, 08:44 AM
» Replies: 2
» Views: 128
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 175
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 351
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 71
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 117
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 369
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 210

 
  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

  Mouse click without use bind
Posted by: ATARI_LIVE - Oct-01-2020, 11:59 AM - Forum: GUI - Replies (8)

I have code with bind which I do not like.
is there another way than bind?
I am looking for counting when the mouse or touchscreen is pressed and ho..... More

Print this item

  multiprocessing difference between Linux and Windows
Posted by: direl - Oct-01-2020, 11:35 AM - Forum: General Coding Help - Replies (2)

I was trying to accept timed input when I noticed that Windows did not behave as I expected. A simplified version of the code to demonstrate this is ..... More

Print this item

  IDLE stops responding upon saving
Posted by: tompi1 - Oct-01-2020, 11:15 AM - Forum: General Coding Help - Replies (2)

Hey people,
IDLE stops responding everytime I try to save a file.
Im running it on Mac Os 10.15.3
I rebooted my computer, that's about as far as my..... More

Print this item

  Make list of dates between today back to n days
Posted by: Mekala - Oct-01-2020, 10:05 AM - Forum: General Coding Help - Replies (3)

Hi,
I want to make list of dates from now back to n days (for example 2 days) with time interval 12hrs.

I use the bewlow code, but its giving me e..... More

Print this item

  TypeError: unsupported operand type(s) for /: 'str' and 'int'
Posted by: enderfran2006 - Oct-01-2020, 09:31 AM - Forum: Homework - Replies (1)

I am confused to why this doesnt work. Can anyone help?
This is the code
[python]
number1 = input("What was the temperature on Monday?")
number2 =..... More

Print this item

  Please Help!
Posted by: bntayfur - Oct-01-2020, 08:00 AM - Forum: Homework - Replies (4)

I tried so many times but i couldn't do it :(
The steps are all below, someone please help me!

Algorithm 1 Greedy Algorithm for the Continuous K..... More

Print this item

  Newbie help combining two scripts
Posted by: emuola - Oct-01-2020, 06:36 AM - Forum: Web Scraping & Web Development - Replies (13)

Hi all. I'm new to Python, but have some experience in HTML/CSS/JS. I'm running Raspberry Pi to be able to monitor my daughter's rabbit in the shed ou..... More

Print this item

  using alternate names in configparser
Posted by: Skaperen - Oct-01-2020, 04:14 AM - Forum: General Coding Help - Replies (6)

an INI i am using configparser to read, modify, and write back has, in each section an option "Name" with a string value that is unique over th..... More

Print this item

  opening files and output of parsing
Posted by: leodavinci1990 - Oct-01-2020, 02:09 AM - Forum: General Coding Help - Replies (4)

So I have the following text file named test.txt containing the following lines:

This is line 1.
This is line 2.
This is line 3.

The foll..... More

Print this item

  insert() but with negative index
Posted by: naughtysensei - Oct-01-2020, 02:06 AM - Forum: Homework - Replies (1)

Inserting items with non-negative index gives expected results:

num = [1, 2, 3]
num.insert(0, "min")
print(num)
[output]['min', 1, 2,..... More

Print this item

  slicing and indexing a list example
Posted by: leodavinci1990 - Oct-01-2020, 01:27 AM - Forum: General Coding Help - Replies (4)

I have the following code:

[python]s = "The quick brown fox jumps over the lazy dog."
words = s.split()
lengths = [[w.lower(), len(w)] for w in w..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  best way to learn python 5 minutes ago dutch mamta25 News and Disc...
  Graph Interpolate Difficu... Yesterday, 22:27 Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... Yesterday, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... Yesterday, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
Most views
  The best Prog... 579115
  Tutorial Requ... 511327
  Web Scraping ... 442072
  Newbie with P... 386137
  New Users Int... 378493
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+ 12108
buran 8196
snippsat 7389
deanhystad 6914
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
DataScientist071 Today
aminrony1999 Yesterday
fobby888 Yesterday
digitalboy346 Yesterday
ben9090o Yesterday

User Panel Messages

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