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,241
» Latest member: ColorTig
» Forum threads: 38,777
» Forum posts: 175,795

Full Statistics

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

Latest Threads
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
5 hours ago
» Replies: 1
» Views: 37
Data Science
Forum: Data Science
Last Post: mamta25
5 hours ago
» Replies: 3
» Views: 2,574
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
Yesterday, 10:15 PM
» Replies: 1
» Views: 100
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 149
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 128
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 129
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,328
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,381
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,584
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 208

 
  try except issue
Posted by: Frankduc - Feb-22-2022, 08:41 PM - Forum: General Coding Help - Replies (12)

Cant make it work.


must be indentation

TY

Print this item

  How do I get rid of "Chrome is being controlled by automated test software"?
Posted by: jetBlack - Feb-22-2022, 08:26 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello! I'm a new member here.

I've made a code here with a tool that most of you are probably familiar with; Selenium.
The code itse..... More

Print this item

  Extract columns from a 2 dimentional table
Posted by: Leyo - Feb-22-2022, 03:49 PM - Forum: Homework - Replies (4)

hello everyone,

I struggle on this exercise:
define a function col(mat, j) allowing to retrieve a column of the matrix. For example col(M, 1) will..... More

Print this item

  Two part scraping?
Posted by: never5000 - Feb-22-2022, 02:36 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

I'm trying to figure out 2 things.
1st) Scrape a page for all it's News Links
2nd) Using those scraped links - open each link and scrape tha..... More

Print this item

  grouped bar graphs
Posted by: tobiasfw - Feb-22-2022, 01:31 PM - Forum: General Coding Help - Replies (1)

Hello,

I have the following data frame and would like to make a grouped bar graph:

BAKERY DAYTIME BREAD_SOLD
Smith Morning 124
Sm..... More

Print this item

Shocked Issues Installing Pyenv/Python 3.9.1
Posted by: Brandon_Contactum - Feb-22-2022, 11:28 AM - Forum: General Coding Help - Replies (1)

Hello Support,

Unsure if this is the correct category to post this, but I am finding some issues installing Python 3.9.1.

The device I am tryi..... More


Attached Files

Thumbnail(s)
   
Print this item

  Upload image to Instagram using python/selenium using image URL failed, need help
Posted by: greenpine - Feb-22-2022, 10:53 AM - Forum: General Coding Help - Replies (5)

Hello;
I try to post images to Instagram using python selenium, but when I want to use the image URL I get an error.
when I use an absolute path to th..... More

Print this item

  python audio analysis
Posted by: kiyoshi7 - Feb-21-2022, 11:53 PM - Forum: General Coding Help - Replies (3)

Hi, I have a small project where I have a mechanical clock and I record it ticking (pic below) and I would like to be able to identify the tick first ..... More

Print this item

  Conversion from hexa to decimal in loop bugging
Posted by: Personne - Feb-21-2022, 11:37 PM - Forum: General Coding Help - Replies (1)

Hi guys,

I believe I'm hitting a bug, here is my piece of code:

[python]def allcolors():

query = db.session.query(BLColor).order_by(BLCol..... More

Print this item

  Try except how is it working?
Posted by: Frankduc - Feb-21-2022, 08:22 PM - Forum: General Coding Help - Replies (6)

I am trying to make it work. The code ask for 3 values and return the highest value.
If input is a string. I want to handle the error with an excepti..... More

Print this item

  Looking for advice on funstionality of python
Posted by: bradkernohan - Feb-21-2022, 07:54 PM - Forum: General Coding Help - Replies (1)

Hi All,

New to Python. Wondering if anyone can provide me some insight as to whether Python can handle the type of functionality I'm looking for...... More

Print this item

  Check if specific program is used
Posted by: alex_laco - Feb-21-2022, 05:27 PM - Forum: General Coding Help - Replies (3)

Hey guys,
please I have a question.
I need to check if the user working with a specific program. For example. I need run the function only when prog..... More

Print this item

  Search multiple CSV files for a string or strings
Posted by: cubangt - Feb-21-2022, 04:56 PM - Forum: General Coding Help - Replies (7)

So i have a need to be able to search multiple CSV files for a string or set of strings and then return the file name that it was found in.

I want ..... More

Print this item

  How should write a command for frequency?
Posted by: Raselrameda - Feb-21-2022, 02:12 PM - Forum: Homework - Replies (2)

How should write a command for frequency?
[python]
_Frequency of different number of doors (2, 3, 4, and 5)
_Frequency of different fuel types (Pet..... More

Print this item

  Distinguishing different types of class attributes
Posted by: Drone4four - Feb-21-2022, 02:02 PM - Forum: General Coding Help - Replies (4)

I’m learning Python OOP and I am struggling to understand the difference between defining the two different kinds of class attributes - - static attri..... More

Print this item

  Nested functions. Equation equal to zero works in a wrong way
Posted by: alexfrol86 - Feb-21-2022, 01:34 PM - Forum: General Coding Help - Replies (6)

Hi there! The following block of code works, but the results are presented as the list of formulas. Before I have included lines 18-22 (lines relate t..... More

Print this item

  openpyx (ValueError: Style Consolas exists already)
Posted by: Irv1n - Feb-21-2022, 01:04 PM - Forum: General Coding Help - No Replies

My code:
[python]class Excel:
def __init__(self) -> None:
self.wb = xl.Workbook()

del self.wb['Sheet']
self..... More

Print this item

  Migration of Python2 and Python3 using Modernize and Future
Posted by: Rakshan - Feb-21-2022, 12:12 PM - Forum: General Coding Help - Replies (5)

I am working on the migration of files from Python2.7 to Python3+. As a part of preparation, I have come across utility 2to3, Modernize ..... More

Print this item

  Solving equation equal to zero: How to resolve the syntax error?
Posted by: alexfrol86 - Feb-21-2022, 07:09 AM - Forum: General Coding Help - Replies (3)

Hello!

When solving a system of equations, I need to take into account an additional equation equal to zero. To include this equation, I use sympy...... More

Print this item

  I am completely lost on this homework assignment
Posted by: a36 - Feb-21-2022, 04:29 AM - Forum: Homework - Replies (1)

Step 1 (50 pts):

The objective of this program is simply to open a file, read each line and display it. Your program should:

Open auth.log.1b. (..... More

Print this item

  How would you (as an python expert) make this code more efficient/simple
Posted by: coder_sw99 - Feb-20-2022, 11:33 PM - Forum: General Coding Help - Replies (3)

Hi,

my question is quite simple: How would you make this piece of code more simple/efficient?

[python]def draw_pattern_1(p,m):
print(p, end..... More

Print this item

Exclamation I can't use Python 3.10
Posted by: Reikurooo - Feb-20-2022, 07:49 PM - Forum: General Coding Help - Replies (5)

Hello! I hope that I'm writing in the right category.

I want to use the 3.10 version for a script, but I'm struggling to use this version. I instal..... More

Print this item

  proper way of coding
Posted by: ebooczek - Feb-20-2022, 05:50 PM - Forum: GUI - Replies (3)

I have a question of good practice of using tkinter.
Should the main window be created in a function of outside? Making it as a local doesn't seem t..... More

Print this item

  Remove if similar values available based on two columns
Posted by: klllmmm - Feb-20-2022, 03:45 PM - Forum: General Coding Help - Replies (1)

I want to remove the duplicates (keeping only the first occurrence) if similar values are found between two columns.

[python]
import pandas as pd..... More

Print this item

  Still not completely clear about namespaces...
Posted by: bytecrunch - Feb-20-2022, 02:01 PM - Forum: General Coding Help - Replies (3)

Hello Forum,

a) I understand that everything that gets loaded in RAM (classes, variables, lists, modules, etc.) has a name. The object and the name..... More

Print this item

  Wireshark-like Display Filter for Python Dictionaries
Posted by: bytebutcher - Feb-20-2022, 11:05 AM - Forum: Code sharing - No Replies

Hi guys,

I’ve lately published a project called python-dict-display-filter wh..... More

Print this item

  Need to sign JWT token with JWK key
Posted by: stucoder - Feb-20-2022, 08:59 AM - Forum: General Coding Help - Replies (1)

I am using PyJWT. I have given public & private keys in JWK format. I need to sign the JWT token. B..... More

Print this item

  TypeError: 'module' object is not callable
Posted by: SyamPothan - Feb-20-2022, 02:07 AM - Forum: General Coding Help - Replies (4)

I getting following error on the attached file. please help...


Attached Files

.py   permutation JumbledWord.py (Size: 2.34 KB / Downloads: 458)
Print this item

  pyodbc
Posted by: gmerritt - Feb-20-2022, 12:11 AM - Forum: General Coding Help - Replies (8)

A Database was created in SqliteStudio 3.3.3 and is working 100,000 +/- records.

The following python connection string fails :

[python]
impor..... More

Print this item

  Use of Indexing Operator
Posted by: PythonNewbee - Feb-19-2022, 07:13 PM - Forum: General Coding Help - Replies (8)

Hi Everyone

I'm struggling to understand the use of the indexing operator ([]) in the code snippet below (it is an extract from a class definition)..... More

Print this item

  Help with code, RMS, FFT
Posted by: frohr - Feb-19-2022, 04:58 PM - Forum: General Coding Help - Replies (6)

Hi all,
maybe you can help me where is problem with this code.

[python]
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np..... More

Print this item

  Navigate Pages in Beautifulsoup
Posted by: giddyhead - Feb-19-2022, 01:52 PM - Forum: General Coding Help - Replies (4)

Hi everyone I am facing an issue. I am looking to cycle through webpages while printing the upcoming url and stop at a specific url, however when it s..... More

Print this item

  Encrypt and decrypt in python using own fixed key
Posted by: SriRajesh - Feb-19-2022, 12:29 PM - Forum: General Coding Help - Replies (3)

Hi I want to encrypt an d decrypt. But I want to use fixed defined key for example: key = "Abcd123". Can some one help how to do it. Thanks in advance..... More

Print this item

  SQLAlchemy Object Missing when Null is returned
Posted by: Personne - Feb-19-2022, 02:02 AM - Forum: General Coding Help - Replies (1)

I'm learning Python and SQLAlchemy for the last 2 weeks, I made some progress but I'm having an issue I have no idea how to resolve.

I do have a SQ..... More

Print this item

  Python3 mysql connection performance
Posted by: ogautier - Feb-18-2022, 09:35 PM - Forum: News and Discussions - Replies (5)

[quote]
Hello,
I would like to know what allows me to get the best performance when connecting from Python to mysql server:

1. Create a connectio..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [split] print two differe... 5 hours ago Reema Gribouillis General Codin...
  Data Science 5 hours ago Oshadha mamta25 Data Science
  [Tkinter] I’m building a ... Yesterday, 22:15 tsgiannis woooee GUI
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [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...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
Most views
  The best Prog... 578730
  Tutorial Requ... 509421
  Web Scraping ... 441869
  Newbie with P... 385829
  New Users Int... 375328
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ColorTig Today
AcoolPurpleOne1863 Today
racingsubby Today
Reema Today
lary_p Yesterday

User Panel Messages

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