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,721
» Forum posts: 175,502

Full Statistics

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

Latest Threads
Too much space between gr...
Forum: GUI
Last Post: RonR
5 hours ago
» Replies: 2
» Views: 873
How Reliable Is Assignmen...
Forum: News and Discussions
Last Post: tobey12
8 hours ago
» Replies: 0
» Views: 49
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Today, 07:07 AM
» Replies: 1
» Views: 353
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,460
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,525
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 392
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 123
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,900
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,154
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 839

 
  "SUMIF" type query in Python (help required)
Posted by: BlainEillimatta - Oct-06-2022, 09:08 AM - Forum: General Coding Help - No Replies

Hello!

Hello all, great to be here!

I'm new to Python and have hit a brick wall with the following problem.

I have two dataframes and I ..... More

Print this item

  Changing units with tens
Posted by: kazek17 - Oct-06-2022, 08:56 AM - Forum: Homework - Replies (1)

Hi,
i have to draw int number from (1000, 9999) and create new number where I have to change units with tens and hundreds with thousands from the fir..... More

Print this item

  How to expand and collapse individual parts of the code in Atom
Posted by: Lora - Oct-06-2022, 07:02 AM - Forum: General Coding Help - Replies (2)

Hello,
I would like to have a better overview in my long code. I know it from Stata that you can create individual sections that you can then expand..... More

Print this item

  prefix ID Number with 0,00 make 3 digit.
Posted by: mg24 - Oct-06-2022, 05:39 AM - Forum: General Coding Help - Replies (1)

Hi Team,

Need help for converting all ID no into minimum 3 digit. pythonic way.

Check the id no, if id is single digit, add two zeros infront of..... More

Print this item

  how to convert tuple value into string
Posted by: mg24 - Oct-05-2022, 11:58 PM - Forum: General Coding Help - Replies (2)

Hi Team,

how to convert tuple value into a string.
after running sql query I get output in tuple.

want to convert it into string.

[python]sq..... More

Print this item

  502 Issue
Posted by: itgavin - Oct-05-2022, 10:59 PM - Forum: Web Scraping & Web Development - Replies (1)

Our company internal portal is running Python 3+Nginx+flask+Gunicorn on Ubuntu server. This portal was written by previous staff and I have just joine..... More

Print this item

  QActions and Unicode glyphs
Posted by: malonn - Oct-05-2022, 12:38 PM - Forum: GUI - Replies (9)

I'm trying to add Unicode glyphs to a QAction. But, my attempts thus far are crashing my desktop (actually logging me out). How do I use Unicode cha..... More

Print this item

  QGridLayout and stretching widgets when maximized
Posted by: malonn - Oct-05-2022, 08:23 AM - Forum: GUI - Replies (1)

I have a QGridLayout set with 2 rows and 2 columns. Column 0 spans 2 rows, column 1 has a QTableView in row 0 and a image (QLabel) in row 1. When I ..... More

Print this item

  Tips on Converting BASIC to Pygame
Posted by: robin73 - Oct-05-2022, 08:03 AM - Forum: Game Development - Replies (4)

I posted on Stack Overflow about wanting some feedback/advice on converting old ZX Basic games to Pygame. I'd like to get some input on it, but so far..... More

Print this item

  Add\insert header row existing csv files
Posted by: mg24 - Oct-05-2022, 06:11 AM - Forum: General Coding Help - No Replies

Hi Team,

I am opening existing csv files, and Want to insert records at first row.

if I use inplace=True , file get overwrites
if I use inplac..... More

Print this item

  Moving data from one Excel to another and finding maximum profit
Posted by: azizrasul - Oct-04-2022, 09:48 PM - Forum: General Coding Help - Replies (7)

I have the following code: -

[python]import pandas as pd

out = pd.read_excel(io = "E:/Folder/Company Financials.xlsx", sheet_name = "Sales", use..... More

Print this item

  What do you do outside of work?
Posted by: Jan_97 - Oct-04-2022, 07:13 PM - Forum: Bar - Replies (4)

Outside of work and all things related to tech. What do you enjoy doing?


Me personally I love exercising and hiking. It helps me relax after a lo..... More

Print this item

  Shapes over video in tkinter
Posted by: finndude - Oct-04-2022, 05:49 PM - Forum: General Coding Help - Replies (1)

Hi all,

I wanted to know if there is a way in Tkinter to simply play a video and with a button press, a circle appears on top of the video?

Print this item

  Tetris inteligence
Posted by: DanTDRG - Oct-04-2022, 05:24 PM - Forum: Game Development - Replies (5)

Hello, could someone help me write tetris intelligence?
I understand that there is a lot of it on the internet but unfortunately I can't edit it exce..... More

Print this item

  How to break out of a for loop on button press?
Posted by: philipbergwerf - Oct-04-2022, 03:59 PM - Forum: General Coding Help - Replies (6)

[python]from tkinter import *

# root
root = Tk()
root.title('SeqTank')
scrwidth = root.winfo_screenwidth()
scrheight = root.winfo_screenheight(..... More

Print this item

  PyMuPDF
Posted by: rob101 - Oct-04-2022, 01:11 PM - Forum: General Coding Help - No Replies

Has anyone had any experience (good or bad) using PyMuPDF?

I've not tried it yet, but I can foresee a situation whereby it would be ideal to be a..... More

Print this item

  Insert header at first row, for existing csv
Posted by: mg24 - Oct-04-2022, 11:36 AM - Forum: General Coding Help - Replies (2)

Hi Team,

I have input data in csv file like below.

1,EAST,100
2,WEST,200
3,SOUTH,300
4,NORTH,400


I want to add these headers to above in..... More

Print this item

  How do I make a game save?
Posted by: BliepMonster - Oct-04-2022, 10:49 AM - Forum: General Coding Help - Replies (6)

Hello,
I am making a game with python and the content is expanding really fast. It's beginning to reach the point that it can't be played in one sitt..... More

Print this item

  How to call a function in Python 3
Posted by: bmharwani - Oct-04-2022, 07:45 AM - Forum: Tutorial Requests and Submissions - No Replies

This video tutorial explains how to call a function in python 3 and understand advantage of using function and the syntax of def and return function i..... More

Print this item

  counting lines in split data
Posted by: Skaperen - Oct-03-2022, 10:16 PM - Forum: General Coding Help - Replies (6)

i am getting data in an ordered sequence of buffers one at a time. an example is reading a data pipe 4096 bytes at a time. i want to count the numbe..... More

Print this item

  TypeError: sequence of byte string values expected, value of type str found
Posted by: witgrefe - Oct-03-2022, 01:38 PM - Forum: Tutorial Requests and Submissions - No Replies

I am trying to get mod_wsgi up and running but when I try to open a test page with the following code I get the error saying that a byte string is exp..... More

Print this item

  python Extract sql data by combining below code.
Posted by: mg24 - Oct-03-2022, 09:02 AM - Forum: General Coding Help - Replies (1)

Hi Team,

How to combine below two code both code works, I want sql data using SCP Method.
SCP method is faster to extract data. SCP method does n..... More

Print this item

  Using locationtagger to extract locations found in a specific country/region
Posted by: lord_of_cinder - Oct-03-2022, 06:52 AM - Forum: General Coding Help - Replies (1)

I have found locationtagger as a python based tool which can help me extract locations from a piece of text. My problem is the locations to be ..... More

Print this item

  Develop neural network for consumption function
Posted by: vaibhavpwr101 - Oct-03-2022, 05:29 AM - Forum: Homework - No Replies

I am new to python and I do not no how to approach to this problem. please suggest me how to do it. Its really important for me


The consumption f..... More

Print this item

  [Solved]How to Run GUI MsgBox From Terminal Properly
Posted by: Extra - Oct-02-2022, 08:09 PM - Forum: GUI - Replies (4)

Hello,

I'm trying to make an alert GUI that pops up/activates after a certain amount of time or when it's called by my program.

Right now I'm tr..... More

Print this item

  Making a function more efficient
Posted by: CatorCanulis - Oct-02-2022, 07:24 AM - Forum: General Coding Help - Replies (9)

Hi everyone,

I'm working on a function that avoids transposed numbers. Like if you have 12 you can't have 21 or if you have 126 you can't have 216 ..... More

Print this item

  re.sub not working
Posted by: Ryokousha - Oct-02-2022, 04:18 AM - Forum: General Coding Help - Replies (7)

I have a simple mad libs genarator and template text. when I try to replace part of speech it's just do noting and return unchanged string. I don't kn..... More


Attached Files

.txt   The Monkey King!.txt (Size: 389 bytes / Downloads: 195)
.py   main.py (Size: 1,007 bytes / Downloads: 290)
Print this item

  Changing the initial worksheet name in an MS Excel file
Posted by: azizrasul - Oct-02-2022, 03:11 AM - Forum: General Coding Help - Replies (3)

In the following code I want the initial sheet name to change from 'Sheet' to some other name. What code can I use to do this. Is there a way of makin..... More

Print this item

  [Solved]Add a Blank Row To QTableView
Posted by: Extra - Oct-01-2022, 10:11 PM - Forum: GUI - Replies (3)

Hello,

I have a GUI that displays some tables and I have an "Add Item" button that, when clicked, I would like it to add a new (blank) row to the t..... More

Print this item

  how is Ellipsis or ... used?
Posted by: Skaperen - Oct-01-2022, 06:58 PM - Forum: News and Discussions - Replies (9)

how is Ellipsis or ... used in Python code? has anyone here had a need to use it? has anyone here ever seen it used in code not in a comment?

[py..... More

Print this item

  while loop
Posted by: idddj - Oct-01-2022, 08:22 AM - Forum: Homework - Replies (8)

So I was required to solve this question:[i] Write a program to use a while loop to read the numbers from the user repeatedly until he/she inputs 0. T..... More

Print this item

  Csv writer meaning of quoting
Posted by: mg24 - Oct-01-2022, 02:15 AM - Forum: General Coding Help - Replies (2)

Hi Team,

in below code I want understand what quoting does.

What is the meaning of these, in which situation others to use it.

csv.QUOTE_NONN..... More

Print this item

  updating Google spreadsheet with gspread
Posted by: mgallotti - Sep-30-2022, 10:53 PM - Forum: General Coding Help - No Replies

Hello,
I've been working on updating a spreadsheet in Google drive. I'm trying to use gspread to do this. I've been able to find the spreadsheet by..... More

Print this item

  iterating and detecting the last
Posted by: Skaperen - Sep-30-2022, 10:38 PM - Forum: General Coding Help - Replies (3)

i am iterating over a list (or tuple). for each item except the last item i need to do a specific thing. for the last item i need to do something di..... More

Print this item

  Why doesn't it show me anything in print?
Posted by: Melcu54 - Sep-30-2022, 08:35 PM - Forum: General Coding Help - Replies (2)

Why doesn't it show me anything in print?

[python]import re
import html
from urllib import parse
import requests

GOOGLE_TRANSLATE_URL = 'http..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] Too much space ... 5 hours ago RonR RonR GUI
  How Reliable Is Assignmen... 8 hours ago tobey12 tobey12 News and Disc...
  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...
Most views
  The best Prog... 575823
  Tutorial Requ... 497097
  Web Scraping ... 439832
  Newbie with P... 383532
  New Users Int... 365423
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 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 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