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,632
» Latest member: Olkianen
» Forum threads: 38,640
» Forum posts: 175,079

Full Statistics

Online Users
There are currently 461 online users.
» 0 Member(s) | 456 Guest(s)
Bing, Google, Baidu, Mojeek, Yandex

Latest Threads
replace or remove text fr...
Forum: General Coding Help
Last Post: Curbie
4 hours ago
» Replies: 9
» Views: 177
While loop is terminating...
Forum: Homework
Last Post: jumpsworthnow
5 hours ago
» Replies: 0
» Views: 49
locating a pushbutton py ...
Forum: GUI
Last Post: Axel_Erfurt
6 hours ago
» Replies: 1
» Views: 45
How to put my game loop i...
Forum: Game Development
Last Post: Thatedge
Yesterday, 08:36 AM
» Replies: 10
» Views: 3,094
2D-Cube-Tic-Tac-Toe
Forum: Game Development
Last Post: Thatedge
Yesterday, 08:35 AM
» Replies: 2
» Views: 1,889
Unable to install pygame ...
Forum: Game Development
Last Post: Plyth
Yesterday, 03:54 AM
» Replies: 3
» Views: 2,117
List[] in Python needs so...
Forum: Game Development
Last Post: DeaD_EyE
Jun-27-2025, 01:32 PM
» Replies: 3
» Views: 383
Web scraping confusion
Forum: Web Scraping & Web Development
Last Post: AlluminumFoil
Jun-27-2025, 11:05 AM
» Replies: 4
» Views: 1,874
Problem Converting Tradin...
Forum: General Coding Help
Last Post: wallneradam
Jun-27-2025, 07:29 AM
» Replies: 2
» Views: 2,822
PyQT5 Thread crashes afte...
Forum: GUI
Last Post: Axel_Erfurt
Jun-26-2025, 08:17 PM
» Replies: 2
» Views: 3,103

 
  reshaping numpy array ValueError: total size of new array must be unchanged
Posted by: metalray - Jul-15-2017, 05:41 PM - Forum: Homework - No Replies

Dear Python experts,

I am trying to reshape my numpy array "des" to shape 4,100 but every
time I get the "ValueError: total size of new array must..... More

Print this item

  My else clause doesn't work (general help)
Posted by: NMW - Jul-15-2017, 12:58 PM - Forum: General Coding Help - Replies (10)

I'm following a Python tutorial, and in one of the exercises I have to:
[quote]
Assume the days of the week are numbered 0,1,2,3,4,5,6 from Sunday t..... More

Print this item

  Missing an argument in function
Posted by: syntaxbluff - Jul-15-2017, 11:47 AM - Forum: General Coding Help - Replies (2)

im pretty sure i added that argument (item) and still getting this weird error .. >,<

[python]#!/usr/bin/python
# -*- coding: utf-8 -*-

import..... More

Print this item

  Hey guys can you please help me with some basic coding
Posted by: Stabu - Jul-15-2017, 11:10 AM - Forum: General Coding Help - Replies (9)

I am a beginner so please take it easy on me lol. I made a simple rock paper scissor game. I want it to loop until the user or the computer gets to a ..... More

Print this item

  Get value of wx grid cell
Posted by: ian - Jul-15-2017, 02:17 AM - Forum: GUI - Replies (1)

I created added 5 wx grids in a list and populated data. And also created an event as below. when clicking a cell, it will print the number of row and..... More

Print this item

  Can't figure out syntax error
Posted by: pythonnewb - Jul-15-2017, 01:50 AM - Forum: Homework - Replies (3)

Hello! I'm new to this forum and decided to join for homework help. I have an assignment due tonight where I need to calculate a worker's total earnin..... More

Print this item

  Python interface only black and white........
Posted by: Wilson - Jul-15-2017, 01:35 AM - Forum: General Coding Help - Replies (3)

my question here

Hello, im familiar with excel VBA, but want to start learning Python.

I downloaded the latest version, which is a black screen ..... More

Print this item

  help with selecting from html
Posted by: chadonline - Jul-14-2017, 11:46 PM - Forum: Web Scraping & Web Development - Replies (8)

I am trying to just select the "One rate" and the data values from the html string similar to below.


</tr>, <tr class="bluebar">
<th headers="a..... More

Print this item

  finding rows with one column distinct and the other column different
Posted by: python_enthusiast - Jul-14-2017, 08:15 PM - Forum: General Coding Help - No Replies

Suppose we have the following table:

I am trying to do a duplicate check on only Name and Date column and a check to make sure that Title column is "..... More

Print this item

  Application
Posted by: SpeccialK - Jul-14-2017, 07:03 PM - Forum: General Coding Help - Replies (3)

Hello, I am new to the forum. What is a simple program I can download to my PC that allows me to code in one window and view the result of that code i..... More

Print this item

  trying to get the keystrokes values to file
Posted by: rwahdan - Jul-14-2017, 05:00 PM - Forum: General Coding Help - Replies (2)

I am trying to get the keystrokes values and put inside the file but nothing is written there and no errors.

[python]

filePath='D:\\test2.txt'
..... More

Print this item

  check if file exists.
Posted by: ian - Jul-14-2017, 04:28 PM - Forum: General Coding Help - Replies (6)

I try the following to check if a file exists but when run them, os is highlighted and popup 'invalid syntax' window. not sure why. please advice. tha..... More

Print this item

  How to create multilple tabs in tkinter from different classes
Posted by: Rishav - Jul-14-2017, 03:32 PM - Forum: GUI - Replies (5)

Why label of volume class is overwriting the label of area class in both tabs what's the solution to that help please

[python]
from tkinter import..... More

Print this item

  Duplicate Pages in a PDF
Posted by: wrotenberry - Jul-14-2017, 02:49 PM - Forum: General Coding Help - Replies (11)

How can I duplicate pages of a PDF in a python script? We have a workflow system for a print shop that is ran by if statements in a python script. Cer..... More

Print this item

  ICR/OCR help wanted
Posted by: brunocechet - Jul-14-2017, 02:08 PM - Forum: General Coding Help - Replies (2)

I'm working with python and trying to recognize these images (imgur.com/a/HsvUv), but without satisfied results yet.

I've tried pytesseract and the..... More

Print this item

  Weird behavior with Led Driving code
Posted by: rgkaizen - Jul-14-2017, 04:23 AM - Forum: General Coding Help - No Replies

Hi yall, I've run into a weird issue with my project that I'm stuck on. Firstly, the git repo with all the code is here:
github.com/RGKaizen/rainbow-..... More

Print this item

  Take the biggest value from array
Posted by: dwiga - Jul-14-2017, 02:30 AM - Forum: Homework - Replies (9)

Hi,
I am new user on python, and I am new user here.
so, can you please help me to fix my python problem...

this table called tbl_a
============..... More

Print this item

  IndexError: index out of bounds for axis 1
Posted by: shaynehansen - Jul-13-2017, 10:49 PM - Forum: General Coding Help - No Replies

Getting the error:
return self._RDMS_data[0:, channel_index]
IndexError: index 840 is out of bounds for axis 1 with size 840


The class RDMSDic..... More

Print this item

  Mozilla Developer new site
Posted by: Larz60+ - Jul-13-2017, 05:30 PM - Forum: News and Discussions - Replies (5)

Mozilla Developer has a new site if anyone is interested, here it is: https://www.mozilla.org/en-US/developer/

Print this item

  Looking for someone to teach me Python using Flask for web
Posted by: faroob - Jul-13-2017, 04:13 PM - Forum: Jobs - Replies (1)

Hi everyone,
I need someone who is proficient in python using Flask in web development, this is probably going to be an hour to 2 hour job with quest..... More

Print this item

  sending email
Posted by: rwahdan - Jul-13-2017, 03:18 PM - Forum: General Coding Help - Replies (7)

I am trying to send email but it is not working.

[python]
from kivy.app import App

from threading import Timer
from threading import Thread
f..... More

Print this item

  merging two csv files
Posted by: jlcolam - Jul-13-2017, 11:05 AM - Forum: General Coding Help - Replies (3)

so i have this issue where i must make a program where you input the file names which then merge together into a new file keeping the same column name..... More

Print this item

  Want somehelp with creating Gui with classes
Posted by: Rishav - Jul-13-2017, 10:00 AM - Forum: GUI - Replies (1)

from tkinter import *
from tkinter import ttk


class App(Frame):
def __init__(self,*args,**kwargs):
Frame.__init__(self,*args,**kwa..... More

Print this item

  Help with script placeholders.
Posted by: anaxcontrol - Jul-13-2017, 03:17 AM - Forum: General Coding Help - Replies (9)

I would like to replace the %s to the new format {}. I read quite a bit about it but not getting anywhere. I would also like to use a data placehold..... More

Print this item

  Google VR Blocks
Posted by: Larz60+ - Jul-13-2017, 12:37 AM - Forum: Bar - Replies (5)

has anyone played around with the free google vr app?
Looks like it might be very useful for creating 3D characters for games
if you haven't heard a..... More

Print this item

  Creating multiple text fies from new url retrieve results
Posted by: wmc326 - Jul-12-2017, 08:21 PM - Forum: General Coding Help - Replies (1)

Hi,

This is a similar question to what I posted earlier, however I've made some improvements and my function is (almost) doing what I want it to do..... More

Print this item

  Making a number triangle that points to the left
Posted by: SomeNoob - Jul-12-2017, 07:14 PM - Forum: Homework - Replies (2)

As part of an assignment, I am supposed to make a number triangle that points to the left using only for loops and string format. I can kind of get it..... More

Print this item

  How to change the font size of a table?
Posted by: Felipe - Jul-12-2017, 06:52 PM - Forum: General Coding Help - No Replies

Hi,

I'm fighting for hours to change the size of the numbers which fills the cells of a table created with matplotlib. Here's my code for a subplot..... More

Print this item

  Write from URL with changing information to textfile
Posted by: wmc326 - Jul-12-2017, 06:51 PM - Forum: General Coding Help - Replies (1)

Hi,

I am very new to python coding and have a question that is hopefully a simple fix.
I am an intern for a company who is developing some drones ..... More

Print this item

  find the index of "Annual" in spell_list
Posted by: nikhilkumar - Jul-12-2017, 04:43 PM - Forum: General Coding Help - Replies (1)

my question here
I am not getting the proper output. Please help.
find the index of "Annual" in spell_list
# [ ] using range, print the spell_list ..... More

Print this item

  Godot adds beta support for Python
Posted by: nilamo - Jul-12-2017, 03:35 PM - Forum: News and Discussions - No Replies

https://godotengine.org/article/beta-rel...on-support

Godot (pronounced guh-dough) is a 3d/2d game engine, which now (or soon) supports scrip..... More

Print this item

  Converting Flattened JSON to Dataframe in Python 2.7
Posted by: ManMan - Jul-12-2017, 01:40 PM - Forum: Data Science - Replies (1)

I am trying to read some data using REST API and write that on a DB table. I have written the below code. But unfortunately, I am kind of stuck with t..... More

Print this item

  Attribute of module shelve doesn't work
Posted by: Ponomarenko Pavlo - Jul-12-2017, 01:12 PM - Forum: General Coding Help - Replies (1)

import shelve
db = shelve.open('experement')
db['name'] = 'Sam'
db['age'] = 45
db.close()
[error]Traceback (most recent call l..... More

Print this item

  How to join elements from two arrays in a third one?
Posted by: Felipe - Jul-12-2017, 12:20 PM - Forum: General Coding Help - Replies (2)

Hi guys,

I have two arrays "p" and "prec" as the following.
p:
[output]
[[  2 -30  20   4]
[  2 -28   30   4]
[  2  19  50   6]
[  1 -27  60 ..... More

Print this item

  phpBB vis a vis MyBB
Posted by: greektranslator - Jul-12-2017, 11:05 AM - Forum: Board - Replies (2)

I wonder why the old forum was abandoned. How does your experience of the 2 forum softwares compare?

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  replace or remove text fr... 4 hours ago Curbie Curbie General Codin...
  While loop is terminating... 5 hours ago jumpsworthnow jumpsworthnow Homework
  [PyQt] locating a pushbut... 6 hours ago arbiel Axel_Erfurt GUI
  How to put my game loop i... Yesterday, 08:36 temlotresid6 Thatedge Game Developm...
  2D-Cube-Tic-Tac-Toe Yesterday, 08:35 freethrownucleus Thatedge Game Developm...
  Unable to install pygame ... Yesterday, 03:54 garthE Plyth Game Developm...
  List[] in Python needs so... 06-27, 13:32 Codingdesigner12 DeaD_EyE Game Developm...
  Web scraping confusion 06-27, 11:05 keifin AlluminumFoil Web Scraping ...
  Problem Converting Tradin... 06-27, 07:29 kralxs wallneradam General Codin...
  [PyQt] PyQT5 Thread crash... 06-26, 20:17 Suresh Axel_Erfurt GUI
  can't use pyrepl: bad mag... 06-26, 05:53 eliastw85 Plyth News and Disc...
Most views
  The best Prog... 572359
  Tutorial Requ... 485057
  Web Scraping ... 436892
  Newbie with P... 379727
  Thread remain... 351241
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12067
buran 8173
snippsat 7340
deanhystad 6842
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
Olkianen Yesterday
jumpsworthnow Yesterday
jumps_worth Yesterday
karsonFergosn Yesterday
t3stocks Yesterday

User Panel Messages

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