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 433 online users.
» 0 Member(s) | 429 Guest(s)
Bing, Google, Baidu, 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: 46
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,823
PyQT5 Thread crashes afte...
Forum: GUI
Last Post: Axel_Erfurt
Jun-26-2025, 08:17 PM
» Replies: 2
» Views: 3,104

 
  Convert tree to list of lists
Posted by: Dylan_T_Rabbit - Jul-12-2017, 10:48 AM - Forum: General Coding Help - Replies (2)

I have a tree structure which I need to convert to a list of lists.
The class for a node is defined as (irrelevant detail removed):
[python]class TM..... More

Print this item

  How to create mutiple tabs in tkinter using oops
Posted by: Rishav - Jul-12-2017, 06:13 AM - Forum: GUI - Replies (2)

i am working on something and i know how to use notebook widget in tkinter and pack different stuff in each of the tabs in notebook but i want to know..... More

Print this item

  Use specific IP Address
Posted by: EnGeLs - Jul-12-2017, 04:52 AM - Forum: Networking - Replies (6)

Hi guys,

I'm would like your help since I'm new with socket and packet manipulation.

I'm working on Kali Linux, I have my eth0 with 2 IP address..... More

Print this item

  Some help on user input in script
Posted by: Kaos_Method - Jul-12-2017, 04:49 AM - Forum: General Coding Help - No Replies

Right now, I'm working on a SSH botnet, messing around with different ideas. Currently, I have it setup to where you have the different clients inside..... More

Print this item

  htmlescape.py
Posted by: Skaperen - Jul-12-2017, 02:37 AM - Forum: Code sharing - No Replies

just finished up my version of html_escape():

[python]#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import division, print_funct..... More

Print this item

  Pandas: Accessing column headers
Posted by: zsad512 - Jul-12-2017, 12:20 AM - Forum: Homework - No Replies

Hello,

I have a problem I am trying to solve in Python using Pandas. I have a dictionary of dictionaries that I will eventually be transforming in..... More

Print this item

  search line from CSV
Posted by: shead - Jul-11-2017, 10:36 PM - Forum: General Coding Help - Replies (2)

Hey,
I need to translate 6,000 names of movies.
I have all the names in a CSV file and a website that you put the name in a search line and you ge..... More

Print this item

  draw chart in wx Frame
Posted by: ian - Jul-11-2017, 08:00 PM - Forum: GUI - Replies (3)

I have the following code as startup. I need to add an image place in the wx frame to draw stock chart on it.
I found many similar codes on Internet ..... More

Print this item

  Return Statement in Python IDLE editor
Posted by: NMW - Jul-11-2017, 06:44 PM - Forum: General Coding Help - Replies (10)

Hi, I'm somewhat of a programming "newbie" , so bear with me.

I have been practising with Python (2) through Python IDLE. However, when I type code..... More

Print this item

  n00b help with referencing files
Posted by: theturd - Jul-11-2017, 03:58 PM - Forum: General Coding Help - Replies (8)

Hey guys,

I have a script that basically modifies a file. In a nutshell, fileA contains some text, and the script reads fileA and uses the text to..... More

Print this item

  The problem of converting string to float by using CSV file
Posted by: CChen - Jul-11-2017, 02:09 PM - Forum: Data Science - Replies (2)

my question here
I try to use CSV file as the input of the neural network. But I got the warming as  'could not convert string to float: 'train2.CSV' ..... More

Print this item

  Numpy or Scipy Variance Convolution
Posted by: TimWebPhoenix - Jul-11-2017, 12:41 PM - Forum: Data Science - No Replies

I was wondering what the most efficient / fastest way to code a Variance Convolution would be in Python?

I currently have the following code, that ..... More

Print this item

  [split] Json to CSV
Posted by: satish - Jul-11-2017, 12:13 PM - Forum: General Coding Help - Replies (5)

[python]try:
   import unicodecsv as csv
except ImportError:
   import csv

import json
import operator
import os
from collections import Orde..... More

Print this item

  adding to code but still getting same output
Posted by: Crackity - Jul-11-2017, 07:45 AM - Forum: Homework - Replies (7)

Hello all,
I am a total newb and I am using a self study guide with interactive labs in the book using the most current version of Python (3.6.1). I..... More

Print this item

  Character Definition Like ASCII
Posted by: llarix1 - Jul-11-2017, 06:15 AM - Forum: General Coding Help - Replies (2)

hi. i want to know is there anything like ASCII character definition in python?

Print this item

  Problem with serial data. How do I ignor incorrect data?
Posted by: donmerch - Jul-10-2017, 11:39 PM - Forum: General Coding Help - Replies (1)

I'm reading data via USB serial @ 57600 baud. I'm trying to take 5 readings and then get the average. Occasionally I get an error and I don't know how..... More

Print this item

  Panda Data Frame to Existing Multiple Sheets
Posted by: naveedraza - Jul-10-2017, 07:20 PM - Forum: Data Science - Replies (1)

Hi All,

i am need of guidance, help as i got struck in getting data from SQL to Excel using Pandas.

here my queries is, i have one Excel workboo..... More

Print this item

  Matching whole words in find/replace script
Posted by: greektranslator - Jul-10-2017, 07:10 PM - Forum: General Coding Help - Replies (4)

I use the code below through Notepad++ but I cannot make it match whole words

[python]with open('C:/Temp/Substitutions.txt') as f:
for l in f:..... More

Print this item

  Connecting two string after spliting
Posted by: uttamsaha2 - Jul-10-2017, 06:39 PM - Forum: General Coding Help - Replies (3)

I search for lines starts with '+', splits and take the 2nd part and add to the previous line:

Code:

[python]
if line.startswith('+')..... More

Print this item

  Adding text to plots
Posted by: shaynehansen - Jul-10-2017, 05:54 PM - Forum: General Coding Help - No Replies

I am trying to add text to my plots in the upper right of the plot. The issue is the plots vertical axis is constantly changing. Is there a way to loc..... More

Print this item

  What is Controller in this code i am not understanding what is it
Posted by: Rishav - Jul-10-2017, 03:39 PM - Forum: GUI - Replies (2)

[python]
import tkinter as tk
from tkinter import ttk

LARGE_FONT = ("Verdana",12)



class SeaofBTCapp(tk.Tk):
   def __init__(self,*args,**..... More

Print this item

  How to create a long string by concatenating two lists
Posted by: nikhilkumar - Jul-10-2017, 03:37 PM - Forum: General Coding Help - Replies (11)

my question here
I want to create long_string by concatenating the items in the list previously created
and also I have to make sure to put a space ..... More

Print this item

  AUCPR of individual features using Random Forest (Error: unhashable Type)
Posted by: melissa - Jul-10-2017, 11:54 AM - Forum: Data Science - Replies (1)

I have a data set of 19 features (v1---v19) and one class label (c1) , I can eaily get the precision recall value of all variables with the class labe..... More

Print this item

  Trying to figure out how list comprehensions work
Posted by: tozqo - Jul-10-2017, 08:51 AM - Forum: General Coding Help - Replies (4)

Working through the docs cause I'm too broke to get traditional learning, and I'm at 5.1.4. Nested List Comprehensions.
the example in the docs is
..... More

Print this item

  want command program: sleep to a specific time
Posted by: Skaperen - Jul-10-2017, 01:21 AM - Forum: News and Discussions - Replies (3)

i would like to find a command program that sleeps, but instead of (or in addition to) sleeping a specified duration, sleep [i]to..... More

Print this item

  Can't extract hidden input using Selenium!!!
Posted by: Shaggy89 - Jul-09-2017, 07:00 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello!!
I'm trying to learn selenium from sometime but I got struck in a problem.. I'm trying to write a script for logging into my Facebook account ..... More

Print this item

  No CSV output
Posted by: migs2173 - Jul-09-2017, 05:21 PM - Forum: General Coding Help - No Replies

Hi anyone can help me with this coding when i run the script there is a result but doesn't write on csv output file

[python]import clearbit
import..... More

Print this item

  I have problem on Communication between C++ and Python using subprocess Module
Posted by: hlfan1234567 - Jul-09-2017, 04:34 PM - Forum: General Coding Help - No Replies

I have problem on Communication between C++ and Python using subprocess Module

it is my Python Code for getting data.(it gets data from C++ OpenCV ..... More

Print this item

  Packaging/Modules--Wheel--pip--setup.py--Freeze
Posted by: snippsat - Jul-09-2017, 03:09 PM - Forum: Python Installation and Execution - Replies (1)

This is gone be about Packaging/Modules and sharing your made stuff.

The Dark Age and the Broken past
Python packaging w..... More

Print this item

  google search by Python
Posted by: klim1167 - Jul-09-2017, 03:04 PM - Forum: General Coding Help - Replies (3)

Hello Python Pros,
I am trying to use the Python to do the google search with the duration of 1 week, but it shows the error message as below.
Pls h..... More

Print this item

  Communicating C++ and Python in Jetson TK1 board.
Posted by: hlfan1234567 - Jul-09-2017, 01:16 PM - Forum: General Coding Help - Replies (1)

I'm using Jetson TK1 board(Linux4Tegra)(almost same with ubuntu)

I followed this instruction(I can't upload clickable link yet...)


Python :
..... More

Print this item

  Same codes show different output ?
Posted by: SuperSymmetry - Jul-09-2017, 08:43 AM - Forum: General Coding Help - Replies (12)

Trying to write a program to perform various functions on numbers.
[python]num1, operator, num2 = input ('enter calculation').split()
num1 = int(nu..... More

Print this item

  ValueError: shape mismatch: value array of shape...
Posted by: ulrich48155 - Jul-09-2017, 08:37 AM - Forum: Homework - Replies (2)

When trying to do a linear discriminant analysis I always get this error:

[error]ValueError: shape mismatch: value array of shape (47,) could not b..... More

Print this item

  WxGrid Title
Posted by: ian - Jul-08-2017, 11:23 PM - Forum: GUI - Replies (3)

I created a few wxGrid on a wxFrame. I need to have a title displayed on each of them. I am wondering if possible to set it on the left-top corner whi..... More

Print this item

  extract relation
Posted by: Sama - Jul-08-2017, 11:22 PM - Forum: General Coding Help - Replies (6)

can someone help please,( I'm new to programming ) I am trying to chunk sentences to sub sentences. I have a list of sentences such as:
my_list = [..... More

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... 379728
  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