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,935
» Latest member: Baran12332
» Forum threads: 38,722
» Forum posts: 175,510

Full Statistics

Online Users
There are currently 47 online users.
» 1 Member(s) | 39 Guest(s)
Applebot, Bing, Google, AOL, AOL, Mojeek, Abobus4Dip

Latest Threads
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Yesterday, 07:55 PM
» Replies: 2
» Views: 352
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 06:57 PM
» Replies: 10
» Views: 3,815
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Yesterday, 12:30 PM
» Replies: 1
» Views: 3,390
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Yesterday, 11:11 AM
» Replies: 4
» Views: 723
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,194
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,066
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,294
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,288
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,411
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 973

 
  new window in separate thread - flask website
Posted by: Notabene - Sep-15-2021, 06:41 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello,
I need to launch new window/tab on my flask website, which will be in separate thread and do its own job, with the ability to close/stop that ..... More

Print this item

  Text widget -macOS
Posted by: apffal - Sep-14-2021, 10:53 PM - Forum: General Coding Help - Replies (1)

When inserting results from a database into a text widget in MacOs, I get unwanted spaces between paragraphs.
However this behaviour doesn´t occur in..... More

Print this item

  Found input variables with inconsistent numbers of samples: [1000, 200]
Posted by: jenya56 - Sep-14-2021, 09:11 PM - Forum: General Coding Help - Replies (2)

Hi all,
I have this code that compiles all the way to the end. Once the function returns it goes though some accuracy calculations that are not set b..... More

Print this item

  Cancelling previous schedule
Posted by: cosmarchy - Sep-14-2021, 07:48 PM - Forum: General Coding Help - Replies (2)

Hi,

Just starting out with Python and am using VSCode to schedule a simple task so am using the following to get started:
[python]import sched
i..... More

Print this item

  breaking a large program into functions, not acting as expected
Posted by: Zane217 - Sep-14-2021, 04:16 PM - Forum: General Coding Help - Replies (9)

I am working on python code for a rotary encoder. By following others scripts I was able to get a working program but it skipped a lot of counts, b..... More

Print this item

  const or #define coming from C
Posted by: jamie_01 - Sep-14-2021, 04:02 PM - Forum: General Coding Help - Replies (11)

please, coming from C, where would be #define or const int ... to a newbie just scraping the surface of python?

for example, defining:

[code]
..... More

Print this item

  How to include input as part of variable name
Posted by: Mark17 - Sep-14-2021, 01:34 PM - Forum: General Coding Help - Replies (4)

Hi all,

Here's a code snippet:

[Python]
MA_list = [10,50,100]

for per in MA_list:
df_per = df.copy()
df_per[per_MA] = df_per['Adj ..... More

Print this item

  url web scraping
Posted by: Fraetos - Sep-14-2021, 07:11 AM - Forum: Web Scraping & Web Development - Replies (1)

Hello,

I was wondering if it is possible to web scrape urls that you get from web scraping the original url? So the original url has 15 different u..... More

Print this item

  Data sets comparison
Posted by: Fraetos - Sep-14-2021, 06:45 AM - Forum: Data Science - No Replies

Hello,

I want to compare some basketball player statistics. I have two different data sets, one with players original stats and another one with so..... More

Print this item

  Jupyter kernel restarts
Posted by: russellm10 - Sep-14-2021, 04:24 AM - Forum: General Coding Help - No Replies

Hi everyone,

I am installing a package called "Lightweaver" inside an anaconda virtual environment. Applying the correct commands brings the enviro..... More

Print this item

  searching for IBM
Posted by: SamHobbs - Sep-14-2021, 12:16 AM - Forum: Board - Replies (1)

The forum software will not let me search for IBM. Has there been any discussion of using IBM Cloud as a host? Okay, ..... More

Print this item

  Deeply nested JSON editing tool w/set arithmetic
Posted by: epieye - Sep-13-2021, 06:04 PM - Forum: Code sharing - No Replies

Hey y'all, I'd like to get some feedback on a JSON editing tool I recently published: https://github.com/project705/jsonsam. This pulls together some..... More

Print this item

  Build a matrix by pressing buttons of an interface in Tkinter which extract data from
Posted by: juandiegopulla - Sep-13-2021, 05:32 PM - Forum: General Coding Help - Replies (1)

Hello I would like to ask for help.
From the matrix in excel shown below
A B C D E F G
1 2 1 1 7 1 1
2 3 2 4 4 2 5
3 4 3 4 5 4 6
4 5 5 5 5 6 7
..... More


Attached Files

.docx   Help.docx (Size: 130.8 KB / Downloads: 374)
Print this item

  Check multiple cases - Python 3.7
Posted by: WannaBePythonDev - Sep-13-2021, 05:22 PM - Forum: Code Review - No Replies

Hi guys.

This is the framework's API: http://www.logicthrupython.org/api/

[python]
def evaluate(formula: Formula, model: Model) -> bool:
"""Calc..... More

Print this item

  append a string to a modified line
Posted by: Mr_Blue - Sep-13-2021, 04:38 PM - Forum: General Coding Help - Replies (10)

i'll try to do this in steps:

1- problem: i must rewrite an corrupted m3u file its lines go:

[output]#EXTINF123#, Title - Song # let's sa..... More

Print this item

  Conversion of ['a', 'b'] to { 'letter': 'a,b' }
Posted by: Roman_Y - Sep-13-2021, 01:10 PM - Forum: General Coding Help - Replies (2)

Dear Experts!
Please advise how to convert(to take the A and from [this list]):

['A', 'B']
and update the 'letter' in {this di..... More

Print this item

  Trying to understand Pymunk
Posted by: Prithak - Sep-13-2021, 11:59 AM - Forum: General Coding Help - Replies (1)

Here I have some code:

[python]
import pygame
import pymunk
import sys

pygame.init()

screen = pygame.display.set_mode((1280,720))
clock =..... More

Print this item

  Auto increament in Entry field. in tkinter GUI
Posted by: cybertooth - Sep-13-2021, 06:57 AM - Forum: General Coding Help - Replies (7)

Hi all,
I have made a form in Tkinter to make entries in MySql database. I would like the Sr. No. entry box to display the next available number. i.e..... More

Print this item

  Plot arrays against each other
Posted by: fabstr1 - Sep-13-2021, 06:48 AM - Forum: General Coding Help - Replies (3)

Hello,

I have a question of how I can plot the two arrays against each other from the link below. The array on the top should be plotted against t..... More

Print this item

  LoRaWAN anybody experimenting with this?
Posted by: Larz60+ - Sep-13-2021, 01:09 AM - Forum: Bar - Replies (2)

I have been following the advancements of LoRaWAN over the past few years, because the concept of a tiny little transceiver operating WAN without inte..... More

Print this item

  Jupyter Notebook as IDE
Posted by: bytecrunch - Sep-12-2021, 07:41 PM - Forum: General Coding Help - No Replies

Hello everyone,

Installing the Anaconda distro installs a PYthon interpreter, modules, libraries as well as the Jupyter Notebook IDE. Jupyter uses ..... More

Print this item

  Simple Recursive-Descent Parser - Python 3.7
Posted by: WannaBePythonDev - Sep-12-2021, 05:09 PM - Forum: Code Review - Replies (4)

Hello.
I'm implementing some logic system from ground up using this framework: https://www.logicthrupython.org/api/index.html

Now, for implementing t..... More

Print this item

  is and '==' i'm confused
Posted by: hshivaraj - Sep-12-2021, 02:58 PM - Forum: General Coding Help - Replies (6)

Hi all

[python]
>>> a = "this is test string"
>>> b = "this is test string"
>>> a == b
True

>>> a is b
False

>>> a = "test"
>>> b = "te..... More

Print this item

  int infinity
Posted by: Skaperen - Sep-12-2021, 02:48 PM - Forum: General Coding Help - Replies (2)

i could use an int infinity. i need the number infinity to do some compares. of course, float infinity works fine with > and < ..... More

Print this item

  Getting "name 'get_weather' is not defined error and no json_data returned?
Posted by: trthskr4 - Sep-12-2021, 02:45 PM - Forum: General Coding Help - Replies (6)

I'm stumped again. Been trying different ways of getting this to work and its solution is evading me. LOL
Just learning and am running Python 3.9.7
M..... More

Print this item

  Python Programmer looking for work
Posted by: Johndg20 - Sep-12-2021, 04:04 AM - Forum: Jobs - Replies (1)

To all,
I have somewhat of an awkward background with a MS and a Phd (abd) in Molecular Biology worth 20+ years of intense research experience at..... More


Attached Files

.docx   John Griner DS Resume_2_This_One.docx (Size: 31.93 KB / Downloads: 3)
Print this item

  exception handling by default
Posted by: Skaperen - Sep-11-2021, 10:02 PM - Forum: News and Discussions - Replies (4)

i am making a function which does something that may raise an exception. normally i would have the caller handle the exception. but i have cases whe..... More

Print this item

  New to python and need help with spacing
Posted by: pmorgan39339 - Sep-11-2021, 08:00 PM - Forum: General Coding Help - Replies (12)

I am trying to create a script that will take the users input and arrange the input in this manner. GIS being what the user input is. NOTE: I had to p..... More

Print this item

  numpy 2-dimentional
Posted by: rwahdan - Sep-11-2021, 04:54 PM - Forum: Data Science - Replies (3)

I am trying to learn numpy and I am trying to print some data as shown below:

[python]

import numpy as np

names = np.array([["Rami", "Taher",..... More

Print this item

  Embed Google Maps in PyQt6 Widget
Posted by: Raures - Sep-11-2021, 01:33 PM - Forum: GUI - Replies (2)

Hi. I am trying to make a widget that embeds Google Maps but I can't find any module that would help me do so. I've searched the web, tried to find so..... More

Print this item

  pymysql can't do SELECT *
Posted by: Pedroski55 - Sep-11-2021, 04:54 AM - Forum: General Coding Help - Replies (3)

I use pymysql to collect homework. Works great:

[python]def mysqlRemote(clas, weeknr):
# To connect remote MySQL database
conn = pymysq..... More

Print this item

  Error in the files last 8 lines
Posted by: Led_Zeppelin - Sep-10-2021, 05:09 PM - Forum: General Coding Help - Replies (2)

When I try to run thee below code:

[code]
'''
Script to run time series models against all data in the \data folder.

Author: @Josh
'''
impor..... More

Print this item

  sorting a list of lists by an element
Posted by: leapcfm - Sep-10-2021, 03:13 PM - Forum: General Coding Help - Replies (3)

Hi,

I have a list of lists that I want to sort, something like :

[python]data = [[0,False,'c'], [0,True,'z'], [1,False,'P'], [0,True,'A']][/pyt..... More

Print this item

  unpacking list
Posted by: wardancer84 - Sep-10-2021, 02:08 PM - Forum: General Coding Help - Replies (2)

hi,

test script...

[python]
#!/usr/bin/env python3

#test_lst = [('IP', '172.17.10.147'), ('IP', '172.16.88.57'), ('IP', '172.16.12.147')]
t..... More

Print this item

  Functions: Recursion
Posted by: OmegaRed94 - Sep-10-2021, 11:55 AM - Forum: General Coding Help - Replies (4)

Good day, Dear Pythonistas
I have the following problem:

Write a function sequence(n) that will print out a sequence of numbers without using ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... Yesterday, 19:55 arbiel arbiel General Codin...
  403 Error Yesterday, 18:57 CaptainNewb CaptainNewb Web Scraping ...
  Scraping a page with log ... Yesterday, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... Yesterday, 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...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576301
  Tutorial Requ... 497983
  Web Scraping ... 440217
  Newbie with P... 384067
  New Users Int... 366825
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+ 12089
buran 8175
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Baran12332 Yesterday
Hershien Yesterday
Diyaseating Yesterday
marineoman Yesterday
marineservice Yesterday

User Panel Messages

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