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,251
» Latest member: ftk456
» Forum threads: 38,780
» Forum posts: 175,822

Full Statistics

Online Users
There are currently 46 online users.
» 0 Member(s) | 42 Guest(s)
Bing, Google, Internet Archive, AOL

Latest Threads
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
5 hours ago
» Replies: 2
» Views: 52
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 12:09 PM
» Replies: 4
» Views: 116
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 206
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 330
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Nov-11-2025, 05:07 AM
» Replies: 5
» Views: 289
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 122
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,627
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 221
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 212
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,490

 
  openpyxl incorrect delete rows
Posted by: VladislavM - Jul-18-2021, 12:24 PM - Forum: General Coding Help - Replies (6)

When I delete lines through openpyxl, they are not deleted correctly. In some places they even stay. Need to delete rows completely, as excel does. Th..... More

Print this item

  Optmized way to rewrite this very slow code
Posted by: liva28 - Jul-18-2021, 12:16 PM - Forum: General Coding Help - No Replies

Hey folks,

This is my first post so please bear with me. I need some help to optimize the below one liner.

[python]pd_df.loc[flag, 'COL_{}'.form..... More

Print this item

  sorting with numbers in text
Posted by: Skaperen - Jul-17-2021, 11:48 PM - Forum: News and Discussions - Replies (5)

back when i coded in C, i implement a sort function that worked with key strings (C style) that could have a common pattern of numbers within each str..... More

Print this item

  use thing before self
Posted by: sylvanas - Jul-17-2021, 07:37 PM - Forum: General Coding Help - Replies (3)

Is this possible? Or anything else can work in another way?
[python]
class A():
def __init__(self):
self.b=B()
def func_in_A(self..... More

Print this item

  ValueError: dimension mismatch
Posted by: Anldra12 - Jul-17-2021, 04:44 PM - Forum: General Coding Help - No Replies

Test word2vector model for text data similarity that return me an error ValueError: dimension mismatch

[color=#D35400]Error: [..... More

Print this item

  Dell Dnos6 scripting
Posted by: mikey6785 - Jul-17-2021, 03:35 PM - Forum: Networking - No Replies

I am new to python and I have been wanting to learn for the purposes of network automation.

many of the scripts online for example the ones found on ..... More

Print this item

  building a basic interpreter
Posted by: usercat123 - Jul-17-2021, 03:06 PM - Forum: General Coding Help - Replies (1)

Nvm found the issue :)

Print this item

  Python Pandas: How do I average ONLY the data >1000 from several columns?
Posted by: JaneTan - Jul-17-2021, 01:34 PM - Forum: General Coding Help - No Replies

I am new to pandas. I just want to average the revenue from Revenue1 to Revenue3 that are > 1000. The dataframe will have other numerical columns like..... More

Print this item

Question I want to vectorize a really long for loop to improve performance
Posted by: Miregal1 - Jul-17-2021, 12:52 PM - Forum: Data Science - Replies (1)

I have a bunch of mouse nerual spike data. The neurons activate when the mouse is in certain locations, from which I calculate the average firing rate..... More

Print this item

  How to invoke a function with return statement in list comprehension?
Posted by: maiya - Jul-17-2021, 09:35 AM - Forum: General Coding Help - Replies (4)

Hi All,

I want to invoke a function with return statement using list comprehension or even lambda (if possible) for the better performance. Below i..... More

Print this item

  Python Pandas: How do I extract all the >1000 data from a certain column?
Posted by: JaneTan - Jul-17-2021, 09:09 AM - Forum: General Coding Help - No Replies

Hi

I am new to pandas. For Revenue, I just want to extract all Revenue !>1000, and sum all the extracted data.

**Input:**

`
|Name ..... More

Print this item

  I have a simple problem
Posted by: ahmed - Jul-17-2021, 02:12 AM - Forum: Homework - Replies (5)

Hello
please help me
Condition 1 (if the result is between 3 and 5)
Condition 2 (and has been in contact with an infected person),

print(he/she ..... More

Print this item

  Neural Art GUI- Create 60s style background videos
Posted by: steve_shambles - Jul-16-2021, 07:02 PM - Forum: Code sharing - No Replies

Neural Art GUI V0.11 (first release)
By Steve Shambles, July 2021



A very Basic GUI for Windows and Linux to create art videos easily and quickly.

..... More

Print this item

  building a basic interpreter
Posted by: usercat123 - Jul-16-2021, 05:55 PM - Forum: General Coding Help - Replies (1)

Hi,
I'm trying to build an interpreter that interprets basic calculator commands. For some reason not apparent to me for the input 1+2 my code outputs..... More

Print this item

Sad SyntaxError: from simple python example file from mind-monitor code (muse 2)
Posted by: warmcupoftea - Jul-16-2021, 02:11 PM - Forum: General Coding Help - Replies (4)

I am working on a project using Muse 2, the brain wave detector. And I found the very simple code by James from mind-monitor.com and the app.
It look..... More

Print this item

  Need help understanding .pop
Posted by: Akulinyak - Jul-16-2021, 12:25 PM - Forum: Homework - Replies (3)

Hi! taking a course on coursera - Mathematical Thinking in Computer Science

There is an example of creating a permutation and I am having porblems ..... More

Print this item

  how to catch schema error?
Posted by: maiya - Jul-16-2021, 08:37 AM - Forum: General Coding Help - No Replies

Hi All,

I wanted to catch the schema error from yaml schema validation, at the same time it should not throw on console as well. I have written som..... More

Print this item

  Generate random hex number
Posted by: ZYSIA - Jul-16-2021, 07:40 AM - Forum: General Coding Help - Replies (1)

Hi!
i've a hexa conversion program here :
what i would like to try now is instead of manually throwing in hex number like 0x80 0x0F etc... i would l..... More

Print this item

  class needs to refer a different class
Posted by: Skaperen - Jul-16-2021, 05:56 AM - Forum: News and Discussions - Replies (22)

i have a class that, during __init__(), detects a situation where a different class, not itself, needs to be provided to the caller. but Python class..... More

Print this item

  Can't install python
Posted by: MurphysLaw - Jul-16-2021, 03:32 AM - Forum: General Coding Help - Replies (1)

To give quick run down, I system restored today and it failed at some point. cause of eset I think. It said before I would need to reinstall python........ More

Print this item

  How to convert binary data into text?
Posted by: ZYSIA - Jul-16-2021, 02:15 AM - Forum: General Coding Help - Replies (3)

hi

this is my coding to convert HEX to Binary :
[python]# conversion of hex string
# to binary string

import math

# Initialising hex string..... More

Print this item

  remove b due to conversion in PyQ
Posted by: Creepy - Jul-15-2021, 08:14 PM - Forum: Data Science - Replies (9)

Hi Team,

Am trying to get rid of the b that appears in the column?

Data type of my output:

df.info()
[output]Date: Dtype: o..... More

Print this item

  propper formating
Posted by: paracelsusx - Jul-15-2021, 07:52 PM - Forum: General Coding Help - Replies (2)

Hello, I am learning python3 using the python crash course book and I have decided to try to learn the most accepted way to properly format my code ea..... More

Print this item

  Basic Music Player with tkinter
Posted by: menator01 - Jul-15-2021, 03:58 PM - Forum: Code sharing - Replies (4)

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

import tkinter as tk
import pygame as pg
from os import listdir, chdir
from functools import partial
import r..... More

Print this item

  Zeep - BasicHTTPBinding secured Endpoint throws 500-invalid security error
Posted by: vinoth - Jul-15-2021, 02:19 PM - Forum: Web Scraping & Web Development - No Replies

Hi,

Greetings!!

I'm working on Python Soap client library - Zeep and struck with below issue. It would be very helpful if you can help to solve ..... More

Print this item

  re
Posted by: menator01 - Jul-15-2021, 09:04 AM - Forum: General Coding Help - Replies (2)

Trying to understand regexp a little.
Taking this string 01-09- Money Honey, I'm trying to get just the Money Honey part.
the closest I've gotten is..... More

Print this item

  field in db as text
Posted by: rwahdan - Jul-15-2021, 08:25 AM - Forum: GUI - Replies (6)

Hi,

I am trying to get a field from db which is a text but when trying to print it it gives me in form of list. how to print the value as string in..... More

Print this item

  Flask TypeError: Object of type Decimal is not JSON serializable
Posted by: mekacharan - Jul-15-2021, 05:28 AM - Forum: Web Scraping & Web Development - No Replies

We are using flask for our application service. Internally we are using Jsonify to return the respon[img]se and our response contains decimal data.
..... More

Print this item

  Division calcuation with answers to 1decimal place.
Posted by: sik - Jul-14-2021, 03:31 PM - Forum: General Coding Help - Replies (3)

I'm trying to write a program that takes two random integers from 0-10 and divides them by each other and have the user enter the answer to one decima..... More

Print this item

  Circular Import
Posted by: Led_Zeppelin - Jul-14-2021, 02:43 PM - Forum: General Coding Help - Replies (3)

when I run the following holdem_calc.py program, I get the following error:

[error]
\Downloads\holdem_calc-1.0.0\holdem_calc>python holdem_calc.p..... More

Print this item

  How to take the tar backup files form remote server to local server
Posted by: sivareddy - Jul-14-2021, 01:32 PM - Forum: General Coding Help - No Replies

import os, subprocess, psutil
import sys
import tarfile
COMMAND="ls -la"

HOST=input("Please enter old server: ")

ssh_option="-o StrictHostKey..... More

Print this item

  open the html page from the django dropdown menu?
Posted by: shams - Jul-14-2021, 12:58 PM - Forum: General Coding Help - Replies (2)

I got this django country, state, city dropdown code and changed the mysql db and tables for my use, thisi is views.py:
[python]
# -*- coding: utf-..... More

Print this item

  spyder tensorflow
Posted by: heye - Jul-14-2021, 12:15 PM - Forum: General Coding Help - No Replies

Hi
I installed spyder4.2.1 in ubuntu21.04 in virtual box.
i installed tensorflow2.5 using pip3 install --upgrade tensorflow in a venv.
but when i ..... More

Print this item

  python memory
Posted by: rd_rakesh - Jul-14-2021, 06:13 AM - Forum: General Coding Help - Replies (1)

HI Friends ,

Processing table number: 67 and table name is: bp_dealer_tbl
Fetching query results.

[error]Error while getting the result from qu..... More

Print this item

  Copying files from a remote Windows station
Posted by: tester_V - Jul-14-2021, 04:58 AM - Forum: General Coding Help - Replies (11)

Greetings to those that do not sleep! Wink
I have a bunch of remote hosts(windows), each host has a windows based system connected to it (I ca..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  why is the image not show... 5 hours ago sarbogast deanhystad General Codin...
  New to python and coding Yesterday, 12:09 lary_p jefsummers Homework
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  Backward compatibility qu... 11-11, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
Most views
  The best Prog... 578875
  Tutorial Requ... 510012
  Web Scraping ... 441927
  Newbie with P... 385938
  New Users Int... 376490
Most reputation
buran 581
snippsat 510
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+ 12107
buran 8195
snippsat 7388
deanhystad 6908
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ftk456 Yesterday
sarbogast Yesterday
bmurray Yesterday
kai_cow2710 Yesterday
Kacper 11-11

User Panel Messages

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