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,755
» Latest member: Bestimmigrationsolicitors
» Forum threads: 37,669
» Forum posts: 171,212

Full Statistics

Online Users
There are currently 420 online users.
» 1 Member(s) | 414 Guest(s)
Bing, Yandex, Baidu, Google, Facebook, Gribouillis

Latest Threads
Show powershell errors in...
Forum: General Coding Help
Last Post: robertkwild
14 minutes ago
» Replies: 11
» Views: 255
What is going on?
Forum: Homework
Last Post: Pedroski55
1 hour ago
» Replies: 7
» Views: 146
Announcing the configoose...
Forum: News and Discussions
Last Post: snippsat
2 hours ago
» Replies: 1
» Views: 138
New Users Introduce Yours...
Forum: Bar
Last Post: carl_46120
5 hours ago
» Replies: 434
» Views: 244,296
API Problems!!!
Forum: General Coding Help
Last Post: sawtooth500
5 hours ago
» Replies: 1
» Views: 53
Printing the code line nu...
Forum: General Coding Help
Last Post: Gribouillis
10 hours ago
» Replies: 5
» Views: 366
scipt with apparently no ...
Forum: GUI
Last Post: deanhystad
11 hours ago
» Replies: 2
» Views: 82
Display data from a chat
Forum: GUI
Last Post: Arcanta
Yesterday, 08:00 PM
» Replies: 2
» Views: 86
Count Button Press
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 05:16 PM
» Replies: 3
» Views: 116
2.7.5 Assistance
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:59 PM
» Replies: 4
» Views: 143

 
  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
  Show powershell errors in... 14 minutes ago robertkwild robertkwild General Codin...
  What is going on? 1 hour ago zimmytheflygirl Pedroski55 Homework
  Announcing the configoose... 2 hours ago Gribouillis snippsat News and Disc...
  New Users Introduce Yours... 5 hours ago Yoriz carl_46120 Bar
  API Problems!!! 5 hours ago Dronemaster278 sawtooth500 General Codin...
  Printing the code line nu... 10 hours ago arbiel Gribouillis General Codin...
  [Tkinter] scipt with appa... 11 hours ago INS deanhystad GUI
  Display data from a chat Yesterday, 20:00 Arcanta Arcanta GUI
  Count Button Press Yesterday, 17:16 chizzy101010 deanhystad General Codin...
  2.7.5 Assistance Yesterday, 16:59 patrickperea deanhystad General Codin...
  API Problems!!! Yesterday, 16:09 Dronemaster278 Dronemaster278 General Codin...
Most views
  The best Prog... 536652
  Web Scraping ... 405415
  Tutorial Requ... 388139
  Newbie with P... 327358
  Thread remain... 308533
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 352
deanhystad 315
Most replies
  New Users Int... 434
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11909
buran 8089
snippsat 7154
deanhystad 6381
metulburr 5150
Top referrers
Googlepro 21
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Bestimmigrationsolicitors Today
Karencat Today
carl_46120 Yesterday
DonaldAgece Yesterday
chizzy101010 Yesterday

User Panel Messages

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