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,980
» Latest member: Joliekeva
» Forum threads: 38,732
» Forum posts: 175,564

Full Statistics

Online Users
There are currently 59 online users.
» 0 Member(s) | 52 Guest(s)
Bing, Google, AOL, Facebook Dev

Latest Threads
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
3 hours ago
» Replies: 4
» Views: 1,974
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 399
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,032
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,090
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 760
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,064
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,509
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,083
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,540
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,424

 
  Python3 Tkinter Calculator
Posted by: brunolemos - Feb-12-2020, 07:20 PM - Forum: Code Review - No Replies

Module: main.py

[python]import tkinter
import application


class TkinterWindow(tkinter.Tk):
def __init__(self):
super().__init__..... More

Print this item

  n=Help using Delft3D in python
Posted by: Ana_Bastos - Feb-12-2020, 07:05 PM - Forum: General Coding Help - No Replies

Hi
I need some help I`m trying to change a script from matlab to python. The code in matlab is used to process data from numerical number using delft..... More

Print this item

  loading_model
Posted by: raghav7203 - Feb-12-2020, 06:24 PM - Forum: Data Science - Replies (1)

[error]
loaded_model = model_from_json(loaded_model_json)
File "/usr/local/lib/python3.6/dist-packages/keras/engine/saving.py", line 664, in model..... More

Print this item

  NSA Python Traning Document as PDF
Posted by: wavic - Feb-12-2020, 05:58 PM - Forum: News and Discussions - Replies (3)

Someone requested NSA on Twitter for their Python training materials and he got back a four hundred pages document which he turned into PDF.
Here is ..... More

Print this item

  How to modify data frame row value
Posted by: SriRajesh - Feb-12-2020, 05:46 PM - Forum: Data Science - No Replies

Hi,
I have dataframe:
df3:
[python]name type score combined
A t1 0 A_t1
B t2 0 B_t2
C t2 1 C_t2
A t2 1 A..... More

Print this item

  Does the order of columns in the DataFrame matter?
Posted by: new_to_python - Feb-12-2020, 04:09 PM - Forum: Data Science - Replies (11)

Hi, I noticed that sometimes when doing certain operations, the order of the columns in the DataFrame got changed automatically. Same thing happened w..... More

Print this item

  needed str around a file pathname to open it
Posted by: adetheheat - Feb-12-2020, 04:03 PM - Forum: General Coding Help - Replies (1)

I obtained a file pathname ending with .lst in the root dir like this:

for file_path in Path(args.path).glob('**/*.lst'):
and..... More

Print this item

  Check for a special characters in a column and flag it
Posted by: ayomayam - Feb-12-2020, 02:57 PM - Forum: General Coding Help - No Replies

I have a data frame with a below column and would like to do some characters/special character search on it

Price
-----
123
$123
-123
A123
e123
234.5..... More

Print this item

  loop in pyautogui (python automation GUI application)
Posted by: pyprogrammer - Feb-12-2020, 02:52 PM - Forum: General Coding Help - No Replies

HI!I'm working on automation with my "exceldata to GUI app import". It goes quite well, but I have an issue with loop. When I'm looping, it imports da..... More

Print this item

  How to make table
Posted by: SriRajesh - Feb-12-2020, 02:50 PM - Forum: Data Science - No Replies

Hi,
I have data as below:
[python]name category date score
Z s1 2020-02-12
A s1 2020-02-12
B s2 2020-01-23
U s1 ..... More

Print this item

  Trying to use Jinja2 for loop with Python 3.6
Posted by: benniehanas - Feb-12-2020, 02:44 PM - Forum: General Coding Help - No Replies

Hello, I am getting errors with a simple for loop in Jinja which I think should work. My code: [python]
{# Server Interface Template #}
{% for n in ..... More

Print this item

  Performance enhancement
Posted by: fimmu - Feb-12-2020, 02:42 PM - Forum: General Coding Help - No Replies

Hi, I am new in python programming and I need help to speed up nested loop. Here is what I want to do:
Suppose I have two large size dataframe df1(fo..... More

Print this item

  Odeint to solve Mukhanov equation
Posted by: Messier087 - Feb-12-2020, 02:12 PM - Forum: Data Science - Replies (4)

Hi,

I am currently trying to solve the Mukanov equation which contains variables that change with time. This requires me to loop the odeint functio..... More

Print this item

  beautifulsoup :: possible to rssify content - of let us say 10 or 20 last records!?
Posted by: apollo - Feb-12-2020, 01:44 PM - Forum: Web Scraping & Web Development - Replies (1)

hello dear python-experts,


i am fairly new to python know a little the parser and have heard bout beautiful soup

i want to gather some inform..... More

Print this item

  Python 3.8.1 Tkinter Widget stete change
Posted by: sasiap - Feb-12-2020, 11:37 AM - Forum: GUI - Replies (4)

Dear Sirs,
This is my python code:
[python]
from tkinter import *

import math
import numpy as np

gui = Tk()
gui.title("Money Split")
gui.g..... More

Print this item

  small Python exercises
Posted by: darpInd - Feb-12-2020, 11:32 AM - Forum: News and Discussions - Replies (2)

[quote]

Hello,
I have just started to learn python and about to complete basics course. Next - I would like to go through some exercises -- gradua..... More

Print this item

  how to extract financial data from photocopy of document
Posted by: angela1 - Feb-12-2020, 11:21 AM - Forum: Data Science - Replies (6)

I have a lot of company annual reports in PDF format, and they are scanned copies (an example is in link 1 below). I need to extract data from the fin..... More

Print this item

  how to use this module
Posted by: ujang - Feb-12-2020, 09:33 AM - Forum: General Coding Help - Replies (2)

hi, i new here.
last night i found this program "https://pyscenedetect.readthedocs.io/en/latest/"
i install latest python, success,
install that p..... More

Print this item

  help a brother am so new
Posted by: manimani - Feb-12-2020, 09:13 AM - Forum: General Coding Help - Replies (5)

write a python program that can make change. your program should take two numbers as input, one that is monetary amount charges and the other that is ..... More

Print this item

  date validation
Posted by: BeataK - Feb-12-2020, 08:44 AM - Forum: General Coding Help - Replies (3)

Hi,

I have started learning Python not far ago. I have a program that search for dates in a string (this part works ok) and than checks date correc..... More

Print this item

  create a list of object with a list of character
Posted by: studenthch - Feb-12-2020, 08:43 AM - Forum: General Coding Help - No Replies

Hello i am french student and i work on a first python 3.7 project

My problem is the following
i have create and object "ingredient" with 4 param..... More

Print this item

  Get and record temperature to Excel
Posted by: mcmxl22 - Feb-12-2020, 08:17 AM - Forum: Code sharing - No Replies

This program collects the temperature from www.weather.gov and writes it to an Excel spreadsheet at a given interval. It also gets the time each tempe..... More

Print this item

  Outputs missing
Posted by: SamAnw - Feb-12-2020, 04:50 AM - Forum: General Coding Help - Replies (4)

Hello,

I've been working on a python program that reads a file instead of inputs. However, there seems to be a problem in my program and it won't r..... More

Print this item

  Real-time plot from serial port
Posted by: Nochill_Senpai - Feb-12-2020, 01:51 AM - Forum: Data Science - Replies (1)

Hi,
I'm trying to plot the values from my uC's ADC in real-time. For this I'm using pyserial and Matlibplot. But I try to plot in real-time, I only ..... More

Print this item

  redoing my multicolumn print class
Posted by: Skaperen - Feb-11-2020, 11:59 PM - Forum: News and Discussions - No Replies

i am planning to refactor and recode my multicolumn print class. the idea is that once all the configuration of the multicolumn layout is done, just ..... More

Print this item

  Jupyter Notebook
Posted by: Dixon - Feb-11-2020, 11:40 PM - Forum: General Coding Help - Replies (1)

Suddenly I'm having a problem starting Jupyter Notebook, or should I say starting Python 3 in Notebook. Something is blocking it, whether it's Norton..... More

Print this item

  Referencing Combo Box
Posted by: MC2020 - Feb-11-2020, 11:40 PM - Forum: GUI - Replies (6)

Hi - I am trying to write a Python code to basically do a sumproduct function based on the item selected and the quantity of that item selected.

My..... More

Print this item

  Python script merging some columns to one column with new name
Posted by: jbveenstra - Feb-11-2020, 09:15 PM - Forum: General Coding Help - Replies (6)

I have a lot of csv files with data and about 30 possible known headers, Header1 to Header30. The number of rows can be practically anything, from 1 t..... More

Print this item

  Multiprocessing doesn't seem to work?
Posted by: t4keheart - Feb-11-2020, 09:04 PM - Forum: General Coding Help - Replies (10)

Having trouble getting multiprocessing to work as I had hoped it would. Ideally, I need these 2 processed to run at the same time. They could even ope..... More

Print this item

  Different Indentation Different Result
Posted by: el_bueno - Feb-11-2020, 09:01 PM - Forum: General Coding Help - Replies (10)

sump=0
for num in listp:
    if num%2==0:
        sump=sump+num
        print(sump
[python]sump=0
for num in listp:
if num..... More

Print this item

  Scraping Images from Missing/ Exploited Children Site for Use with Rekognition
Posted by: codytsterling - Feb-11-2020, 06:22 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello,

I'm relatively new to Python and am trying to get some help scraping images from the following site: https://api.missingkids.org/missingkids..... More

Print this item

  Python script that recursively zips folders WITHOUT nesting the folder inside the zip
Posted by: umkc1 - Feb-11-2020, 04:27 PM - Forum: General Coding Help - Replies (1)

Okay I will try to explain this as best as I can. My goal is to create a python script that will loop through folders, zip them up, but NOT nest the f..... More

Print this item

  Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesyste
Posted by: jiapei100 - Feb-11-2020, 01:25 PM - Forum: General Coding Help - No Replies

- If I export PYTHONHOME=/usr/bin, I got the following ERRORs.


[quote]➜ build git:(master) ✗ echo $PYTHONHOME
/usr/bin
➜ build git:(..... More

Print this item

  Powerset function alternative does not work
Posted by: oClaerbout - Feb-11-2020, 09:41 AM - Forum: General Coding Help - Replies (1)

Hi, I'm new to python (and to coding in general) and I need a powerset function. The one just below works fine, but I'm not familiar with the followi..... More

Print this item

  extract email addresses from gmail
Posted by: vigneshboolog - Feb-11-2020, 09:23 AM - Forum: General Coding Help - No Replies

hi
i just want to print all the email addresses present in my gmail contacts and have no idea
about how to do it.These email addresses are stored ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Error: cannot mix str wit... 3 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...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
Most views
  The best Prog... 577428
  Tutorial Requ... 500907
  Web Scraping ... 441071
  Newbie with P... 385134
  New Users Int... 369673
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
python 6
NonEntity 5
buran 3
Newest members
Joliekeva Today
silversimon2 Yesterday
alissapena8 Yesterday
hoki1881 Yesterday
stephaniehendrix Yesterday

User Panel Messages

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