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,977
» Latest member: stephaniehendrix
» Forum threads: 38,732
» Forum posts: 175,563

Full Statistics

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

Latest Threads
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
7 hours ago
» Replies: 2
» Views: 219
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Today, 12:21 AM
» Replies: 2
» Views: 847
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 05:45 PM
» Replies: 6
» Views: 893
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 588
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,940
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,354
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,931
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,358
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,275
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,598

 
  Convert Image API
Posted by: piedrucci - Apr-03-2019, 08:16 PM - Forum: Data Science - Replies (1)

Hi guys... i need your help, i'm receiving an image png from get request to the Tableau APIRest, i'm developing backend and should return this in base..... More

Print this item

  unit testing a method that asks two user inputs() in console
Posted by: gebel - Apr-03-2019, 07:59 PM - Forum: General Coding Help - No Replies

Hi,

I am really struggling to unittest the following simple method:

[python]def add():
a = int(input('Enter first number '))
..... More

Print this item

  Any dialog that allow user to select file OR folder?
Posted by: buran - Apr-03-2019, 06:07 PM - Forum: GUI - Replies (3)

I know there is wx.DirDialog and also ..... More

Print this item

  SQLITE 3 Database error in Python
Posted by: kaishep - Apr-03-2019, 06:02 PM - Forum: Homework - Replies (1)

Here is my code for my database....

[python]
import sqlite3

conn = sqlite3.connect("TestBase5.db")

c = conn.cursor()


# c.execute("""CRE..... More

Print this item

  python opencv grayscale conversion error
Posted by: Spandora - Apr-03-2019, 05:45 PM - Forum: General Coding Help - Replies (1)

Hi, I am running below script. I tried with different video files format, avi/mp4 but the error is at line where each video frame is converted into gr..... More

Print this item

  How does the builtin function argpartition works?
Posted by: vicky53 - Apr-03-2019, 05:38 PM - Forum: Data Science - Replies (4)

Hi Frnds,

I'm new to numpy.. Can you please explain how the builtin function argpartition works?

[python]
>>> x = np.array([3, 4, 2, 1])
>>> x..... More

Print this item

  How to fix error code 2 in python, “directory not found”?
Posted by: dav3javu - Apr-03-2019, 03:00 PM - Forum: General Coding Help - Replies (1)

I'm setting up a keylogger for my mac OS to track esports reaction times. Most of the code is fine, with pynput installed successfully and the code se..... More

Print this item

  Wrong output on my code.
Posted by: JTNA - Apr-03-2019, 02:33 PM - Forum: Homework - Replies (2)

hello,

this code is giving me some weird output and i dont know why, I want the array to be printed out but in uppercase letters and i dont know ho..... More

Print this item

  weird error on my code
Posted by: JTNA - Apr-03-2019, 02:10 PM - Forum: Homework - Replies (1)

I made this code to add random numbers to an array and print the sums, all of that works except the code engine im using requires me to add "Total is:..... More

Print this item

  Help coding 3d software automation
Posted by: danishaikh - Apr-03-2019, 02:01 PM - Forum: General Coding Help - Replies (1)

I'm trying to alter code written by the software when recording a macro to refer to a general location so that I can use the macro to run for any new ..... More

Print this item

  How to correct the NameError: name 'xx' is not defined?
Posted by: vokoyo - Apr-03-2019, 01:54 PM - Forum: Homework - Replies (5)

May I know how to correct the NameError: name 'xx' is not defined ?
[python]
import numpy as np
import matplotlib.pyplot as plt
from sklear..... More

Print this item

  ReShapping error while using open cv in python
Posted by: barry76 - Apr-03-2019, 12:40 PM - Forum: General Coding Help - No Replies

Using mentioned below code I am trying to reshape the image and use it on a specific row and column parameters

[python]import cv2
import numpy as ..... More

Print this item

  while creating a array using numpy.arrange, how to negate only the last 50 numbers?
Posted by: vicky53 - Apr-03-2019, 12:18 PM - Forum: Data Science - Replies (1)

I'm creating an array using numpy and trying to negate the numbers from 50 to 100 in seperate steps as below..
\\

[python]

arr = np.arange(100)..... More

Print this item

  guessing the number game
Posted by: go127a - Apr-03-2019, 11:22 AM - Forum: General Coding Help - Replies (6)

I am going to write code in this condition:

I have a number in my mind and the code is going to find out, I have wrote it but it has a problem in w..... More

Print this item

  Question about security fixes
Posted by: sharonsinger - Apr-03-2019, 11:16 AM - Forum: News and Discussions - Replies (5)

I am trying to find out whether fixes have been issued yet for CVE-2019-9947 and CVE-2019-9948
I can see the bugs (https://bugs.python.org/issue35906..... More

Print this item

  Ideas for determine the volume of rotating object
Posted by: Lardos - Apr-03-2019, 11:03 AM - Forum: Bar - Replies (2)

Hello everybody,

I'm afraid I'm totally wrong with my question here, but I thought it might be worth a try...
I am currently working on an experim..... More

Print this item

  sending html file in email
Posted by: santoshi - Apr-03-2019, 10:32 AM - Forum: General Coding Help - Replies (3)

i am trying to email the report.html. email is coming successfully, but without any content.
Tried with standalone python script.

following is the..... More

Print this item

  How to call base class function
Posted by: kamal_chennai - Apr-03-2019, 10:09 AM - Forum: General Coding Help - Replies (1)

Hi Team,

Please find the below code

[python]

class A () :
    def __init__(self,name):
        self.name = name

    def fun(self):
        print("..... More

Print this item

  Value Estimator Calculator
Posted by: jaycuff13 - Apr-03-2019, 10:06 AM - Forum: General Coding Help - Replies (1)

Hello. I am working on value estimator in python. Towards the end of my script I am trying to create a rating systems based on the the total investmen..... More

Print this item

  dictionary and function
Posted by: renu6593 - Apr-03-2019, 09:54 AM - Forum: General Coding Help - Replies (2)

iteration through a dictionary and allocate those values to a function for further calculation

i use python 2.7

x={AB,AD,BD} #Dictio..... More

Print this item

  Why is from code import * different from entering that code directly into the REPL?
Posted by: sebi - Apr-03-2019, 07:01 AM - Forum: General Coding Help - Replies (5)

...indeed, for code.py being

a = 0
def func():
    global a
    a = 1
after entering that code directly into the REPL a..... More

Print this item

  counting the occurence of a specified number in a numpy-matrix
Posted by: PhysChem - Apr-03-2019, 06:27 AM - Forum: Data Science - Replies (1)

Hi!
There is a numpy-matrix with a couple column and about 100000 row. For now, only the last element of each row is important.
I wish to count, th..... More

Print this item

  Decoding log files in binary using an XML file.
Posted by: captainfantastic - Apr-03-2019, 05:42 AM - Forum: General Coding Help - Replies (1)

Good day.

I am attempting to create a new log decoder based on an existing program, the message data is compared against an XML file and binary str..... More

Print this item

  What does non-existent method start mean?
Posted by: StanHuang - Apr-03-2019, 03:33 AM - Forum: General Coding Help - Replies (3)

I am new and hadn't write any python program before. Now, I was assigned to take over a finished program. I found codes in main.py as:
[python]
#!/u..... More

Print this item

  need better than time.time()
Posted by: Skaperen - Apr-03-2019, 03:18 AM - Forum: General Coding Help - Replies (2)

when running fast, two calls to time.time() can return the same value. time.time() does do better than one second resolution but not good enough for ..... More

Print this item

  Finding perfect numbers
Posted by: BillMcEnaney - Apr-02-2019, 11:22 PM - Forum: General Coding Help - Replies (6)

Everyone, Lisp, Prolog, Python, and Haskell are my favorite programming languages partly because I love functional programming. But I know that Prolog..... More

Print this item

  How to multiprocessing Api post request
Posted by: kinojom - Apr-02-2019, 11:20 PM - Forum: General Coding Help - Replies (1)

I successfully post each record one by one from a csv file. However, I'm trying to implement multiprocessing to make it more efficient to handle large..... More

Print this item

  save parameters an data from image to csv
Posted by: pifko22 - Apr-02-2019, 10:22 PM - Forum: Data Science - No Replies

my code goes through photos from a folder and lists their parameters (age, emotion). I only need emotion.

  So all the photos I have in my folder s..... More

Print this item

  loading a csv file into python from pandas. Variable is not recognized
Posted by: vijjumodi - Apr-02-2019, 09:01 PM - Forum: Data Science - Replies (2)

I am facing an error in loading a csv file into python with pandas package it is not recognizing a variable. Can you guys please help me out with this..... More

Print this item

  loan
Posted by: mcgrim - Apr-02-2019, 08:56 PM - Forum: General Coding Help - Replies (51)

I am writing a program that calculates the remaining loan after a certain number of years n.
The initial borrowed amount is called 'balance' in this ..... More

Print this item

  Error in code
Posted by: iMedia - Apr-02-2019, 08:26 PM - Forum: General Coding Help - Replies (4)

This one working before. I am trying to figure out how to make it on a enter of a int a msg is played.

CODE:

[python]import time #Imports the ti..... More

Print this item

  Including classes from folder issue
Posted by: graham23s - Apr-02-2019, 06:40 PM - Forum: General Coding Help - Replies (1)

Hi Guys,

What i'm trying to do is execute a few actions on a few websites using selenium, i was going to have my structure like:

sites
--site1...... More

Print this item

  Pyinstaller Maximum recursion bug
Posted by: scales11 - Apr-02-2019, 03:16 PM - Forum: General Coding Help - Replies (8)

hello all.

I am trying to create an executable from a simple python script containing the pandas library, but I think that I have encountered a bug..... More

Print this item

  keylogger help? (not for malicious use, to be used with data visualisation)
Posted by: dav3javu - Apr-02-2019, 03:04 PM - Forum: General Coding Help - Replies (1)

hi,

I'm trying to install a keylogger on Mac OS, following this tutorial: tutorial for keylogger[/ur[url=https://python-forum.io/thread-17218.html]..... More

Print this item

  stiching python and batch
Posted by: jenya56 - Apr-02-2019, 02:57 PM - Forum: General Coding Help - Replies (1)

Dear all,
I have found the way to communicate between python and batch file. Below is my python and batch file. As you can see it is not that pretty ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Integer Factorization Too... 7 hours ago fosuwxb buran Code sharing
  My goal to be hired worki... Today, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... Yesterday, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... Yesterday, 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...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577364
  Tutorial Requ... 500727
  Web Scraping ... 441019
  Newbie with P... 385067
  New Users Int... 369575
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
stephaniehendrix Today
Williamcaurb Today
Schirag Today
Jacobjoift Today
sophielane Yesterday

User Panel Messages

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