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,394
» Latest member: zcharlesoogleto9533
» Forum threads: 38,823
» Forum posts: 176,027

Full Statistics

Online Users
There are currently 32 online users.
» 0 Member(s) | 27 Guest(s)
Bing, Google, Applebot, Mojeek

Latest Threads
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 1
» Views: 48
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,590
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 183
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,599
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 151
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 296
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,110
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,960
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 180
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 112

 
  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: 390)
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

  [SOLVED] Input parameter: Single file or glob?
Posted by: Winfried - Sep-10-2021, 10:57 AM - Forum: General Coding Help - No Replies

Hello,

As input parameter, I need to allow users to give either a single file (input.txt) or glob (*.txt).

The following code only supports glob..... More

Print this item

  Dictionnary indexing error
Posted by: Ander - Sep-10-2021, 10:19 AM - Forum: General Coding Help - Replies (6)

Hello, i try to animate a character with 3 frames named "playerf1", 2 and 3, in a "player animation" folder.
I use pygame but that is not at the origi..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Opencv findContours Q 4 hours ago jogl Pedroski55 General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
Most views
  The best Prog... 580410
  Tutorial Requ... 519553
  Web Scraping ... 442785
  Newbie with P... 386984
  New Users Int... 386536
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
zcharlesoogleto9533 Today
MaxTranslate Yesterday
pizofreude Yesterday
RockHound_Z12 Yesterday
braillescribe 12-28

User Panel Messages

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