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,593
» Latest member: v4vv43
» Forum threads: 38,638
» Forum posts: 175,048

Full Statistics

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

Latest Threads
Python Install Mager Help
Forum: News and Discussions
Last Post: bowens1983
7 hours ago
» Replies: 0
» Views: 40
[SOLVED] Let user search ...
Forum: GUI
Last Post: Winfried
Yesterday, 11:19 AM
» Replies: 2
» Views: 108
Comparing two columns wit...
Forum: General Coding Help
Last Post: Stonsuld
Yesterday, 07:09 AM
» Replies: 2
» Views: 1,432
Convert any Python expres...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 07:06 AM
» Replies: 2
» Views: 260
Using EventSource in Pyth...
Forum: Web Scraping & Web Development
Last Post: snippsat
Jun-22-2025, 08:45 AM
» Replies: 1
» Views: 134
need help with tracking a...
Forum: General Coding Help
Last Post: gqdeep01
Jun-22-2025, 02:14 AM
» Replies: 0
» Views: 106
A penny doubled every day...
Forum: Homework
Last Post: DeaD_EyE
Jun-21-2025, 05:26 PM
» Replies: 5
» Views: 246
I have a question
Forum: General Coding Help
Last Post: noisefloor
Jun-21-2025, 09:26 AM
» Replies: 2
» Views: 237
Problème d'exécutable
Forum: General Coding Help
Last Post: noisefloor
Jun-21-2025, 09:22 AM
» Replies: 1
» Views: 219
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: snippsat
Jun-20-2025, 07:21 PM
» Replies: 11
» Views: 595

 
  Can I do this faster?
Posted by: Gasimoe - Feb-28-2017, 06:22 PM - Forum: Data Science - Replies (3)

Hello!

I´m making a RSA-encrypting/decrypting program.

When I encrypt I use a list but t,e and n are big numbers so this take a while. Is there..... More

Print this item

  pandas dataframe group by count index
Posted by: metalray - Feb-28-2017, 01:57 PM - Forum: Homework - Replies (5)

Dear Python Experts,
I am trying to group by the column Continent and count each country name (index) in it as well as sum the popluation.
The group..... More

Print this item

  Call out data from 2D array to perform calculation
Posted by: poonck1 - Feb-28-2017, 01:25 PM - Forum: Homework - Replies (1)

I am now doing a linear regression analysis. The input variable is Size. The output variable is Price. I store the set of data in 2D array. I know usi..... More

Print this item

  how to calculate frequency of word in list
Posted by: desul - Feb-28-2017, 01:21 PM - Forum: General Coding Help - Replies (4)

Dear, 

 how to  calculate the frequency of the word in the list  if the word is not in the list  just return  word equals to  zero

Huh **huh..... More

Print this item

Question How to copy files from local system to remote machine?
Posted by: sahan - Feb-28-2017, 10:10 AM - Forum: Networking - Replies (3)

I am new to Python programming.. Please help me how to approach below requirment.

To copy 5MB of data folder from Local system to the remote machin..... More

Print this item

  how can rectify error from the below code
Posted by: desul - Feb-28-2017, 08:45 AM - Forum: Data Science - Replies (5)

Dear ALL,

import numpy

def gettingc1©:
    c1= []
    mystr = c.strip(' ').split()
    for i in mystr[:1]:
        c1.append(i)    
    r..... More

Print this item

  remove python package from openwrt
Posted by: aneeshyarose - Feb-28-2017, 08:16 AM - Forum: General Coding Help - Replies (1)

How to remove a package (multiprocessing) from openwrt

Print this item

  Python 3 Function Annotations
Posted by: charlesprince - Feb-28-2017, 08:03 AM - Forum: Game Development - Replies (9)

is there any example for function annotations. function annotations not working while running a code. is there any way to make it.

Print this item

  how can i print two value in single line
Posted by: desul - Feb-28-2017, 06:01 AM - Forum: Homework - Replies (8)

Dear ALL,

how can I print two valueS in a single line 

print(k )
print(v)

MY OUTPUT SHOULD BE 

Ontology: 3



THANK YOU

Print this item

  Is Python Suitable?
Posted by: summerleas - Feb-28-2017, 04:46 AM - Forum: Data Science - Replies (3)

I don't know if Python is a suitable language for what I want to do. In summary:

Read a file of about 6GB into an array (list I presume). The array..... More

Print this item

  Loop help in game
Posted by: Kgranulo1 - Feb-28-2017, 01:16 AM - Forum: Game Development - Replies (1)

[python]import time
from tkinter import *
tk = Tk()
canvas = Canvas(tk, width=400, height=400)
canvas.pack()
rectangle = canvas.create_rectangle(..... More

Print this item

  Dealing with strings thru mmap in Python
Posted by: doublezero - Feb-27-2017, 09:07 PM - Forum: General Coding Help - Replies (4)

For learning purposes, I am trying to create a script to:
-read a list of keywords and store in a array (done)
-list files in a dir tree (done)
-re..... More

Print this item

  Python 3.6 Installed, But Doesn't Exist
Posted by: Atomike - Feb-27-2017, 08:47 PM - Forum: General Coding Help - Replies (3)

Using Windows 7. Installed Python 3.6, and it won't go. 
I'm trying to change the "Path" file thing in Windows, but I only seem to have the "Python35..... More

Print this item

  Matplotlib Doesn't Work
Posted by: Ian12290 - Feb-27-2017, 03:56 PM - Forum: Data Science - Replies (6)

Hi everyone!

I successfully downloaded both Pygame and Matplotlib on my Mac (OSX), but neither seem to work when I import them.

Matplotlib was s..... More

Print this item

  how to remove none from the for loop
Posted by: desul - Feb-27-2017, 01:30 PM - Forum: General Coding Help - Replies (5)

Dear all,

c= " domain ontologies"

mystr = c.split(' ')   
   
  c= [i for i in mystr[:1]]
        
 print(c)
result 
[outpu..... More

Print this item

  ImiportError class not defined
Posted by: iFunKtion - Feb-27-2017, 01:08 PM - Forum: GUI - Replies (4)

Hi there,

I have an application of which the file structure is as follows each file holds but one class, and that class is the name of the file:
[py..... More

Print this item

  [split] Script has stopped working
Posted by: santhosh - Feb-27-2017, 01:07 PM - Forum: General Coding Help - Replies (1)

hello everyone i am using this script  for mail sending it will sending through gmail but i am  unable to send through my office mail (smtp) i am send..... More

Print this item

  PyQT4 only upper case text
Posted by: iFunKtion - Feb-27-2017, 12:18 PM - Forum: GUI - Replies (1)

Hi there,

Due to the nature of our company font, we never ever want to use it lowercase. Is there a way of making absolutely every bit of text in a..... More

Print this item

  Implementation Pyramid Solitaire
Posted by: qwerty - Feb-27-2017, 11:16 AM - Forum: Homework - Replies (2)

You must create a class map to represent a playing card in the pyramid.
Create a class deck for submission deck of cards in the pyramid.
Here's the ..... More

Print this item

  how to calculate a maximum frequency of theterm in docuemnt
Posted by: desul - Feb-27-2017, 08:47 AM - Forum: General Coding Help - Replies (5)

Dear ALL,

how to retrieve  most occurred  term in the document 


words= [word for word in document ]

word_count = counter(words)

then wha..... More

Print this item

  Worker thread?
Posted by: micko - Feb-27-2017, 07:54 AM - Forum: General Coding Help - Replies (1)

My program does the following:
SQL query results based on GUI (user filled) data is passed to TCPprinter thread in arguments. I'm using threading be..... More

Print this item

  Buy used Python Cookbook 2nd edition though learning Python 3.6?
Posted by: Raptor88 - Feb-27-2017, 05:26 AM - Forum: General Coding Help - Replies (3)

I'm learning Python using version 3.6. 

I can buy a used copy of the "Python Cookbook" 2nd edition for $6.00 including shipping.  But that's via m..... More

Print this item

  calculating length of string
Posted by: desul - Feb-27-2017, 04:46 AM - Forum: General Coding Help - Replies (12)

Dear All,

how can I calculate the length of the string, for e.g

   len(ontology)= 8

but I need it should return 1..... PLEASE TELL ME ANY COM..... More

Print this item

  RAW IO disk access for SD Card
Posted by: shift838 - Feb-27-2017, 03:16 AM - Forum: General Coding Help - Replies (1)

I want to create a python program that will allow a user to read RAW data of sections of an SD card based on start and end sectors then dump it to an ..... More

Print this item

  getting source line number
Posted by: Skaperen - Feb-27-2017, 02:34 AM - Forum: General Coding Help - Replies (4)

is there a way to get the source file line number in some code?  for example:

[python]from __future__ import print_function

# print a message wi..... More

Print this item

  How do I install small size pygtk3
Posted by: harun2525 - Feb-27-2017, 12:53 AM - Forum: GUI - No Replies

hello, i work on pygtk3 but my ptgtk3 module is 200-300 mb. how can i install small size pygtk3 instead of my installed pygtk3 for packaging my progra..... More

Print this item

  Syntax error
Posted by: rsidhu - Feb-27-2017, 12:12 AM - Forum: General Coding Help - Replies (2)

Hi. Trying to learn python using 3.6.0 and having an issue with the print function. 

Using this:
[python]i=1
while i<=5:
           print(i)
  ..... More

Print this item

  Python Hash list check
Posted by: here2learn - Feb-26-2017, 04:17 PM - Forum: General Coding Help - Replies (4)

Hi All, 

First post!

I'm Looking for a bit of help with a small task. 


I am pretty new to python and have a program which generates a list ..... More

Print this item

  Negative lookahead not working, help please
Posted by: MitchBuchanon - Feb-26-2017, 01:48 PM - Forum: General Coding Help - Replies (8)

Hi everyone,

So here is my problem. I have a bunch of tweets and various metadata that I want to analyze for sociolinguistic purposes. In order to ..... More

Print this item

  dxfgrabber-return lines start point
Posted by: elhetch - Feb-26-2017, 11:56 AM - Forum: General Coding Help - Replies (3)

Hi 
i wrote the below code to return the start point of the lines in drawing, but it return error:

[python]
import dxfgrabber
dwg = dxfgrabber.readfi..... More

Print this item

  Importing file in dataframe and populating missing column name
Posted by: vvv - Feb-26-2017, 10:21 AM - Forum: General Coding Help - Replies (1)

Hi All,

I am trying to import a survey data on hotel industry . First 2 columns have name and rest of the column doesn't have .I need to populate y..... More

Print this item

  seprating columns of an listbox item and putting them into different entry
Posted by: gray - Feb-26-2017, 07:21 AM - Forum: GUI - Replies (2)

i want to get a selected item from listbox created bu a sql database and seprate 'id1', 'firs1' & 'las1' (columns of a sql table) and then put every o..... More

Print this item

  Interesting observation on MySQL
Posted by: Larz60+ - Feb-26-2017, 03:38 AM - Forum: Bar - Replies (19)

I'm reading a book on PostGIS, and found this paragraph quite humorous, as it
fits my thoughts perfectly:


[quote]
MySQL h..... More

Print this item

  i would like to see an edit button to clear formatting.
Posted by: Skaperen - Feb-26-2017, 03:32 AM - Forum: Board - Replies (2)

i would like to see an edit button to clear formatting.

Print this item

  Pyximport
Posted by: tdow6478 - Feb-25-2017, 11:41 AM - Forum: General Coding Help - No Replies

Has anyone experimented with this module? It is supposed to substantially speed up code by compiling Python to C. I did not see much evidence of speed..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Python Install Mager Help 7 hours ago bowens1983 bowens1983 News and Disc...
  [WxPython] [SOLVED] Let u... Yesterday, 11:19 Winfried Winfried GUI
  Comparing two columns wit... Yesterday, 07:09 doug2019 Stonsuld General Codin...
  Convert any Python expres... Yesterday, 07:06 voidtrance DeaD_EyE General Codin...
  Using EventSource in Pyth... 06-22, 08:45 rbadis snippsat Web Scraping ...
  need help with tracking a... 06-22, 02:14 gqdeep01 gqdeep01 General Codin...
  A penny doubled every day... 06-21, 17:26 esoyboy DeaD_EyE Homework
  I have a question 06-21, 09:26 Clictithe noisefloor General Codin...
  Problème d'exécutable 06-21, 09:22 Zauf noisefloor General Codin...
  How do select this table ... 06-20, 19:21 MarkMan snippsat Web Scraping ...
  [split] Simple webbot for... 06-20, 04:55 AB073 Plyth Code Review
Most views
  The best Prog... 572307
  Tutorial Requ... 484850
  Web Scraping ... 436843
  Newbie with P... 379680
  Thread remain... 351229
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 6839
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
as1221 3
Newest members
v4vv43 Yesterday
bowens1983 Yesterday
Vasil Yesterday
sakshi Yesterday
Stonsuld Yesterday

User Panel Messages

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