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,947
» Latest member: Markbel386
» Forum threads: 38,726
» Forum posts: 175,524

Full Statistics

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

Latest Threads
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
5 hours ago
» Replies: 5
» Views: 9,140
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
8 hours ago
» Replies: 0
» Views: 58
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Today, 03:29 AM
» Replies: 2
» Views: 456
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Today, 02:36 AM
» Replies: 0
» Views: 91
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 08:56 PM
» Replies: 9
» Views: 596
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,821
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,132
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,490
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,058
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,801

 
  Pelco D protocol
Posted by: D_frucht - May-29-2018, 08:40 PM - Forum: General Coding Help - Replies (4)

Hello

i have a project that includes pelco d ptz camera tracking.

i have the pelco d protocol, for example:

FF 01 00 04 3F 00 44 - will pan ..... More

Print this item

  [PyGame] Block Game
Posted by: Zman350x - May-29-2018, 08:26 PM - Forum: Code sharing - Replies (3)

A simple game that lets you draw with blocks. Made in a few hours to test/first use pickle (actually cPickle). I know the code is messy, don't worry a..... More

Print this item

  How to correct, save, run with ptpython
Posted by: sylas - May-29-2018, 04:28 PM - Forum: General Coding Help - Replies (17)

Hi all. I am Administrator. With Notepad: I go to correct the error, then I click on "save" icon, then I go to Command Prompt and run with "python Fil..... More

Print this item

  Dictionary is empty
Posted by: ki4jgt - May-29-2018, 03:31 PM - Forum: General Coding Help - Replies (1)

I'm writing my own CRUD (more like URD) database -- for fun and possible production environment as I've needed a database which fits the requirements ..... More

Print this item

  using subpocess for both reading and writing simultaneously
Posted by: dauriac - May-29-2018, 02:13 PM - Forum: General Coding Help - Replies (11)

Hello
I have a very simple python code cpt.py:
[python]
for i in xrange(2):
print i # line 2
ans = raw_input() # line..... More

Print this item

  Improve this code (Receipt alike)
Posted by: Leonzxd - May-29-2018, 01:55 PM - Forum: Homework - Replies (10)

This is another question I got.

It given a lists of items and price tags of them.
It wanted to print out a receipt.
However, I couldn't one shot prin..... More

Print this item

  tale interactive fiction - looking for tutorial
Posted by: aryell8linx - May-29-2018, 11:21 AM - Forum: General Coding Help - Replies (1)

Hello Smile
I have installed tale - python3 in Linux, and I searched Youtube and google for a tutorial but am looking for help in finding a ste..... More

Print this item

  Pushing mysql db data from one schema to another schema?
Posted by: PrateekG - May-29-2018, 10:49 AM - Forum: Data Science - Replies (2)

Hi Experts!

I have created a python script for extracting,transforming the product related data from different merchants and after this I am loadin..... More

Print this item

  How to run different processes in a pool of 5
Posted by: lravikumarvsp - May-29-2018, 09:43 AM - Forum: General Coding Help - No Replies

Hi,

I had a python script which executes different processes in parallel.
How can I modify this script so that it can run the parallel processes i..... More

Print this item

  missing pandas even if in conda list
Posted by: metalray - May-29-2018, 09:14 AM - Forum: Data Science - Replies (2)

Dear Python Experts,

I wonder why pandas is noted as missing even if I have it in my list.

[python]
(donkey) C:\Users\HOL\d2>conda list
# pack..... More

Print this item

  Getting CategoricalEncoder
Posted by: Scott - May-29-2018, 06:53 AM - Forum: General Coding Help - Replies (1)

Hi Everyone,

My scikit-learn does not have the CategoricalEncoder and I cannot find out how to install it online. Has anyone installed it into pyth..... More

Print this item

  how to read a text file as bytes
Posted by: Skaperen - May-29-2018, 06:00 AM - Forum: General Coding Help - Replies (1)

i want to read a file as a list of byte types, one for each line where '\n' or '\r' or '\r\n' or even the unlikely '\n\r' are marking end of line. th..... More

Print this item

  Getting Error SSL Not verrify
Posted by: pramodb35 - May-29-2018, 03:30 AM - Forum: General Coding Help - No Replies

Hi Python,

I am fetching the some data from website. But the result is coming in below. Please help me out this.

[b]requests.exceptions.SSLError..... More

Print this item

  Creating a table from a dataset
Posted by: anthonylauly - May-29-2018, 02:37 AM - Forum: General Coding Help - Replies (2)

Hi, I am quite new to python, and I got confused how to transform a dataset into a table

[img]https://www.dropbox.com/s/xz1q791mlxotnnh/Screenshot%..... More

Print this item

  Help with code Python for "Ctrl+S"
Posted by: karlo_ds - May-28-2018, 10:40 PM - Forum: General Coding Help - Replies (1)

Hi everyone!

I am trying to download all web page in a folder, but only with code. I think as an alternative is the command "Ctrl + S", but I can n..... More

Print this item

  Values in date URL
Posted by: DrSavage - May-28-2018, 06:26 PM - Forum: General Coding Help - Replies (5)

Hi
First time here and newbie learning Python, so hope you can help me ?

This is the amended url, which works internally only and will return 5 se..... More

Print this item

  Need tips for speeding up python code
Posted by: iineo - May-28-2018, 06:01 PM - Forum: Data Science - Replies (1)

[python]from numpy import array, bitwise_or
from itertools import combinations, chain

n,k=map(int,input().split())
arr=list(map(int,input().spli..... More

Print this item

  I need assistance with re-gridding in python
Posted by: Lightning1800 - May-28-2018, 04:34 PM - Forum: General Coding Help - Replies (3)

I am working with climate model data from several models and would like to be able to interpolate each model's grid to a common model grid. I would li..... More

Print this item

  Error trying to draw a gif with graphics.py
Posted by: fierygaming - May-28-2018, 03:54 PM - Forum: Game Development - Replies (8)

Hey guys im sort of a noob at python and im really struggling with this. Im try to draw a image in a function but for some reason it doesnt work I don..... More

Print this item

  Import Error for Templates
Posted by: arohanajit232 - May-28-2018, 03:00 PM - Forum: Data Science - No Replies

[python]import numpy as np
from statistics import mean
x=[1,2,3,4,5]
y=[6,7,8,9,10]
m=((mean(x)*mean(y)-mean(x*y))/(mean(x)**2)-(m..... More

Print this item

  Rename files in two different folders
Posted by: MariaBelen - May-28-2018, 02:46 PM - Forum: Homework - Replies (1)

Hi everyone, I have a problem to solve. I have two folders like this

FOLDER 1:
- 05.xml
- 06.xml
- 07.xml
- 08.xml

FOLDER 2:
- 01_2500.jpeg ..... More

Print this item

  Combining the regex into single findall
Posted by: syoung - May-28-2018, 10:11 AM - Forum: General Coding Help - No Replies

Hello fellow Python Trekkers,

So, this program is a kind of prelude to a program involving SQLite. I'm not looking for help on that. At least not ..... More

Print this item

  Mac - pathnames
Posted by: capnahab - May-28-2018, 08:38 AM - Forum: General Coding Help - Replies (2)

I am using Jupyter Notebooks on a Mac 10.13.4 High Sierra , Python 3.6.4.
I want matplotlib to plot (histogram) some data from a sample table (csv fil..... More

Print this item

  issues while using Psexec from python code
Posted by: dev_devil_1983 - May-28-2018, 07:55 AM - Forum: General Coding Help - No Replies

Hi All,

I am relatively new to python and this forum as well. I was recently working on a code which requires me to connect to a remote machine via..... More

Print this item

  deleting from a set
Posted by: Skaperen - May-28-2018, 07:30 AM - Forum: General Coding Help - Replies (2)

i have a set which contains many words/strings. i want to delete one. but setname.remove(theword) will raise KeyError if it is not ..... More

Print this item

  Object of type 'Status' is not JSON serializable
Posted by: ndakena - May-28-2018, 06:00 AM - Forum: General Coding Help - Replies (1)

with open('json_filtered.txt', 'w') as file:
        file.write(json.dumps(json_list,indent=4))
give the following errors


[e..... More

Print this item

  pipeline between 2 programs
Posted by: Skaperen - May-28-2018, 05:29 AM - Forum: General Coding Help - Replies (11)

in a function, you need to run 2 programs, their names given in the two arguments of the function call, with a pipeline between them, the output of th..... More

Print this item

  detect if sys.stdin is ...
Posted by: Skaperen - May-28-2018, 03:34 AM - Forum: General Coding Help - Replies (4)

how to detect if sys.stdin is the controlling tty (as opposed to a pipe, or a socket, or a file, or "/dev/null", or some other tty the script was invo..... More

Print this item

  too many packages to choose from
Posted by: Skaperen - May-28-2018, 01:40 AM - Forum: News and Discussions - Replies (6)

what i expect to most often look for is a package for is one that has a desired API component. in most cases, more popular packages would be of inter..... More

Print this item

  [split] create a virtual keyboard of an unknown foreign language with python
Posted by: fakoly - May-28-2018, 01:34 AM - Forum: General Coding Help - No Replies

hi i want to create a virtual keyboard of an unknown foreign language with python someone has an idea about it to help me

Print this item

  Code fails on Mac, works on Windows and Raspberry Pi
Posted by: eugenedakin - May-28-2018, 12:49 AM - Forum: GUI - Replies (4)

Hello Everyone,

This is my first time posting in this forum - thanks for your patience. Here is a listing of a simple ScrollBar being attached to a ..... More

Print this item

  trouble while appending list in for loop
Posted by: py_learner - May-28-2018, 12:41 AM - Forum: General Coding Help - Replies (1)

Hi folks, I am new to python and having trouble to append list in for loop.. any help will be appreciated!

[python]
a = [1,1,2,3,5,8,13,21,34,55,..... More

Print this item

  editing lists / sudoku solver
Posted by: monagro - May-27-2018, 04:11 PM - Forum: General Coding Help - Replies (5)

Hi all,

Effectively what I'm trying to do is to write a sudoku solver in python. I wrote one in Matlab a while ago at undergraduate, so I have a ba..... More

Print this item

  Compressing Matrix
Posted by: RamyMaher - May-27-2018, 02:45 PM - Forum: Data Science - Replies (3)

I want to compress a gray image whose dimension is 64x64 into 40x40 image

I tried scipy.fftpack.dct and scipy.fftpack.idct but the resulted image ..... More

Print this item

  How to restart the processes in the pool after the pool got completed
Posted by: lravikumarvsp - May-27-2018, 02:18 PM - Forum: General Coding Help - No Replies

Hi,


I had a python script which runs the processes in parallel in a pool of 3.
Is there any way to restart these process automatically after the..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Creating a Mindmap progra... 5 hours ago J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 8 hours ago compuman145 compuman145 General Codin...
  A coding beginner needs h... Today, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Today, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... Yesterday, 20:56 Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
Most views
  The best Prog... 576717
  Tutorial Requ... 498921
  Web Scraping ... 440526
  Newbie with P... 384496
  New Users Int... 368247
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12088
buran 8176
snippsat 7368
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Markbel386 Today
trntgl Today
susan Today
jatinkumar12 Today
angelhealu504 Today

User Panel Messages

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