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,470
» Latest member: ishaD
» Forum threads: 38,578
» Forum posts: 174,808

Full Statistics

Online Users
There are currently 675 online users.
» 0 Member(s) | 672 Guest(s)
Bing, Google, Yandex

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 194
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 147
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,331
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 114
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 400
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,201
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 370
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 440
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 996
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 250

 
  Embedding python script into html via pyscript
Posted by: pyscript_dude - Apr-16-2023, 12:03 PM - Forum: General Coding Help - Replies (7)

Hi everyone,
I want to embed a python script into an html page by using pyscript. What I am trying is giving a sequence of integers as "1,2,3,4,5,6" a..... More

Print this item

  Inferring background code.
Posted by: quazirfan - Apr-15-2023, 10:34 PM - Forum: General Coding Help - Replies (5)

Given an object instantiation and invocation, can I broadly say the following?

Given the following two lines of code,
[python]
test = Test()
tes..... More

Print this item

  cx_oracle Error - AttributeError: 'function' object has no attribute 'cursor'
Posted by: birajdarmm - Apr-15-2023, 11:59 AM - Forum: General Coding Help - Replies (1)

Hi,

I am creating a code which would export data from multiple tables in oracle to one excel file having each sheet as one tbale export. I have cre..... More

Print this item

  I downloaded a script and I cant run this
Posted by: luoxr18 - Apr-15-2023, 09:19 AM - Forum: General Coding Help - Replies (3)

Hi, I’m a newbee to programming (and not a native speaker), recently I download a script from hugging face, and strictly follow every steps. (CiaraRow..... More

Print this item

  Finding a way to avoid loops use
Posted by: paul18fr - Apr-15-2023, 09:01 AM - Forum: Data Science - Replies (6)

Hi

Using loops is a bottleneck in term of performance; I’m often facing such issue, I’m not satisfied by the current code and I’m still looking for..... More

Print this item

  How to fix With n_samples=0, test_size=0.2 and train_size=None, the resulting train s
Posted by: MrSonoa - Apr-15-2023, 04:51 AM - Forum: General Coding Help - Replies (2)

I wrote a text classification program. When I run the program have error. How to fix it?

[python]

input_shape = (128, 128, 3)
data_dir = '/cont..... More

Print this item

  New with Python. Help with a code
Posted by: jasonkeller1970 - Apr-14-2023, 05:43 PM - Forum: General Coding Help - Replies (13)

Hi,
I just registered in this site because I would like to know if it is possible to solve this problem with a simple Python code.
I'm not into prog..... More

Print this item

  appending 50 values in a row
Posted by: Naomisaka - Apr-14-2023, 11:17 AM - Forum: General Coding Help - No Replies

Hello, I hope this is a quick fix for the pros!

I'm working in Touchdesigner and I'm trying to append all 50 values from row 0:50 from an operator ..... More


Attached Files

Thumbnail(s)
   
Print this item

  logger behaviour
Posted by: setdetnet - Apr-14-2023, 08:48 AM - Forum: General Coding Help - Replies (1)

This setup in python 3.10 is not logging DEBUG to log file.
As in the last line....rootLogger.debug("debugging MantisMigrateAdditionalInfo.py")
Why..... More

Print this item

  event driven coding PyQt6 on Combobox change
Posted by: merrittr - Apr-14-2023, 01:55 AM - Forum: GUI - Replies (3)

I have the working code below running in a venv using python 3.7.6 what I want is when the Province combobox is changed have the stations combobox upd..... More


Attached Files

.py   HTTPListerProvincialQTEnv.py (Size: 2.54 KB / Downloads: 248)
Print this item

  notation
Posted by: MCL169 - Apr-14-2023, 01:49 AM - Forum: General Coding Help - Replies (8)

[python]
for line in lines: # str, '19260701,0.09,-0.22,-0.30,0.009\n'
curr_line = line.split() ..... More

Print this item

  scipy fftfreq parameters
Posted by: quest - Apr-14-2023, 12:11 AM - Forum: Data Science - Replies (1)

I am trying to get the fft of my pulse.
My total pulse duration is 1 microsecond and I have 100000 time slot in this pulse. So each interval correspon..... More

Print this item

  replacing dict contents
Posted by: Skaperen - Apr-13-2023, 10:25 PM - Forum: General Coding Help - Replies (6)

for a reference to a list, such as a global list, i can replace all the contents like this:
[python]
mylist[:] = newlist
[/pyt..... More

Print this item

  output provide the filename along with the input file processed.
Posted by: arjunaram - Apr-13-2023, 10:08 AM - Forum: General Coding Help - Replies (1)

Currently, i am processing all the input file column together and find missing column name from the table.

I am expecting to print the filename as ..... More

Print this item

  Modules
Posted by: GrahamLab - Apr-13-2023, 08:10 AM - Forum: General Coding Help - Replies (1)

Hi

I am fairly new to Python and modules in particualar

I have folder containing 2 files :
Configuration.py
HelixApi.py

COnfiguration..... More

Print this item

  Need help with this script
Posted by: Alie - Apr-13-2023, 06:22 AM - Forum: General Coding Help - Replies (3)

Hello friends. Below is a code I use in Google Colab. It works so slow that I wait for hours. Is it possible to edit this code to run faster? I would ..... More

Print this item

  html_table_parser_python3 KeyError odd behavior
Posted by: idratherbecoding - Apr-13-2023, 04:20 AM - Forum: General Coding Help - Replies (3)

Hello,

I am new to Python, but I have been hobby coding off and on for many years. I am working on a project to scrape sports data (NFL) and I am r..... More

Print this item

  Problem Calculating GPA
Posted by: FirstBornAlbratross - Apr-12-2023, 08:19 PM - Forum: Homework - Replies (3)

Hey all, I have created a simple program to try to convert letter grades into a GPA score, but my program calculations are a bit off.

[python]user_..... More

Print this item

  Pixel color and action
Posted by: Sartre - Apr-12-2023, 06:06 PM - Forum: General Coding Help - Replies (4)

I am very new to Python and decided to build a game bot as a means of learning. Please bear with me..

GOAL:
Part of my program evaluates a specific ..... More

Print this item

  Problems with converting to numeric
Posted by: EmBeck87 - Apr-12-2023, 05:14 PM - Forum: Homework - Replies (13)

This code for converting the values to numeric is also removing characters, I believe.

Can someone advise on how to alter it so it keeps the chara..... More

Print this item

  Printing specific values out from a dictionary
Posted by: mcoliver88 - Apr-12-2023, 04:52 PM - Forum: General Coding Help - Replies (6)

Hi All,

So I have created a dictionary:

[python]
myDict = {
"Name": {"Kindle Fire", "Samsung Galaxy Tab", "Dell Streak", "Apple iPad", "Len..... More

Print this item

  What module is missing?
Posted by: Led_Zeppelin - Apr-12-2023, 04:21 PM - Forum: General Coding Help - Replies (2)

I am getting thee error as shown in the following attachment. It says normal not found. I guess I am missing a library/module.

So, what module shou..... More


Attached Files

Thumbnail(s)
   
Print this item

  Understanding and debugging memory error crashes with python3.10.10
Posted by: Arkaik - Apr-12-2023, 03:36 PM - Forum: General Coding Help - Replies (5)

Hi,

I have a quite complex multi-threaded python script on a production environment (Debian 11.6 server) which regularly crashes using python3.10.1..... More

Print this item

  can someone explain this __del__ behaviour?
Posted by: rjdegraff42 - Apr-12-2023, 02:37 PM - Forum: General Coding Help - Replies (1)

I came across something interesting that I can't explain. Perhaps someone here can. When the following code is run with the lambda commented out it pr..... More

Print this item

  Newbie.... run for cover. OpenCV question
Posted by: Stevolution2023 - Apr-12-2023, 11:38 AM - Forum: General Coding Help - Replies (2)

Hello all

I have jumped in the deep end of Python. Done a little programming before, but not much in Python.

I found some OpenCV skeleton track..... More

Print this item

  Test Thread
Posted by: snippsat - Apr-12-2023, 04:35 AM - Forum: Board - No Replies

[python]from pathlib import Path
from os import fspath

dest = r'C:\bar'
with open('out1.txt', 'w') as f:
for path in Path(dest).rglob('*'):..... More

Print this item

  code won't advance to next statement
Posted by: MCL169 - Apr-11-2023, 07:53 PM - Forum: General Coding Help - Replies (2)

[python]
while True: # bool, True
year = input('please enter a 4-digit year: ')
digit = len(y..... More

Print this item

  Tkinter GUI question
Posted by: texan1836 - Apr-11-2023, 05:31 PM - Forum: GUI - Replies (3)

I am having trouble writing a python tkinter GUI. I am trying to create a popup window which has a grid of buttons that then returns a value. In the..... More

Print this item

  Pip lists the module but python does not find it
Posted by: Dato - Apr-11-2023, 11:20 AM - Forum: General Coding Help - Replies (2)

Hi people,

I am struggling to get a package that, supposedly, pip already installed.
the package in question is fenics. Installed with pip install..... More

Print this item

Sad extract frame from video error
Posted by: MrSonoa - Apr-11-2023, 09:15 AM - Forum: General Coding Help - No Replies

Hi and greetings , I am new to this forum. Who here really needs help from a python expert. I am a student and am currently doing a final year project..... More


Attached Files

Thumbnail(s)
       
Print this item

  How do I check if the first X characters of a string are numbers?
Posted by: FirstBornAlbratross - Apr-11-2023, 12:57 AM - Forum: General Coding Help - Replies (6)

How do I check if the first X characters of a string are numbers?

For example if someone inputs a combination of numbers and characters, how can I ..... More

Print this item

  populate a QListWidget
Posted by: devilonline - Apr-10-2023, 01:11 AM - Forum: GUI - Replies (1)

Hi

i want to populate a list widget but it always gives me this error

what can i do?

thanks

error: [quote]TypeError: addItems(self, Itera..... More

Print this item

  Pyserial Readline() conversion to array
Posted by: bprosman - Apr-09-2023, 05:00 PM - Forum: General Coding Help - Replies (1)

Dear all,

As the title already states I'd like to convert a line , read via the readline() function, I am already Googling all afternoon but cant f..... More

Print this item

  Webbrowser.open() causes errors
Posted by: ChrisOfBristol - Apr-09-2023, 04:19 PM - Forum: General Coding Help - Replies (1)

I didn't realise others could edit my posts. I am extremely uncomfortable with that.

Print this item

  Personal Project - JDR Tool Introduction (for data governance)
Posted by: ciphero - Apr-09-2023, 03:26 PM - Forum: Code sharing - No Replies

Hi,
I recently started learning Python, so I tried to write this project as an exercise. The idea of the concept is derived from the solution to the ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
Most views
  The best Prog... 564639
  Tutorial Requ... 453608
  Web Scraping ... 429621
  Newbie with P... 365030
  Thread remain... 337439
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ishaD Today
fitobar43 Today
AymanNassar Yesterday
Shailesh 05-15
jackdennis272 05-15

User Panel Messages

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