Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,653
» Latest member: pyry
» Forum threads: 37,398
» Forum posts: 169,949

Full Statistics

Online Users
There are currently 384 online users.
» 1 Member(s) | 375 Guest(s)
Bing, Facebook, Google, Baidu, Yandex, AOL, Apple, menator01

Latest Threads
How To Make A PyQt5 Progr...
Forum: GUI
Last Post: menator01
1 hour ago
» Replies: 1
» Views: 70
ModulNotFoundError matplo...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 1
» Views: 49
Problem Converting Tradin...
Forum: General Coding Help
Last Post: kralxs
7 hours ago
» Replies: 0
» Views: 78
New on python. Needs help...
Forum: General Coding Help
Last Post: deanhystad
8 hours ago
» Replies: 1
» Views: 88
Can provide python tutori...
Forum: Jobs
Last Post: carellapansullon
10 hours ago
» Replies: 1
» Views: 187
Win or Loss Prediction
Forum: General Coding Help
Last Post: ksasi2k3
Yesterday, 01:46 PM
» Replies: 4
» Views: 183
Good way to ignore case w...
Forum: General Coding Help
Last Post: menator01
Yesterday, 12:39 PM
» Replies: 1
» Views: 108
how to edited Tkinter Top...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 10:16 AM
» Replies: 7
» Views: 188
using mutable in function...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 10:10 AM
» Replies: 1
» Views: 127
Cucumber installation
Forum: General Coding Help
Last Post: SandraYokum
Yesterday, 07:52 AM
» Replies: 2
» Views: 127

 
  strategy to troubleshoot what pyinstaller misses
Posted by: hammer - May-23-2022, 01:05 AM - Forum: General Coding Help - No Replies

On linux machine, have an app that incorporates kivy and runs from command line fine. After creating a .spec file and adding some needed datas, trying..... More

Print this item

  Metaprogramming: automating conversions between types
Posted by: Gribouillis - May-22-2022, 09:41 PM - Forum: Code sharing - No Replies

I tend to use more and more unary conversions between types in my programming, so here is a small utility module that I wrote today for composing auto..... More

Print this item

  Get the attributes value with xPath
Posted by: vulturas - May-22-2022, 05:28 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello everyone,

I would like to get the value from the data-score attribute within the <span>-element.
[inline]<span class="index..... More

Print this item

  math.log versus math.log10
Posted by: stevendaprano - May-22-2022, 11:44 AM - Forum: General Coding Help - Replies (10)

math.log(num, 10) is usually, but not always, equal to math.log10(num). In my random testing, when they are differen..... More

Print this item

  How to compile a Python script for a Windows / Linux executable?
Posted by: netanelst - May-22-2022, 10:11 AM - Forum: General Coding Help - Replies (2)

TNX Smile
NATE

Print this item

  Loop row and column + 1
Posted by: Scott - May-22-2022, 07:34 AM - Forum: General Coding Help - Replies (3)

Hi everyone,

I've made an empty 24,31 (24 columns and 31 rows if I've done the numbers wrong) matrix with all 0. I've also created a loop that a mo..... More

Print this item

  is there any tool to convert negative base to int?
Posted by: Skaperen - May-21-2022, 10:48 PM - Forum: General Coding Help - Replies (7)

is there any tool to convert negative base to int?

Print this item

  only print the last folder ?
Posted by: User3000 - May-21-2022, 09:01 PM - Forum: General Coding Help - Replies (4)

hi, I know I can get the name of the last folder using os.path.basename and os.path.normpath.

src_1 = "/storage/emulated/0/Documents/TAX/December_..... More

Print this item

  [Solved]Multiply a number to a DoubleSpinBox
Posted by: Extra - May-21-2022, 08:09 PM - Forum: GUI - Replies (11)

Hello,

I'm trying to make a sellPrice variable that takes in the user's input from the Price Input that I have and multiplies 1.10 to it.

This ..... More

Print this item

  [CPython] Can't run script python
Posted by: VietVH - May-21-2022, 03:32 PM - Forum: General Coding Help - Replies (2)

Hi all,

I have a problem need your help.
Thanks in advance.

1. Context:
I customized source code CPython 3.9.6 (https://www.python.org/downloa..... More

Print this item

  Convert nested sample json api data into csv in python
Posted by: shantanu97 - May-20-2022, 10:47 PM - Forum: General Coding Help - Replies (3)

Want to convert Sample JSON data into CSV file using python. I am retrieving JSON data from API. As my JSON has nested objects, so it normally cannot ..... More

Print this item

  rotating image with Tkinter
Posted by: Frankduc - May-20-2022, 05:37 PM - Forum: General Coding Help - Replies (6)

Hi,

I am trying to rotate images on canvas using Tkinter after() method.

My images dont appear in the window and they dont seem to rotate. I get..... More

Print this item

  Best way to accommodate unknown number of variables?
Posted by: Mark17 - May-20-2022, 05:23 PM - Forum: General Coding Help - Replies (9)

Hi all,

I've run up against this issue a number of times so I thought I'd seek advice on the best way to handle it.

Suppose I have a large data ..... More

Print this item

  Should Python support i suffix for complex numbers as well as j ?
Posted by: stevendaprano - May-20-2022, 10:19 AM - Forum: News and Discussions - Replies (3)

Python supports complex numbers written with the j suffix, e.g. 2.5j.

On Python's bug tracker, ..... More

Print this item

  Kiosk app
Posted by: DPaul - May-20-2022, 06:01 AM - Forum: Bar - No Replies

Hi,
When animals could talk, 'kiosk applications' were also in vogue.
If I have a tKinter app, running on windows 10/11.
What are the best python t..... More

Print this item

  Aligning a image to a template image
Posted by: robrod26 - May-20-2022, 02:02 AM - Forum: Data Science - Replies (1)

I've been researching how to do this with no luck.

I would like to align image 1 to image 2.

Image 1
https://ibb.co/wCsjYZR

Image 2
https:/..... More

Print this item

  auth - URL
Posted by: SUN - May-19-2022, 02:23 PM - Forum: General Coding Help - Replies (2)

Hello everyone sorry to disturb you. I wanna to ask a question about the authentification with an URL. How to judge whether a group of id and password..... More


Attached Files

Thumbnail(s)
       
Print this item

  Converting cells in excel to JSON format
Posted by: desmondtay - May-19-2022, 10:10 AM - Forum: General Coding Help - Replies (4)

Hi,

I am new to Python, need some help from the experts. I need to convert certain cells in 2 worksheets in excel to JSON format. How can i do it u..... More

Print this item

  do you have an idea to optimize this code[recursion]]?
Posted by: netanelst - May-19-2022, 08:37 AM - Forum: General Coding Help - Replies (4)

[python]class y():


def __init__(self, id, d="", indicator="",type="",deleted=False,published_date=0,last_updated=0,reports=[],actors=[],..... More

Print this item

  do you have an idea for optimizing this code?
Posted by: netanelst - May-19-2022, 07:12 AM - Forum: General Coding Help - Replies (3)

[python]
ip=0
import html
from imp import C_EXTENSION
import pandas as pd
from werkzeug import utils
from asyncio import get_running_loop
from..... More

Print this item

Bug do you have an idea to optimize this code[recursion]]?
Posted by: netanelst - May-19-2022, 06:50 AM - Forum: Code Review - No Replies

thanks
netanel

[python]class l():
def __init__(self,name,created_on,last_valid_on):
self.name=name
self.created_on=created_..... More

Print this item

  I am trying to run pytest and getting error that doesn't show up when running pytest.
Posted by: uobouhb - May-19-2022, 03:01 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

This is in python flask.

I am getting an error in pytest. When I run pytest it says it is working but I get the output below
[output]app\t..... More

Print this item

  [Solved]Help displaying SQLite Database
Posted by: Extra - May-19-2022, 01:19 AM - Forum: GUI - Replies (9)

Hello,

I'm trying to display my database on my TableWidgetItem in PyQt.

This is a snippet of my SQLite part of the code:
[python]
#---..... More

Print this item

  Get input for reading DB and refreshing plotly.graph_objects
Posted by: michel77777 - May-18-2022, 08:51 PM - Forum: GUI - Replies (1)

Hi,

there is a simple Python appilaction, which reads data from SQL database and shows the result as plotly.graph_objects.

I want the get two val..... More

Print this item

  NameError: name 'self' is not defined
Posted by: walter - May-18-2022, 02:31 PM - Forum: Code Review - Replies (11)

Hi guys,
i am a newbie in Python. I have a problem with an OOP issue. This is my code

[python]class Solution:
def __init__(self):
se..... More

Print this item

  trying to recall a regex for re.split()
Posted by: Skaperen - May-18-2022, 09:56 AM - Forum: General Coding Help - Replies (23)

i can't find where this was and can't recall it. regex stuff still doesn't sink in.

what i am wanting to do is split with all leading decimal digi..... More

Print this item

  how to parse this array with pandas?
Posted by: netanelst - May-18-2022, 09:26 AM - Forum: General Coding Help - Replies (2)

i glad for any help because I tried without succeed



I attached link to data in array:
https://pastebin.com/WnQMnn54

thanks
netanel

Print this item

  pysftp connection issue
Posted by: geil007 - May-18-2022, 08:40 AM - Forum: General Coding Help - No Replies

hi all,

i am trying to connect to an AWS hosted SFTP server from my Azure Databricks Notebook.

[python]import pysftp as sftp
from base64 import..... More

Print this item

  python update binary object (override delivered Object properties)
Posted by: pierre38 - May-17-2022, 03:30 PM - Forum: General Coding Help - Replies (4)

Hello,
I did many trials without success. I need to have flexibility in my Python code, so I use already .yaml configuration for deliverable scripts ..... More

Print this item

  how to parse this array with pandas?
Posted by: netanelst - May-17-2022, 12:30 PM - Forum: Data Science - Replies (1)

i glad for any help because I tried without succeed



I attached link to data in array:
https://pastebin.com/WnQMnn54

thanks
netanel

Print this item

  Populating an array dynamically
Posted by: zxcv101 - May-17-2022, 10:40 AM - Forum: General Coding Help - Replies (1)

Hi guys - am new to Python, so if my questions seem basic, pls bear with me.

I have a script which returns rows of data in this format :

2022051..... More

Print this item

  ValueError: Length mismatch: Expected axis has 8 elements, new values have 1 elements
Posted by: ilknurg - May-17-2022, 08:50 AM - Forum: General Coding Help - Replies (1)

[python]import mysql.connector
import pandas as pd


def to_camel_case(col_name: str) -> str:
#""function to convert column names to camel c..... More

Print this item

  Mysql Syntax error in pymysql
Posted by: ilknurg - May-17-2022, 07:43 AM - Forum: General Coding Help - Replies (4)

I have the code below for migration from mysql to postgresql.

[python]def get_mysql_connection(database_name: Optional[str] = None) -> MysqlConnect..... More

Print this item

  break out of for loop?
Posted by: User3000 - May-16-2022, 07:48 PM - Forum: General Coding Help - Replies (3)

hi, I am using Kodi and I have my movies in different folders depending on the resolution, refresh rate and available soundtrack (like Dolby Atmos, DD..... More

Print this item

  How to avoid the extra set of y-axis labels?
Posted by: Mark17 - May-16-2022, 06:48 PM - Forum: General Coding Help - Replies (9)

This programs works fine:

[Python]
import matplotlib.pyplot as plt

sample_data = [[3000,18], [3200,17], [3500,16], [4000,12]]
sample_df = pd.D..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How To Make A PyQt5 Progr... 1 hour ago rcwildabeast menator01 GUI
  ModulNotFoundError matplo... 2 hours ago WicardBohnam deanhystad General Codin...
  Problem Converting Tradin... 7 hours ago kralxs kralxs General Codin...
  New on python. Needs help... 8 hours ago jeromep deanhystad General Codin...
  Can provide python tutori... 10 hours ago Zahiba_Siddiqui carellapansullon Jobs
  Win or Loss Prediction Yesterday, 13:46 ksasi2k3 ksasi2k3 General Codin...
  Good way to ignore case w... Yesterday, 12:39 Winfried menator01 General Codin...
  how to edited Tkinter Top... Yesterday, 10:16 kucingkembar deanhystad General Codin...
  using mutable in function... Yesterday, 10:10 akbarza snippsat General Codin...
  Cucumber installation Yesterday, 07:52 SDS SandraYokum General Codin...
  if else statements Yesterday, 07:27 remy DeaD_EyE General Codin...
Most views
  The best Prog... 412934
  Web Scraping ... 303892
  Tutorial Requ... 293352
  Newbie with P... 251471
  Thread remain... 233666
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11871
buran 8090
snippsat 7087
deanhystad 6218
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
pyry Today
WicardBohnam Yesterday
rcwildabeast Yesterday
tuctboh Yesterday
kralxs Yesterday

User Panel Messages

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