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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,932
» Latest member: XenonBlack
» Forum threads: 38,720
» Forum posts: 175,502

Full Statistics

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

Latest Threads
Too much space between gr...
Forum: GUI
Last Post: deanhystad
1 hour ago
» Replies: 3
» Views: 889
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Today, 07:07 AM
» Replies: 1
» Views: 354
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,477
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,532
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 406
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 128
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,912
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,164
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 849
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-14-2025, 11:25 AM
» Replies: 7
» Views: 2,239

 
  Write from dictionary to excel
Posted by: divon - Sep-27-2022, 05:06 AM - Forum: Data Science - Replies (3)

Hello everyone, I would like to ask about how to write from a dictionary into excel.

The program that I have written so far:

[python]
import nu..... More

Print this item

  Reading Data from JSON
Posted by: tpolim008 - Sep-27-2022, 02:58 AM - Forum: General Coding Help - Replies (2)

Hello looking to see if anyone could help me out here. Ive been trying to figure this out but seem to keep getting stuck. Im not very advance in pytho..... More

Print this item

  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: 295)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] Too much space ... 1 hour ago RonR deanhystad GUI
  Another app idea - intera... Today, 07:07 decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
  Python Installation issue 09-14, 11:16 RFHill Dev News and Disc...
Most views
  The best Prog... 575828
  Tutorial Requ... 497124
  Web Scraping ... 439836
  Newbie with P... 383540
  New Users Int... 365456
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12087
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
XenonBlack Today
tobey12 Today
Lenowell Today
luisshulez6883 Yesterday
KennedyRichadGuerra Yesterday

User Panel Messages

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