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,982
» Latest member: miriamwilliam
» Forum threads: 38,733
» Forum posts: 175,566

Full Statistics

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

Latest Threads
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Larz60+
2 hours ago
» Replies: 1
» Views: 77
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
11 hours ago
» Replies: 4
» Views: 2,018
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 426
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,068
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,126
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 791
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,086
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,532
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,119
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,576

 
  g Null Byte using DictReader
Posted by: eshwinsukhdeve - May-15-2019, 05:08 AM - Forum: General Coding Help - Replies (13)

I have the below code
[python]
stream = io.StringIO(csv_file.stream.read().decode('utf-8-sig'), newline=None) // error is here

reader = csv.DictR..... More

Print this item

  How to extrac a data table from Pdf document using Python
Posted by: Amit0503 - May-15-2019, 03:09 AM - Forum: General Coding Help - Replies (1)

Hi,
I am working on a project where few data tables from pdf document needs to be extracted into an excel file only when the table page or the table ..... More

Print this item

  Inserting csv values into SQL server
Posted by: vincentwebs - May-15-2019, 02:16 AM - Forum: General Coding Help - Replies (3)

Hey all,

I am running into a small issue that I am unable to get around at the moment. Right now I am trying to insert values into a tablr in sql b..... More

Print this item

  If statement won't print
Posted by: coreywratchford66 - May-14-2019, 10:58 PM - Forum: General Coding Help - Replies (1)

When I run this code there is no error but it isn't printing match like I want it to. Any idea as to why?

The code is as follows.
[python]
while ..... More

Print this item

  convert a list of string+bytes into a list of strings (python 3)
Posted by: pacscaloupsu - May-14-2019, 08:49 PM - Forum: Data Science - Replies (4)

Hello everyone!

I would like to extract the first bytes of a binary file, and convert them into strings, in a list.
[python]
def binaryMethod(..... More

Print this item

  Can Python 3.6 program handle Python 2.7 algorithm?
Posted by: Socrates123 - May-14-2019, 07:37 PM - Forum: General Coding Help - Replies (2)

I have been learning Python programming in Zed A. Shaw's book "Learning Python 3 the Hard Way" in which I write Python programs in Notepad++ and then ..... More

Print this item

  Question in the twilight zone! What would you use if there was no python?
Posted by: rxndy - May-14-2019, 07:03 PM - Forum: Bar - Replies (15)

What language would you use if python did not exist?

Print this item

  Shutdown any audio command
Posted by: francisco_neves2020 - May-14-2019, 06:51 PM - Forum: GUI - Replies (2)

Hi guys i have been absent for a while do to house changing. I'm back now, trying to finish my python program. This are two audio commands in my progr..... More

Print this item

  call dict object result key error
Posted by: lateublegende - May-14-2019, 04:52 PM - Forum: General Coding Help - Replies (2)

hello, my program include a dict, but when I try to call a object of the dict, that result with a KeyEror
[python]
actualsearch=0
dict={ 0: 41, 1: ..... More

Print this item

  How to convert rows to columns.
Posted by: jarrod0987 - May-14-2019, 04:37 PM - Forum: General Coding Help - Replies (1)

I'm playing around with incomplete columnar ciphers. What is the fastest was to convert rows to columns when the columns may not all be the same lengt..... More

Print this item

  IDLE Deployment to classroom
Posted by: siwekp - May-14-2019, 03:45 PM - Forum: General Coding Help - Replies (1)

Hey, i've deployed Python 3.7.3 to a suite of computers, no problem there, the issue i have is getting the IDLE.bat file to run in a restricted enviro..... More

Print this item

  py2 to py3 conversion
Posted by: Vysero - May-14-2019, 03:40 PM - Forum: General Coding Help - Replies (1)

Hey guys, its been a while since I have worked with Python. I remember there were a few changes when py moved from 2 too 3. I am getting a syntax erro..... More

Print this item

  Requesting help with 3D plotting with quivers
Posted by: Akan2019 - May-14-2019, 02:05 PM - Forum: General Coding Help - Replies (1)

Hello,
I am trying to write a python script to read columns of data from a file, construct a vector and plot the vector data at the height of the 'en..... More

Print this item

  Saving detections to a file
Posted by: JosefFilosopio - May-14-2019, 02:04 PM - Forum: General Coding Help - Replies (6)

Hello!

For a project I am in need of a specific data structure. I am not sure how to call this or where to find this so I hope someone can help me...... More

Print this item

  How to write to csv file
Posted by: SriMekala - May-14-2019, 01:51 PM - Forum: General Coding Help - Replies (1)

Hi,
I read some data from the web which is in the below format:

[python][{'expTime":"2019\/04\/02 00:11:23","type_exp" :"INJ_2026","F_pair":148,"e..... More

Print this item

  Speedup the porting process
Posted by: Sandy7771989 - May-14-2019, 01:44 PM - Forum: General Coding Help - Replies (2)

Hi All,
I'm trying to port data from MySQL DB to PostgreSQL DB using the below script,The script is running fine ,but it is slow for higher record co..... More

Print this item

  chr in Python
Posted by: DarkCraftPlayz - May-14-2019, 01:01 PM - Forum: Homework - Replies (8)

Question: [b]Write a program in Python to allocate and display Block and Floor No. on the basis of Customer Number. Assuming there are 10 Blocks ('A' ..... More

Print this item

  How to repeat input line of code until condition is met
Posted by: Reta - May-14-2019, 11:52 AM - Forum: Homework - Replies (2)

So right now, I'm trying to loop a line that requires input until a condition is met, but I can't seem to do so.

Essentially, what I want is:

Code a..... More

Print this item

  json.dumps to keep dictionary keys
Posted by: batchenr - May-14-2019, 11:14 AM - Forum: General Coding Help - Replies (1)

Hello,
im using python3 on ubuntu 18 machine
i am new to python

i have this script :
[python]
import json
import psutil
d = {}

mem = psut..... More

Print this item

  status bar controll with buttons
Posted by: chano - May-14-2019, 10:54 AM - Forum: GUI - Replies (4)

Hello dears,Can you help me?
How i move this bar with the buttons?
Or offer a better solution.
Thank you much
[python]
import tkinter as tk
from..... More

Print this item

  delete a file after closing it
Posted by: mcgrim - May-14-2019, 10:36 AM - Forum: General Coding Help - Replies (1)

I used a file in my code
and I wanted to delete it
manually.
A message appeared saying that it was still open
in python and therefore I could not..... More

Print this item

  rf64 audio files
Posted by: kerzol81 - May-14-2019, 07:41 AM - Forum: General Coding Help - Replies (7)

Hi,

I got tons of rf64 audio files.
I try to parse the meaning of each field from the header with not much success.

here is the header of such ..... More

Print this item

  Broadcasting error in CVXPY
Posted by: adamG - May-14-2019, 07:38 AM - Forum: Data Science - Replies (1)

Hello,

I am trying to run the following code, which I took exactly from a website, where people confirmed it to be working. Could you please help ..... More

Print this item

  Selecting a sample based on index
Posted by: Scott - May-14-2019, 06:08 AM - Forum: General Coding Help - Replies (1)

Hi everyone,

I am trying to select a time period based on a date index. head of data below:

[output] NZ
Year-Qtr
Mar-90 0.2
Jun-90 -0.5
Sep..... More

Print this item

  module logging posting randomly
Posted by: DJ_Qu - May-14-2019, 03:48 AM - Forum: General Coding Help - Replies (2)

Hello,
I am writing a program with a lot of print() so I use the module logging for debugging purposes. The problem is that when I put logging.debug(..... More

Print this item

  Downloading book preview
Posted by: Truman - May-13-2019, 11:32 PM - Forum: Web Scraping & Web Development - Replies (6)

The script should open a preview of amazon book, list all given pages ( images ), download it's content and print it.
[python]import time
import subp..... More

Print this item

  how to convert list into string
Posted by: Shevach - May-13-2019, 09:20 PM - Forum: Homework - Replies (3)

I thought that this would be really easy but I'm having problems.
I want to print a list and add the word "and" before the last value

I tried with..... More

Print this item

  How can I change value of dict in list?
Posted by: Mike Ru - May-13-2019, 08:41 PM - Forum: General Coding Help - Replies (1)

I have it

phone_books = [
    {'id': 0, 'name': 'Mike', 'number': 1111111},
    {'id': 1, 'name': 'Sasha', 'number': 2222},
]
I res..... More

Print this item

  Python says module doesn't exist... I say it does!
Posted by: EricMichel - May-13-2019, 07:37 PM - Forum: General Coding Help - Replies (2)

Hello all!

I am much newer to scripting in Python and my experience is almost exclusively limited to writing tools for use in a Maya production pipel..... More

Print this item

  read from file
Posted by: mcgrim - May-13-2019, 07:00 PM - Forum: Homework - Replies (16)

I am trying to solve this task:

Read the dates and the energy-values from the file "kwh.dat". Every line you readin is a string with string represe..... More

Print this item

  Backend Python Developer needed in NYC ASAP
Posted by: KenP - May-13-2019, 06:51 PM - Forum: Jobs - No Replies

I have an immediate need for a Backend Python Developer in New York City (SoHo) paying from $70-100/hour. This is an onsite position lasting 3-6 mont..... More

Print this item

  Spam, Is or is not ?
Posted by: MvGulik - May-13-2019, 05:24 PM - Forum: Board - Replies (3)

This morning I saw some 'blockchain related <something> for python' post in 'News and Discussions'. And my initially thought was to report is as spam...... More

Print this item

  Improving the program
Posted by: sunhyunshine - May-13-2019, 04:50 PM - Forum: Homework - Replies (5)

Hello, i have this homework assignment, but i would like to improve it and would appreciate any help. If you have any ideas, feel free to comment.

..... More

Print this item

  Python - install pip on embed version
Posted by: glardz - May-13-2019, 04:07 PM - Forum: Homework - Replies (1)

hi,

i try to install pip on python 3.7.3, i run the script get-pip.py and installed succesfully but when i run python.exe pip is not reconize

Print this item

  Converting Program to OOP
Posted by: Carson147 - May-13-2019, 03:42 PM - Forum: General Coding Help - Replies (2)

Hello, I recently created a makeshift 'My Contact' program that is completely text based. I'm wondering if it is possible to turn this code into Objec..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 2 hours ago SpongeB0B Larz60+ General Codin...
  Error: cannot mix str wit... 11 hours ago ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
Most views
  The best Prog... 577446
  Tutorial Requ... 500968
  Web Scraping ... 441077
  Newbie with P... 385144
  New Users Int... 369721
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+ 12092
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
miriamwilliam Today
Davidkiplimo Today
Joliekeva Today
silversimon2 Yesterday
alissapena8 Yesterday

User Panel Messages

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