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,384
» Latest member: Michaelhauct
» Forum threads: 38,820
» Forum posts: 176,012

Full Statistics

Online Users
There are currently 40 online users.
» 0 Member(s) | 37 Guest(s)
Bing, Google, AOL

Latest Threads
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
29 minutes ago
» Replies: 5
» Views: 9,846
Calling python from anoth...
Forum: General Coding Help
Last Post: bowlofred
2 hours ago
» Replies: 4
» Views: 101
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 126
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 69
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 118
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,284
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 92
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 749
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 153
a function to watch files
Forum: News and Discussions
Last Post: Gribouillis
Dec-21-2025, 07:43 AM
» Replies: 1
» Views: 136

 
  Does this code need to be so long?
Posted by: duckredbeard - Sep-26-2022, 09:47 PM - Forum: General Coding Help - Replies (4)

Made this timer to go with my son's BattleBots Arena (this [url=https://python-forum.io/thread-38301.html]..... More

Print this item

  python call stored procedure with two parameter
Posted by: mg24 - Sep-26-2022, 07:22 PM - Forum: General Coding Help - Replies (4)

Hi Team,

How to call below working stored procedure via python.

below stored procedure works in microsoft sql. when run manually.
EXEC dbo.uniq..... More

Print this item

  Problem with my Black Jack game...
Posted by: JengaBenga - Sep-26-2022, 07:06 PM - Forum: Homework - Replies (2)

Hey guys,

I'm new here so I'm not sure, what informations you need, but here you go:

As a school project I want to program Black Jack as a game...... More


Attached Files

.py   BlackJack_2.py (Size: 4.78 KB / Downloads: 309)
Print this item

  Python Tutorial 4.4 Loop Explained
Posted by: rts - Sep-26-2022, 06:38 PM - Forum: General Coding Help - Replies (2)

New to Python and working thru the tutorials.

In the example of "for" loops that determines prime numbers. It uses the "%" to determine if there is..... More

Print this item

  a proxy function for a generator
Posted by: Skaperen - Sep-26-2022, 05:19 PM - Forum: News and Discussions - No Replies

suppose i have a generator named g(). i create a function named f() that when called with keyword argument gen=True will call g(*args,**kwargs) and ..... More

Print this item

  Importing openpyxl
Posted by: azizrasul - Sep-26-2022, 04:24 PM - Forum: General Coding Help - Replies (13)

I have imported openpyxl. However, if I use the following line

import openpyxl
I get the

[python]ModuleNotFoundError: No mo..... More

Print this item

  Trading Bot written in Python for Windows
Posted by: Pizzlew - Sep-26-2022, 03:41 PM - Forum: News and Discussions - Replies (3)

Hello.

Absolutely no knowledge of Python human here:

Background:

Trading robot written in python for windows keep crashing when trying to exe..... More

Print this item

  Issue in Starting Django project with Docker
Posted by: Prabakaran141 - Sep-26-2022, 12:15 PM - Forum: General Coding Help - No Replies

Hello Python Geeks,

Looking for geeks' insight for django-docker related issues. I'm not able to run the command "docker-compose run --rm app sh -c..... More

Print this item

  How to resolve my problem in Pycharm?
Posted by: bshoushtarian - Sep-26-2022, 11:45 AM - Forum: General Coding Help - No Replies

Hi,

I'm using Pycharm to classify images of Clothing based on the following link:

https://colab.research.google.com/github...examples/b..... More

Print this item

  accept command line argument
Posted by: mg24 - Sep-26-2022, 11:34 AM - Forum: General Coding Help - Replies (5)

Hi Team,

how to accept multiple values or a list of values from command prompt. and store into single variable.

folderpath, next list of file ..... More

Print this item

  pickle problem
Posted by: DPaul - Sep-26-2022, 09:22 AM - Forum: General Coding Help - Replies (13)

Hi,
I can write and read pickle files, no problem.
But if I lookup how to merge a pickle file to an existing pickle file, I get somewhat confused,
I f..... More

Print this item

  asyncio not being faster than synchronous calls
Posted by: mikisDW - Sep-26-2022, 07:46 AM - Forum: General Coding Help - No Replies

Hello,

I'm trying to download data from the scopus api via python (https://dev.elsevier.com/documentation/A...alAPI.wadl).
Since we're ta..... More

Print this item

  openpyxl rename sheet acting strange
Posted by: Pedroski55 - Sep-25-2022, 11:30 PM - Forum: General Coding Help - Replies (1)

I have a big sales Excel file. I want to extract data according to a criteria and save it to another Excel

When I make the new Excel, it has 1 shee..... More

Print this item

  Write sql data or CSV Data into parquet file
Posted by: mg24 - Sep-25-2022, 10:58 PM - Forum: General Coding Help - Replies (2)

Hi Team,

How to write SQL Table data to parquet file. and compress to gzip.
SQL Table data size is 60gb.

or from writing sql data to csv first ..... More

Print this item

  seeking names for my functions
Posted by: Skaperen - Sep-25-2022, 10:56 PM - Forum: News and Discussions - No Replies

i am completely refactoring a function i wrote a year or two ago that runs a POSIX command pipeline (commands chained with STDOUT from a command feedi..... More

Print this item

  Create a function for writing to SQL data to csv
Posted by: mg24 - Sep-25-2022, 10:49 PM - Forum: General Coding Help - Replies (4)

Hi Team,

I am using below piece of code for writing SQL Data into csv file. size of data is big. 60gb
I want to create a generic function d..... More

Print this item

  UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 34: character
Posted by: Melcu54 - Sep-25-2022, 08:01 PM - Forum: General Coding Help - Replies (7)

hello. I donit know what to to with this error:

[python]UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 34: character maps to ..... More

Print this item

  Appending Dataframes along columns
Posted by: MBhuvaneshwari - Sep-25-2022, 05:47 PM - Forum: General Coding Help - Replies (1)

i wanted to append only non empty dataframes from a set of dataframes.. using python!!
I tried so using following code:
dfs = [df2_test,df3_test,df4..... More

Print this item

  If - Then With Dates
Posted by: Hockey_Rob - Sep-25-2022, 03:53 PM - Forum: General Coding Help - No Replies

All,

I am very new to python and I am struggling to create conditional formulas with dates. I have two excel spreadsheets that I have read in usin..... More

Print this item

  0 == 0 is 0
Posted by: yalajules - Sep-25-2022, 03:49 PM - Forum: General Coding Help - Replies (4)

Hi,
I don't understand why 0 == 0 is 0 returns True ? What is the order of priority ?
Although (0==0) is 0 returns False and 0 == (0 is 0..... More

Print this item

  Presenting random test questions
Posted by: oradba4u - Sep-25-2022, 02:47 PM - Forum: General Coding Help - Replies (2)

I have Python 3.10, and want to read a series of multiple choice or Yes-No/True-False test questions into a list (or array or whatever) from an Excel ..... More

Print this item

  Right to left alignment in python report using Reportlab
Posted by: jalal0034 - Sep-25-2022, 06:51 AM - Forum: General Coding Help - Replies (1)

Hi Everyone, How can I write Right to left passage in Report lab in persian language using Reportlab ?

my code returns this file :

[img]https://..... More

Print this item

  [Solved]Help Displaying Emails properly via Python
Posted by: Extra - Sep-24-2022, 10:35 PM - Forum: General Coding Help - Replies (5)

Hello,

I have a sendEmail Function for my voice assistant which allows it to send emails. The emails send successfully, but they don't display prop..... More


Attached Files

Thumbnail(s)
       
Print this item

  [Solved]Help getting out of loop
Posted by: Extra - Sep-24-2022, 09:24 PM - Forum: GUI - Replies (5)

Hello,

I have a GUI where I click a button and I want it to launch tmy "A.I" Assistant (BAXTER_V5.py) but when I click the button on my GUI I get s..... More

Print this item

  Help combining 2 of my codes to 1
Posted by: Extra - Sep-24-2022, 06:40 PM - Forum: General Coding Help - No Replies

Hello,

I have this chunk of code here (pairs.py):
[python]
import nltk
from nltk.chat.util import Chat, reflections

pairs = [
[
r"my nam..... More

Print this item

  Saving the print result in a text file
Posted by: Calli - Sep-24-2022, 04:22 PM - Forum: General Coding Help - Replies (8)

Hi guys another day another issue.. So I have this code

[python]
from contextlib import suppress
from ipaddress import IPv6Address, ip_address
..... More

Print this item

  Using scipy.optimize: curve_fit
Posted by: ju21878436312 - Sep-24-2022, 01:15 PM - Forum: Data Science - No Replies

Hey there,

I would like to model exponential data by a curve_fit with scipy. The fit fits well for small x-values, but less so for bigger x-values..... More

Print this item

  When is stdin not connected to a tty, but can still be used interactively?
Posted by: stevendaprano - Sep-24-2022, 12:25 PM - Forum: General Coding Help - Replies (1)

I'm looking at some code which is intended to be used interactively, and I don't quite understand it.

Simplified, the code looks like this:

[pyt..... More

Print this item

  debugging help on Visual Studio Code
Posted by: mg24 - Sep-24-2022, 11:17 AM - Forum: General Coding Help - Replies (12)

Hi Team,

I want to take cursor to previous line on visual studio code editor.
tried on pycharm also it didn't worked.

Can we jump back to previ..... More

Print this item

Sad triangle numbers
Posted by: Woody_MC_2022 - Sep-24-2022, 09:08 AM - Forum: General Coding Help - Replies (5)

Hi all, I want to print the output as below:-

Output:
1 X2 XX3 XXX4 XXXX5 XXX4 XX3 X2 1

I tried to solve the problem above..... More

Print this item

  How to use pandas to compare two DataFrames having different structure
Posted by: traja47 - Sep-24-2022, 06:09 AM - Forum: General Coding Help - No Replies

hi all
Please accept my apologies if this is not the correct forum for pandas.,
I am a new python pandas user and have a question.

I have two Dat..... More


Attached Files

Thumbnail(s)
               
Print this item

  Key features of Python Frameworks
Posted by: JahnviK - Sep-24-2022, 06:09 AM - Forum: News and Discussions - No Replies

We were asked to teach Python Frameworks to a class of fellow students (4th year college undergrads). We talked about the basic building blocks like H..... More

Print this item

  Replace Meson with PIP
Posted by: ChrisOfBristol - Sep-23-2022, 06:28 PM - Forum: General Coding Help - Replies (4)

I have a Flatpak which uses Meson to install the main Python program. There is a meson.build file which finds appropriate directory names and does thi..... More

Print this item

  How to calculated how many fail in each site(s) in csv files
Posted by: SamLiu - Sep-23-2022, 03:25 PM - Forum: General Coding Help - Replies (4)

Hi all,

I just get how many test quantity for each site(s),and then want to calculated each site pass quantity. I have no idea to do that,someone c..... More

Print this item

  pip install pystyle doesnt work
Posted by: person_probably - Sep-23-2022, 02:30 PM - Forum: General Coding Help - Replies (2)

i cant use pip install because it does... Invalid Syntax specified on install
i dont know how it works can i get help please <button>help me</button..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Lottery generator (beginn... 29 minutes ago Hullari Pedroski55 General Codin...
  Calling python from anoth... 2 hours ago eedjsa bowlofred General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
  Spaces in string 12-19, 13:04 Mallard Mallard General Codin...
Most views
  The best Prog... 580330
  Tutorial Requ... 518798
  Web Scraping ... 442753
  Newbie with P... 386937
  New Users Int... 386020
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Michaelhauct Yesterday
eedjsa Yesterday
byanfrances6176 Yesterday
Amowtonyl Yesterday
sofiadavis1840 Yesterday

User Panel Messages

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