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

Full Statistics

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

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

 
  Add two resultant fields from python lambda function
Posted by: klllmmm - Jun-03-2023, 11:03 AM - Forum: General Coding Help - Replies (4)

I have a dataframe where i would like to add two fields at once based on a condition. I can achieve this by defining a function.

[python]

impor..... More

Print this item

  How to search for a byte hex pattern with Joker in FIile
Posted by: lastyle - Jun-03-2023, 05:01 AM - Forum: Data Science - Replies (1)

Hello all

i am searching for a solution to parse a file for a byte pattern with jokers inside a file, and if found to print the position ,or if mu..... More

Print this item

  3D points in 2D coordinates
Posted by: sunath - Jun-03-2023, 01:29 AM - Forum: General Coding Help - Replies (7)

Dear All,

I have 3D coordinates of 300 points. I would like to show my data as a series of 2D xy scatter plot at specific interval of z plane. How ..... More

Print this item

  Data structure question
Posted by: standenman - Jun-02-2023, 09:54 PM - Forum: Data Science - Replies (1)

I am creating an app that will take a pdf that represents a set of medical treatment records for a given patient. I want to submit the text to proces..... More

Print this item

  Python to 10-year-olds
Posted by: Krayna - Jun-02-2023, 10:26 AM - Forum: News and Discussions - Replies (4)

Hi there,

I'm teaching a couple of kids Python an hour a week. When I started we would do simple little exercises like 'guess the number' or even ..... More

Print this item

  Get numpy ceil and floor value for nearest two decimals
Posted by: klllmmm - Jun-02-2023, 05:29 AM - Forum: General Coding Help - Replies (4)

I'm trying to get ceiling value of the input for two decimals.


[python]
import numpy as np
a = np.array([-1.784, -1.5888, -0.24444, 0.25555, 1...... More

Print this item

  WING PYTHON IDE HELP!!!!
Posted by: nma236 - Jun-02-2023, 04:18 AM - Forum: General Coding Help - Replies (5)

I keep getting this error on Wing Python IDE.

[error]Python 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)]
Type..... More

Print this item

  Request doesnt work?
Posted by: Sdrawkcab - Jun-02-2023, 02:09 AM - Forum: Web Scraping & Web Development - Replies (10)

I'm new here and to python so any help would be greatly appreciated.



[python]import requests

response = requests.get("https://www.google.co..... More

Print this item

  Filling NaNs in a financial dataset
Posted by: larzz - Jun-01-2023, 09:40 PM - Forum: Data Science - Replies (11)

I have a financial dataframe consisting of 500 different columns. I have categorical and informational columns (in this case, the year, the quarter an..... More

Print this item

  What software to use?
Posted by: pickledrick - Jun-01-2023, 08:24 PM - Forum: General Coding Help - Replies (2)

Hi
I have built a fully functioning global supply chain management system in google sheets.

I want to turn this into an online webapp where I can ..... More

Print this item

  Processing Files that are not in use
Posted by: randywberry - Jun-01-2023, 07:52 PM - Forum: General Coding Help - Replies (3)

I am processing files, but need to be sure there are no other apps currently using the file which could change the data.
I have searched the internet ..... More

Print this item

  Help using a dynamic array excel formula with XLWings
Posted by: FXMonkey - Jun-01-2023, 07:06 PM - Forum: General Coding Help - Replies (2)

I am trying to populate a cell with a dynamic array formula using xlwings but each time I try the formula either ends up with @ after the = or the for..... More

Print this item

  issue with converting a scientific notation to standard notation
Posted by: thomaswfirth - Jun-01-2023, 03:52 PM - Forum: General Coding Help - Replies (4)

I am reading the value from a DMM and the returned number is in Scientific notation. When I try to convert that number to get a decimal number, I get ..... More

Print this item

  SQL question
Posted by: DPaul - Jun-01-2023, 03:28 PM - Forum: Bar - Replies (4)

Hi,
I have data in an FTS5 sql table, but you can sql update it like any other table. (but no field types)
Say the table is called "abc", and has 3 fi..... More

Print this item

  Rows not adding to sqlite3 database using SQLAlchemy
Posted by: Calab - Jun-01-2023, 02:57 PM - Forum: General Coding Help - Replies (11)

I'm trying to understand how to use SQLAlchemy. I've written a piece of code that should simply add one record to an existing database. When I run the..... More

Print this item

  Copy data from Excel and paste into Discord (Midjourney)
Posted by: Joe_Wright - Jun-01-2023, 08:11 AM - Forum: General Coding Help - Replies (4)

Task. A program for copying data from an Excel table and pasting it into the Discord command line (Midjourney), using the openpyxl library for working..... More

Print this item

  can not get gps information returning only integer
Posted by: ggpython000 - Jun-01-2023, 08:09 AM - Forum: Data Science - No Replies

I tried following code to read GPS ifnormation from jpeg file but it is only printing out single integer i.e. 739.
But when I open the file property ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Security of socket on vserver
Posted by: Pythocodras - Jun-01-2023, 07:07 AM - Forum: Networking - Replies (1)

Hello,
I have a vserver and I would like to constantly run a python script on it. It is a simple socket server application where multiple clients can..... More

Print this item

  How to pass -Xutf8 parametri to python
Posted by: tierox - May-31-2023, 05:11 PM - Forum: General Coding Help - Replies (2)

Hi all, I'm struggling with pywin. I use it to wrap a python application and create a windows servire. I need to pass -Xutf8mode to python interpreter..... More

Print this item

Question Rows and colums list. PySide 6
Posted by: britesc - May-31-2023, 10:29 AM - Forum: GUI - Replies (2)

Hi,
I would like to read some data and display it in rows and columns with column header names and rows with numbers
I am using PySide6 so far for m..... More

Print this item

  how it works??? "__name__"
Posted by: Vensworld - May-31-2023, 07:34 AM - Forum: Homework - Replies (3)

Hi I am a new to Python. Can somebody explain me how this program works and particularly the flow of program. Why the output shows as "inner". Regar..... More


Attached Files

.py   inner.py (Size: 173 bytes / Downloads: 189)
Print this item

  Pytest mocks
Posted by: anthonyrmoss78 - May-30-2023, 08:28 PM - Forum: General Coding Help - No Replies

Hi everyone, i hiope someone can help me .
I have recently started working on a huge pytest framework with about 15000 tests .
However, there seems..... More

Print this item

  Variable sorting methods for Enum DataClasses
Posted by: koen - May-30-2023, 02:12 PM - Forum: General Coding Help - Replies (1)

So i'm trying to simulate a deck of cards using dataclasses. The suit and rank of a card are represented as a enum.Enum DataClass. Together they make ..... More

Print this item

  xml file editing with lxml.etree
Posted by: FlavioBueno - May-30-2023, 12:56 PM - Forum: General Coding Help - Replies (2)

Hello everybody

I would like to ask for some help.

I face a problem when trying to edit an xml file with python and lxml.etree
When trying to e..... More

Print this item

  matplotlib x-axis text move bottom upward
Posted by: jacklee26 - May-30-2023, 07:59 AM - Forum: General Coding Help - Replies (3)

Does anyone know how to resize the bottom of my x-axis u, it seem like the x-axis all text word is showing all of them out.
[python]
import pandas ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Multiple instruments with python
Posted by: thomaswfirth - May-30-2023, 12:43 AM - Forum: General Coding Help - Replies (4)

I'm putting together a small, automated test system with two instruments at this time. Python errors out when I try to assign the second instrument. W..... More

Print this item

  How do I read and write a binary file in Python?
Posted by: blackears - May-29-2023, 09:18 PM - Forum: General Coding Help - Replies (6)

I need to read and write a binary file. This file has a variety of floats, short ints, single bytes and strings in it. Most programming languages pro..... More

Print this item

  test error
Posted by: MCL169 - May-29-2023, 08:43 PM - Forum: Homework - No Replies

def get_input_as_int(arg):
try:
result = int(arg)
return result
except ValueError:
raise ValueError("Argument is ..... More

Print this item

  [notice] A new release of pip available: 22.3.1 -> 23.1.2 [notice] To update, run: C:
Posted by: GoldenHarvey - May-29-2023, 07:57 PM - Forum: General Coding Help - Replies (3)

Hello, recent python user and coder. Just started learning one week ago. I recently installed python and pygame. inputted pip install pygame I got the..... More


Attached Files

Thumbnail(s)
   
Print this item

  Plot a pandas data fram via pyqtgraph with an modul import and qt designer widget
Posted by: Nietzsche - May-29-2023, 02:42 PM - Forum: General Coding Help - No Replies

Hello,

i would like to plot a pandas dataframe in a window which i include as a module in my main script and defined via qt designer (include and o..... More

Print this item

  How to compare boxplot bw many data frames?
Posted by: vanphuht91 - May-29-2023, 02:39 PM - Forum: Data Science - Replies (5)

I have many data frame like table below:
what I want is plot box plot of each column & compare line by line.
   
I'm new member, can ..... More


Attached Files

.xlsx   Book1.xlsx (Size: 17.42 KB / Downloads: 1)
Print this item

Video Sensor reading changes with temperature. Looking for a good way to calibrate.
Posted by: Tanjiro - May-29-2023, 07:31 AM - Forum: Data Science - Replies (1)

Newbie here.

I currently have a gas sensor connected to a raspberry pi. The sensor reading, however, is affected by temperature. I'd like to accou..... More

Print this item

  i need help pls
Posted by: augusto_A - May-28-2023, 01:44 PM - Forum: Game Development - Replies (2)

hi, im trying to implement a item colection sistem on my game but i cant understand why is not workin, the items are suposed to disapear wen you touch..... More

Print this item

  Click on googletranslator
Posted by: CH3RNO - May-27-2023, 01:28 PM - Forum: General Coding Help - No Replies

Please I need help.
I need it to run in the background while I'm in full screen playing, for example.
I get the code to call chrome, look for the tran..... More

Print this item

  Match statement
Posted by: Fabrizio_fg - May-27-2023, 09:20 AM - Forum: Game Development - Replies (5)

I' m tryng to use the match statement to manage different event.type but givi me this error:

[output] File "Main.py", line 34
match event.key..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... Yesterday, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import Yesterday, 16:09 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... 564324
  Tutorial Requ... 452100
  Web Scraping ... 429303
  Newbie with P... 364311
  Thread remain... 336766
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
AymanNassar Today
Shailesh Yesterday
jackdennis272 Yesterday
JeanChristophe 05-14
EZEKIELGRAPHICSMEDIA 05-14

User Panel Messages

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