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

Full Statistics

Online Users
There are currently 718 online users.
» 0 Member(s) | 709 Guest(s)
Bing, Apple, Google, Yandex, Facebook

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
8 hours ago
» Replies: 1
» Views: 128
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
9 hours ago
» Replies: 1
» Views: 70
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
Yesterday, 07:38 AM
» Replies: 4
» Views: 1,285
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 12:25 AM
» Replies: 0
» Views: 72
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 327
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,115
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 347
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 394
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 975
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 208

 
  math problem for experts
Posted by: miltmobley - Jul-08-2023, 08:24 PM - Forum: General Coding Help - Replies (5)

While testing python code to rotate 3d points, I tried:

cos_ = np.cos((90.0/360.0) * (2.0*np.pi))

cos(90) was reported as 6.123234e-17, inst..... More

Print this item

  [solved] What is the best/pytonic way to import with dependency ?
Posted by: SpongeB0B - Jul-08-2023, 07:46 PM - Forum: General Coding Help - Replies (2)

Hi everyone,

I would like to create a module (let's call it FooBar) that I could import in few of my "main" programs.

But the functions w..... More

Print this item

  subprocess for executing over CLI
Posted by: flash77 - Jul-08-2023, 05:05 PM - Forum: General Coding Help - Replies (5)

Hi,

this is my first attempt to execute something via CLI using python - I'm totally unexperienced with "subprocesses"...

I'm trying to execute ..... More

Print this item

  [WORKED AROUND] Problem installing elitech-datareader, 'cannot import build_py_2to3'
Posted by: NeilUK - Jul-08-2023, 04:14 PM - Forum: General Coding Help - Replies (4)

I am running python 3.8.10 in a virtual environment on Linux Mint 20.3. They are both pretty much on plain vanilla defaults, I tend not to muck around..... More

Print this item

  What's the best way for multiple modules to handle database activity?
Posted by: SuchUmami - Jul-08-2023, 12:09 PM - Forum: General Coding Help - Replies (3)

When I write to databases I am currently using locks so that other modules don't run into errors. I am new to programming and I was just wondering wha..... More

Print this item

  Elo rating
Posted by: smartangel - Jul-08-2023, 12:00 PM - Forum: General Coding Help - Replies (1)

i want to create in python a code to calculate the elo ratings of players, each row is a game, every game starts with 1500 points, and the game being ..... More

Print this item

  Trying to compare string values in an if statement
Posted by: israelsattleen - Jul-08-2023, 02:21 AM - Forum: General Coding Help - Replies (1)

I am doing a tutorial where i get some string data input

lbsOrKgs = input ("is it in lbs or kgs")

now after getting that input all i want to do ..... More

Print this item

  Coding Error
Posted by: EddieG - Jul-07-2023, 01:57 PM - Forum: General Coding Help - Replies (2)

I am copying the text on the textbook for pygame but it is coming out as error when i run the code.Pls see the attached photo.[attachment=2449]I am c..... More


Attached Files

Thumbnail(s)
   
Print this item

  Convert dataframe from str back to datafarme
Posted by: Creepy - Jul-07-2023, 01:05 PM - Forum: General Coding Help - Replies (1)

Hi,

Am looking for help where I converted a dataframe in order for replace function to work?
Now am looking for way to convert it back to datafame..... More

Print this item

  What is all the info in the info window in Idle?
Posted by: Pedroski55 - Jul-07-2023, 04:16 AM - Forum: General Coding Help - Replies (3)

I only use Python for practical purposes, to do little jobs. I never found a task where I thought I need a class.

Today I was just looking at a cla..... More

Print this item

  Convert File to Data URL
Posted by: michaelnicol - Jul-06-2023, 10:25 PM - Forum: General Coding Help - Replies (3)

I have a STL, OBJ, and other CAD files stored on my server.

How can I convert those to a data URL?

I found the following library: https://pypi.o..... More

Print this item

  Change HID bytes using pywinusb.hid
Posted by: Stealthrt - Jul-06-2023, 03:36 PM - Forum: General Coding Help - No Replies

Hey all I am new to the Python world and need some help.

I have an HID device that I am needing to replace 0x00 with 0x01 and I have ..... More

Print this item

  qpython package error
Posted by: Creepy - Jul-06-2023, 02:18 PM - Forum: General Coding Help - Replies (5)

Hi,

Could you help me resolve the issue with package?
Re-installed a number of times, but still the same issue.

When I run my code, I get the b..... More

Print this item

  Put the new line after regex pattern
Posted by: stahorse - Jul-06-2023, 02:06 PM - Forum: Data Science - Replies (5)

Hi,
I have this code:

[quote]text = """MyCo Please have a look at this building’s premium. It looks to be a very high rate. <img width="874" hei..... More

Print this item

  Findall() ReGex
Posted by: stahorse - Jul-06-2023, 08:17 AM - Forum: Data Science - Replies (2)

Hi,

I have this regex:

[quote]content = """encoding="UTF-8"\?>(.*?)^<\?xml version="1.0"

MYCO Please have a look at this building’s premium. ..... More

Print this item

  Peaks in time domain
Posted by: frohr - Jul-06-2023, 02:56 AM - Forum: General Coding Help - No Replies

Hey all,
I have code to generate signal with some peaks and make hilbert - enveloping. But I have some peaks at start in time domain after applying h..... More

Print this item

  read file txt on my pc to telegram bot api
Posted by: Tupa - Jul-06-2023, 01:52 AM - Forum: General Coding Help - No Replies

how to read a text file called file.log and send to a bot in telegram.
I have the latest version of python, python-telegram-bot

[python]
#!/usr/b..... More

Print this item

  Oversampling using G-smote
Posted by: ark - Jul-05-2023, 08:34 PM - Forum: Data Science - Replies (1)

What are the necessary libraries or packages need to work with Geometric smote? And what are the other techniques available to over sample datasets wi..... More

Print this item

  Installing Python 3.8.11 from TGZ File
Posted by: michaelnicol - Jul-05-2023, 06:56 PM - Forum: General Coding Help - Replies (2)

I am attempting to install Python 3.8.11 for Windows from a TGZ file since no installer is available on the Python website.

Here is the files it gi..... More

Print this item

  Why am I getting this TypeError Exception?
Posted by: Affinity - Jul-05-2023, 03:18 PM - Forum: General Coding Help - Replies (8)

Please see the attached photo. This is my first Python program. It runs fine and the code appears to be the same as the instructors. Yet VSCode is ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Apple II universe
Posted by: gridsleep - Jul-05-2023, 11:16 AM - Forum: News and Discussions - No Replies

I see several Apple II emulations written in Python or in progress. Is anyone working on an implementation of Python for Apple II, as opposed to of Ap..... More

Print this item

  Equivalent Python code from VBA
Posted by: Mishal0488 - Jul-05-2023, 08:43 AM - Forum: General Coding Help - Replies (4)

Hi Guys

Refer to the below code which is developed on Excel VBA, the code essentially opens Space Gass and passes the text to the Space Gass.
What..... More

Print this item

  Regular Expression
Posted by: stahorse - Jul-05-2023, 06:28 AM - Forum: Data Science - Replies (9)

Hi,

I have this code below:

Import re

[quote]text = """
ATT Please have a look at this building’s premium. It looks to be a very high rate...... More

Print this item

  importing serial
Posted by: Fklein23 - Jul-05-2023, 04:33 AM - Forum: General Coding Help - Replies (2)

I have a Python project I have been developing on Windows. (I wish I could use Linux for this project, because I would already be done)
My project ha..... More

Print this item

  Convert np Array A to networkx G
Posted by: IanAnderson - Jul-05-2023, 02:34 AM - Forum: General Coding Help - Replies (2)

Hi,

I am trying to convert the np array A to networkx G. I have the code "G = nx.from_numpy_array(A)" but I don't know if I need to do anything els..... More

Print this item

  Python debuggers
Posted by: jehoshua - Jul-04-2023, 10:51 PM - Forum: General Coding Help - Replies (8)

What do you use ? There is the command line pdb at https://docs.python.org/3/library/pdb.html

Then three GUI ones mentioned at https://stac..... More

Print this item

  Having trouble with a circula import
Posted by: SuchUmami - Jul-04-2023, 10:06 PM - Forum: General Coding Help - Replies (2)

When I try to run the sqlite3 module. It is saying it has a circula import. Here is the error:

[python]line 2, in <module>
import sqlite3
F..... More

Print this item

Photo Can you help me .. please
Posted by: Aldo75 - Jul-04-2023, 05:56 PM - Forum: General Coding Help - Replies (1)

hi , in the file exel there is :

name city item spent
PIPPO uk apple 2
PIPPO uk banana 3
PIPPO uk pear 5
PIPPO..... More


Attached Files

Thumbnail(s)
   
Print this item

  Python Regulare Expression
Posted by: stahorse - Jul-04-2023, 12:04 PM - Forum: Data Science - Replies (1)

I have this code here and I want to know how to interpret it: [python]found = re.findall(
r'encoding="UTF-8"\?>(.*?)^<\?xml version="1.0"', c..... More

Print this item

Sad "PriceSystem" Python Script error to Shopify API
Posted by: Alphetto - Jul-04-2023, 09:58 AM - Forum: General Coding Help - No Replies

Good morning everyone, I have a script in Python created to do webscraping from a site to my e-commerce in shopify, until two days ago everything work..... More

Print this item

  why doesn't it replace all html tags?
Posted by: Melcu54 - Jul-04-2023, 09:07 AM - Forum: General Coding Help - Replies (3)

[b]I have these lines in a html file. each of them must be translated into Russian, if in contain more than 3 words found in the list. The problem is ..... More

Print this item

  save values permanently in python (perhaps not in a text file)?
Posted by: flash77 - Jul-04-2023, 03:44 AM - Forum: General Coding Help - Replies (8)

Hi,
in vb net you can save values ​​permanently with my.settings and load them when loading the form, for example. Is there such a way in python?

..... More

Print this item

  Check if two matrix are equal and of not add the matrix to the list
Posted by: quest - Jul-04-2023, 12:24 AM - Forum: General Coding Help - Replies (3)

I have a list which contains may matrices. I called this list as su4_np and it contains more than 500 matrices
When I want to add a matrix to the lis..... More

Print this item

  Word Generator
Posted by: FabianPruitt - Jul-03-2023, 05:45 PM - Forum: Jobs - Replies (2)

I'm looking for a coder to build me a Word Generator software package for Word Search Puzzle enthusiasts. It needs to be web-based with a good-looking..... More

Print this item

  My first pathfinding algorithm
Posted by: Proarch - Jul-03-2023, 05:27 PM - Forum: Code Review - No Replies

GitHub URL: https://github.com/ProarchwasTaken/path_test/tree/main

I figured out how to write a basic pathfinding algorithm in pygame, and I'm pret..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... 8 hours ago Azdaghost deanhystad General Codin...
  Import vs from x import 9 hours ago Calab snippsat General Codin...
  Trouble with Average Calc... Yesterday, 07:38 autodecay Pate General Codin...
  tracking version during r... Yesterday, 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... 563898
  Tutorial Requ... 450216
  Web Scraping ... 428883
  Newbie with P... 363468
  Thread remain... 335953
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
Shailesh Yesterday
jackdennis272 Yesterday
JeanChristophe 05-14
EZEKIELGRAPHICSMEDIA 05-14
BarbaraGonzalez 05-14

User Panel Messages

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