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,251
» Latest member: ftk456
» Forum threads: 38,780
» Forum posts: 175,822

Full Statistics

Online Users
There are currently 53 online users.
» 0 Member(s) | 44 Guest(s)
Bing, Google, AOL, Facebook, Apple

Latest Threads
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
5 hours ago
» Replies: 2
» Views: 51
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 12:09 PM
» Replies: 4
» Views: 116
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 205
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 330
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Nov-11-2025, 05:07 AM
» Replies: 5
» Views: 289
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 122
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,626
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 221
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 211
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,479

 
  Calculate the mean of an array across dimension with lists of different length
Posted by: rakhmadiev - Aug-01-2017, 12:49 AM - Forum: Data Science - Replies (2)

Hello, 

I have a list of lists and I need to calculate the mean across the dimension. The problem is that the sublists are all of different length...... More

Print this item

  3.6.2 is latest stable release right? And "path length"
Posted by: Fran_3 - Jul-31-2017, 09:50 PM - Forum: General Coding Help - Replies (3)

1 - Just confirming 3.6.2 is latest stable release... right? (for Windows 10 install)

2 - At end of install it asked me for OK to exceed normal 2xx..... More

Print this item

  ROLL function
Posted by: Zman350x - Jul-31-2017, 08:14 PM - Forum: Game Development - Replies (4)

I am making a dice game, here is my roll function.
What I want to happen is for the loop to repeat 9 times(or 10 I can't tell) and each time pick a d..... More

Print this item

  How to Run a Python Script
Posted by: umityayla - Jul-31-2017, 06:07 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm new to Python programming, so don't bash me pls :D.

I got an Ubuntu server and a Windows 8.1 PC, I found a python script from github ..... More

Print this item

  Creating a Calculator with Python
Posted by: KatherineHov - Jul-31-2017, 05:33 PM - Forum: General Coding Help - Replies (8)

Hi, right now I'm working on a python dilution calculator. Using the dilution equation
C1V1 = C2V2 I've made this simple protocol that works:

[pyt..... More

Print this item

  PyPDF2: Find a PDF bookmark with a keyword
Posted by: Aviator83 - Jul-31-2017, 02:10 PM - Forum: General Coding Help - Replies (1)

Hey everybody, very new to Python and scripting in general except for some MATLAB stuff. I'm trying to use PyPDF2 to take a certain bookmarked portion..... More

Print this item

  pxssh timeout issue
Posted by: Prabakaran141 - Jul-31-2017, 10:54 AM - Forum: General Coding Help - Replies (4)

At some situation I'm facing this error, I have added the error details below. Can somebody help me in fixing this issue?

[python]
...
s ..... More

Print this item

  text = str(text.encode('utf-8')) AttributeError: 'float' object has no attribute 'enc
Posted by: ulrich48155 - Jul-31-2017, 05:15 AM - Forum: Homework - Replies (2)

Im trying to do a sentiment analysis of Twitter tweets on different topics. Thereby, some topics produce the following error message:

[b]AttributeE..... More

Print this item

  ErrorMsg using new wx.lib.agw.genericmessagedialog
Posted by: Larz60+ - Jul-31-2017, 01:04 AM - Forum: Code sharing - No Replies

Here's a snippet for an error class using the wx.lib.agw.genericmessagedialog
widget in the wxPython-4.0.0b1 release.

I really like the way this w..... More


Attached Files

Thumbnail(s)
   
Print this item

  Trying to setup Python application, odd error
Posted by: Yoshimaster96 - Jul-30-2017, 11:08 PM - Forum: General Coding Help - Replies (6)

Although python3 cannot find the Cython module:

[inline] python3 setup.py
Could not import cx_Freeze. Building executable not possible.
..... More

Print this item

  Referrencing before assignment problem
Posted by: martan45 - Jul-30-2017, 08:42 PM - Forum: General Coding Help - Replies (1)

As you can see from the code I am a beginner. When I run this code, the error is that g_heal is referenced before it is assigned a value. This is untr..... More

Print this item

  tkinter import problems on mac
Posted by: Lux - Jul-30-2017, 06:18 PM - Forum: GUI - Replies (2)

I am working with tkinter, on a mac, and I am having trouble with imports. 
Everything works fine in IDLE, but if I try to run my code in Python Laun..... More

Print this item

  Dim theme
Posted by: metulburr - Jul-30-2017, 04:53 PM - Forum: Board - Replies (9)

Most users use the default white theme. However we have a dark theme called Dim that is available. However that is usually put on the back burner for ..... More

Print this item

  Drawing graphs with matplotlib
Posted by: JRod - Jul-30-2017, 10:02 AM - Forum: General Coding Help - Replies (5)

Hi,
I am trying to write a short program to visualise population dynamics in lemming populations.
The code I have below works ok but only gives me a..... More

Print this item

  a suggestion for a feature change
Posted by: Skaperen - Jul-30-2017, 08:26 AM - Forum: News and Discussions - Replies (7)

mutable sequences have a method called pop that can be optionally given one argument to use as the index, else 0 is used.  the indexed element of the ..... More

Print this item

  Learn to use thread
Posted by: tony1812 - Jul-29-2017, 11:51 PM - Forum: General Coding Help - Replies (1)

Hello, I am experiment with thread on the Pi. I want to keep the main thread for the UI. Start a new threat to turn a relay on and off. The part for t..... More

Print this item

  HOWTO? Login DSL Modem with Python Requests: need Click "Apply" Button
Posted by: Webtest - Jul-29-2017, 10:29 PM - Forum: Web Scraping & Web Development - Replies (4)

Esteemed Forum Participants & Lurkers:
======================================
NOTE: Inexperienced with Web Development ...

I am trying to make a ..... More

Print this item

  'soup.findAll()' help - Want to retrieve multiple attribute values
Posted by: MattRHope - Jul-29-2017, 08:38 PM - Forum: General Coding Help - Replies (1)

Hello:

I am extremely new to python and am working on developing basic web crawlers. One data point I am interested in retrieving from a particular ..... More

Print this item

  Pygame: Help With JackRouter Error
Posted by: arrangereality - Jul-29-2017, 07:59 PM - Forum: Game Development - Replies (4)

Hi, I am trying to get started with pygame, but when I run 'python hello_python.py' from the terminal, my game starts however I get the following erro..... More

Print this item

  time travaller
Posted by: tony1812 - Jul-29-2017, 07:49 PM - Forum: General Coding Help - Replies (3)

Hello, I am python newbie.

I would like to write a little code to keep track of a loop's start tim end end end time in seconds
pseudo code
[pyth..... More

Print this item

  I need help finding a Stock Screener Script
Posted by: Alphix - Jul-29-2017, 05:35 PM - Forum: General Coding Help - Replies (1)

Hi need help with finding a starter script which is a stock market screener for the NYSE and Nasdaq
Sad Sad
I have python 3.6 64bit versi..... More

Print this item

  How can I do it easier ?
Posted by: Mike Ru - Jul-29-2017, 04:51 PM - Forum: General Coding Help - Replies (7)

I have a list. I need to change my list so that the first ten elems is becoming with a capital letter. I'm doing it this way:
[python]
numbers = ['o..... More

Print this item

  Writing data from a DHT11 to LCD
Posted by: expplane - Jul-29-2017, 03:28 PM - Forum: General Coding Help - Replies (2)

I know how to write characters to the LCD. How do I take the temperature data from the DHT11 and write that to the LCD. Also I can't find information ..... More

Print this item

  font error
Posted by: Zman350x - Jul-29-2017, 01:27 PM - Forum: Game Development - Replies (2)

Here is my code:

[python]
import pygame, random, color, sys  #color is a module I made containing a list of variables with RGB values
pygame.init..... More

Print this item

  Beginner needing help!
Posted by: Franco - Jul-29-2017, 12:25 PM - Forum: General Coding Help - Replies (2)

I am trying to learn Python. For me the best way to learn is to try and apply the subject to an interest. In this case I am trying to make a small qui..... More

Print this item

  Vigenere and Caesar Cipher
Posted by: sammy2938 - Jul-29-2017, 11:38 AM - Forum: Homework - Replies (1)

I am trying to code in python using a caesar and a vigenere cipher so the user can pick which one they want to use and encrypt or decrypt. I have code..... More

Print this item

  module functions and data references
Posted by: Skaperen - Jul-29-2017, 03:15 AM - Forum: General Coding Help - Replies (6)

suppose you have a some functions in a module and two of these functions need to call the other functions. you need to call those two functions in a s..... More

Print this item

  Checking if date is holiday in a datetimeindex
Posted by: paulo663636 - Jul-29-2017, 02:50 AM - Forum: Data Science - Replies (1)

Hello Everybody!!

I have one column in a dataframe that has a set of dates as pandas.series, like these examples:

1458641 2016-04-22 06:57:41
1..... More

Print this item

  google rank #1?
Posted by: metulburr - Jul-29-2017, 12:24 AM - Forum: Board - Replies (9)

Did we finally pass by the old forum on google rank for searching

python forum
?


Attached Files

Thumbnail(s)
   
Print this item

  Pyfirmata and Teensy 3.6
Posted by: Kay - Jul-29-2017, 12:21 AM - Forum: General Coding Help - Replies (1)

Hello everyone,

I am trying to use pyfirmata with the Teensy 3.6. I am struggling with the dictionary for this board, in particular for its two DAC..... More

Print this item

  How to recover from exception in pdb?
Posted by: swimbikerun - Jul-29-2017, 12:18 AM - Forum: General Coding Help - Replies (1)

When stepping through the code in pdb and a line is ran that triggers an error, is there a way to fix the error without exiting the execution of the s..... More

Print this item

  can't read my file!!!
Posted by: baronmontesqieu - Jul-28-2017, 07:55 PM - Forum: General Coding Help - Replies (4)

Hello. I'm trying to read a file after aligning and converting parts of the file, but python is not opening it.

Can someone help me?

thank you!..... More

Print this item

  Q: why do I get syntax error
Posted by: dondon - Jul-28-2017, 03:33 PM - Forum: General Coding Help - Replies (3)

Hello reader,

Recently I began a course in learning python basics. Can someone point me in the direction why I am using invalid syntax for python i..... More

Print this item

  Testing If a string has anything in it
Posted by: elliep - Jul-28-2017, 02:54 PM - Forum: General Coding Help - Replies (1)

Guys,

In the code below I am going into the registry to look for a certain item. In this case I am using (RtkAudioService). Once it finds it will g..... More

Print this item

  Writing on a File
Posted by: juniorcoder - Jul-28-2017, 01:32 PM - Forum: General Coding Help - Replies (5)

Hello everybody ,

My code is

for k in [1,2,3]:
    for l in [4,5,6]:
        print("k=" ,k, "l=",l)
As a result of this s..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  why is the image not show... 5 hours ago sarbogast deanhystad General Codin...
  New to python and coding Yesterday, 12:09 lary_p jefsummers Homework
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  Backward compatibility qu... 11-11, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 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...
Most views
  The best Prog... 578874
  Tutorial Requ... 510008
  Web Scraping ... 441926
  Newbie with P... 385938
  New Users Int... 376479
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+ 12107
buran 8195
snippsat 7388
deanhystad 6908
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ftk456 Yesterday
sarbogast Yesterday
bmurray Yesterday
kai_cow2710 Yesterday
Kacper 11-11

User Panel Messages

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