Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,311
» Latest member: StepanVoronin
» Forum threads: 38,801
» Forum posts: 175,923

Full Statistics

Online Users
There are currently 33 online users.
» 2 Member(s) | 27 Guest(s)
Google, AOL, Bing, Internet Archive, deanhystad, snippsat

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 11
» Views: 306
Python compiler
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 1
» Views: 71
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
Yesterday, 07:34 PM
» Replies: 5
» Views: 91
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
Yesterday, 05:51 PM
» Replies: 0
» Views: 50
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 07:39 AM
» Replies: 3
» Views: 11,120
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 204
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 730
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,838
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 210
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 165

 
  Hard time trying to have clean MySQL to CSV program
Posted by: PierreSoulier - Jul-20-2018, 07:22 AM - Forum: General Coding Help - Replies (2)

Hello,

I want to know how to get 'clean' results on the MySQL querry using python.

Here is the program:

[python]
cur.execute('select nom_re..... More

Print this item

  Need help to correct my multiprocessing code
Posted by: PrateekG - Jul-20-2018, 06:26 AM - Forum: Networking - Replies (1)

Hi Experts,

I have a csv file containing more than 60,000 records in a ftp location.

I have written a Python script which searches the product f..... More


Attached Files

.csv   sample.csv (Size: 208.18 KB / Downloads: 634)
Print this item

  How to make my python 3.6 unnesting function correct?
Posted by: PrateekG - Jul-20-2018, 06:04 AM - Forum: Data Science - Replies (6)

Hi All,

I have a csv file containing product details. From which I am extracting required informations.
There is one column in the csv-Options and..... More


Attached Files

.csv   full.csv (Size: 64.63 KB / Downloads: 73)
Print this item

  List with "or" value?
Posted by: WolfWayfarer - Jul-20-2018, 04:13 AM - Forum: Homework - Replies (6)

I'm having trouble with an assignment about leap years. I had a basic (ugly) code that did the job, however when I asked for feedback from the teacher..... More

Print this item

  Need help adding a sql List to a combo box PyQt5
Posted by: jimmyvegas29 - Jul-20-2018, 03:11 AM - Forum: GUI - Replies (1)

So this has been frustrating me for to man hours, and i have no been able to find the answer in the google.

Im trying to query my db to get a dist..... More

Print this item

  How to animate a Turing Machine
Posted by: darter - Jul-20-2018, 03:09 AM - Forum: GUI - Replies (1)

I want to depict a paper tape with ones and zeros scrolling past a read head "eye". I am little stuck on the design for this. I guess my first thought..... More

Print this item

  Scrapper for websites
Posted by: stinger - Jul-20-2018, 02:11 AM - Forum: Web Scraping & Web Development - No Replies

Hello I am having issues with this guide I am following my current version is [b]"3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit ..... More

Print this item

  Error when trying to square a number
Posted by: pistacheoowalnuttanker - Jul-20-2018, 12:24 AM - Forum: General Coding Help - Replies (5)

Hello, I am completely new to Python and I was following a tutorial on Python 3 using Jupyiter notebook when I got the error bellow ***
--------------..... More

Print this item

  module requests, .text extension
Posted by: Truman - Jul-19-2018, 11:39 PM - Forum: General Coding Help - Replies (1)

[python]import requests
res = requests.get('https://automatetheboringstuff.com/files/rj.txt')
print(type(res))
print(res.status_code == requests.codes..... More

Print this item

  Attempting to update from python3.5 to python 3.7
Posted by: Vysero - Jul-19-2018, 07:53 PM - Forum: News and Discussions - Replies (3)

My original reason for updating may be wrong. Originally, I wanted to update because I tried converting a GUI i built in PyQt4 to PyQt5 and I got a st..... More

Print this item

  Counting only letters in a string
Posted by: PraiseYAH - Jul-19-2018, 07:18 PM - Forum: Homework - Replies (2)

I'm reading from a file with the following text:

Do you like green eggs and ham?
I like them, Sam I am!
Do you like green eggs and ham, Sam?
Do ..... More

Print this item

  3 easy questions for python programmers but 3 pain in the ass for me
Posted by: grjmmr - Jul-19-2018, 06:58 PM - Forum: General Coding Help - Replies (6)

So quick run down; I am attempting to learn python so I can write simple programs to run my led matrix. I took Java 20+ years ago and when looking at ..... More

Print this item

  Have function reject bad argument when argument is called by another function?
Posted by: jobroinc - Jul-19-2018, 06:42 PM - Forum: General Coding Help - Replies (5)

I am creating a functions that calls upon two other functions: hal(a) and acc(b).
[python]
x = {"F": "Fluorine", "Cl": "Chlorine"}
y = {"O": "Oxyg..... More

Print this item

  [split] print twice?????
Posted by: rafafiqui - Jul-19-2018, 06:05 PM - Forum: General Coding Help - Replies (3)

it's supuse have to work but not for me, i am using python 3, any idea why???


[python]>>> print_twice("spam")
Traceback (most recent call last):..... More

Print this item

  Trying to add logs to webscraping module
Posted by: tjnichols - Jul-19-2018, 04:29 PM - Forum: Web Scraping & Web Development - No Replies

Hello all - It's been a while!

I am trying to download the raster and LAS logs from the WOGCC site. Previously, I wanted to download reports - whic..... More

Print this item

  How to intercept and modify form POST values
Posted by: gilberto - Jul-19-2018, 02:06 PM - Forum: Networking - Replies (4)

I have a simple form on a remote webserver:

[code]
<form action="post.php" method="post">
<input type="text" name="p" value="abc">
<inpu..... More

Print this item

  Python version change
Posted by: saisankalpj - Jul-19-2018, 12:53 PM - Forum: General Coding Help - Replies (4)

I have written Python code in Python 2.7.14 version and now i am asked to change to 3.6 version.
My queries:

1.will I be able to run the same code..... More

Print this item

  Problem between list and tuple
Posted by: PierreSoulier - Jul-19-2018, 12:13 PM - Forum: General Coding Help - Replies (2)

Hello here is my code:

[python]n=int(x[4])
chiffres = []
while n > 0:
chiffres.append(n % 10)
n = n // 10
..... More

Print this item

  Transforming data with a partial transpose
Posted by: DivyaDS - Jul-19-2018, 11:16 AM - Forum: General Coding Help - Replies (2)

Hello,

I have a requirement of transposing my data partially

Here is the sample Input & output I am looking for..

Pid Mkdn Date Clr Sls$ Mkdn..... More

Print this item

  Executable [tkinter, cx_oracle] for another pc
Posted by: dimvord - Jul-19-2018, 10:49 AM - Forum: GUI - Replies (1)

Hi,
I completed a GUI in Pyrhon 3.6.5 that uses many sql queries from a database (Oracle 11g).
I made an executable file (with pyinstaller) that wor..... More

Print this item

  Issue in my multiprocessing Python code?
Posted by: PrateekG - Jul-19-2018, 10:00 AM - Forum: General Coding Help - Replies (7)

Hi all,

I am written a Python 3.6 ETL process where I am searching and then translating the 42000 products from a csv file.

The whole ETL process is..... More

Print this item

  Improve segmentation : Create sphere brush to edit voxels values in scanners image wi
Posted by: LauraLaura - Jul-19-2018, 09:49 AM - Forum: Data Science - Replies (1)

Good morning,

I would need some help to finish my project as an intern working on segmentation of an organ on 3D Slicer.
I have a segmented organ ..... More

Print this item

  Change distance and title postion in subplots
Posted by: Mark3232 - Jul-19-2018, 09:36 AM - Forum: General Coding Help - Replies (2)

Hi Forum

Problem: side by side plots too close, second plot title overlapping first plot
Does anybody know a way to fix this?

[url=[img]http..... More

Print this item

  python 3 TextIOWrapper.tell() is significantly slower than in python 2
Posted by: tfox - Jul-19-2018, 09:32 AM - Forum: News and Discussions - Replies (1)

Hi, I'm having a function ported from python 2 to python 3 and found that the TextIOWrapper.tell() is the cause that notably slows down the perfomance..... More

Print this item

  bluetooth
Posted by: Epilepsy - Jul-19-2018, 06:05 AM - Forum: Networking - Replies (1)

I there, wich is the easy way to connect to slave bluetooth device?
I Know the name and the password of this, so i hope you can help me.
Thanks

Print this item

  create folders named from list array
Posted by: HaKDMoDz - Jul-19-2018, 05:35 AM - Forum: General Coding Help - Replies (1)

Hi,

how can i create a bunch of folders in my specified location and create these folders based on a list of folder names to be created

example ..... More

Print this item

  function defined in a function
Posted by: Skaperen - Jul-19-2018, 03:59 AM - Forum: News and Discussions - Replies (9)

if a function is used only by another function, do you ever define it inside the function that uses it (before it is used)?

Print this item

  Finding prime numbers
Posted by: creslin_black - Jul-19-2018, 03:51 AM - Forum: General Coding Help - Replies (7)

Hi all,

So, this is a small thing that I know the answer to, but I'm just curious why the answer is what it is. I'm going through Codeacademy's py..... More

Print this item

  Help on Creating Program to find the Median and Mode by hand
Posted by: EvanCahill - Jul-19-2018, 02:20 AM - Forum: Homework - Replies (3)

My assignment is to create a program that reads a text file with numbers and outputs all the statistics found here. Similar to the output below. There..... More

Print this item

  Another infinite loop
Posted by: wlsa - Jul-19-2018, 12:41 AM - Forum: Homework - Replies (7)

The given problem: use bisectional search to find the minimum monthly payment to pay off debt after 12 payments (slight.
Assume that the interest is c..... More

Print this item

  Calling functions from other programs
Posted by: kgchin - Jul-18-2018, 11:43 PM - Forum: GUI - Replies (1)

Hi,

I am trying to run a Python script that calls the optimization program Hypermesh. This program uses scripts and functions in tcl that we are u..... More

Print this item

  Running multiple files
Posted by: Totalnoobwithhelp - Jul-18-2018, 09:02 PM - Forum: General Coding Help - Replies (3)

So I've cobbled together a python script that, in essence, runs through a txt file and pulls out words or phrases that match a set of words/phrases th..... More

Print this item

  Updating Python version from command prompt and Conversion from PyQt4 to PyQt5
Posted by: Vysero - Jul-18-2018, 08:55 PM - Forum: GUI - Replies (4)

Running: Ubuntu 16.04 and Python 3.5.2

So I ran a script which I found here: https://github.com/rferrazz/pyqt4topyqt5
in order to convert one of m..... More

Print this item

  raise exception instead of return None
Posted by: Skaperen - Jul-18-2018, 08:51 PM - Forum: General Coding Help - Replies (4)

i have a function that in a certain tested case returns None because calculations just didn't work out. instead, i'd rather have it raise an exceptio..... More

Print this item

  I don't understand the error
Posted by: MasterGame - Jul-18-2018, 07:32 PM - Forum: General Coding Help - Replies (1)

I'm a Python 2 user and made a code to filter out the vowels in a phrase. This is the code:[python]

filtered_phrase=open("vowel_filter.txt", "w")
fil..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 4 hours ago Lou noisefloor General Codin...
  Python compiler 4 hours ago NeoQuant noisefloor General Codin...
  Trading Risk management s... Yesterday, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... Yesterday, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler Yesterday, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579509
  Tutorial Requ... 512938
  Web Scraping ... 442375
  Newbie with P... 386401
  New Users Int... 381778
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12113
buran 8196
snippsat 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
StepanVoronin Today
QABOB Today
adityaN Today
NeoQuant Yesterday
Hosthubac Yesterday

User Panel Messages

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