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,237
» Latest member: alexmaarley8855
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 28 online users.
» 0 Member(s) | 26 Guest(s)
Bing, Google

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
11 hours ago
» Replies: 3
» Views: 82
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 94
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 68
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 101
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,048
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,364
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,554
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 184
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,195
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,442

 
  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: 198)
.py   main.py (Size: 1,007 bytes / Downloads: 296)
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

  Creating list of lists, with objects from lists
Posted by: sgrinderud - Sep-30-2022, 08:04 PM - Forum: General Coding Help - Replies (7)

Hi,
I have two lists like this:

List1 = ['1','2','3','5']
list2 = ['a','b','c','d','e']
and im trying to combine them into..... More

Print this item

  Create SQL connection function and validate
Posted by: mg24 - Sep-30-2022, 07:10 PM - Forum: General Coding Help - Replies (1)

Hi Team,

how to create a sql connection function , and validate if it is successfully connected it or not.
I attempted with below code. code works..... More

Print this item

  My survival game
Posted by: BliepMonster - Sep-30-2022, 06:56 PM - Forum: Code Review - No Replies

So I've been coding for a few weeks and made this text survival game. Can someone give a review or tell how I could change my code?

(The game is in..... More


Attached Files

.py   survival spel 1.5 klad.py (Size: 36.45 KB / Downloads: 8)
Print this item

  Use of pygame
Posted by: ebolisa - Sep-30-2022, 06:22 PM - Forum: General Coding Help - Replies (2)

Hi,

The following code plays only the beginning of a file:

[python]pygame.mixer.init()
pygame.mixer.music.load('my_music.mp3')
pygame.mixer.mu..... More

Print this item

  Pandas groupby warning *** WARNING ***
Posted by: Larz60+ - Sep-30-2022, 04:38 PM - Forum: News and Discussions - No Replies

Please read the following pandas warning:
https://pbpython.com/groupby-warning.html

Print this item

  SQL Alchemy help to extract sql data into csv files
Posted by: mg24 - Sep-30-2022, 12:14 PM - Forum: General Coding Help - Replies (1)

Hi Team,

how to download sql table data with header from using SQL Alchemy.

using pyodbc library I have downloaded 60gb data. Using read in chu..... More

Print this item

  USE string data as a variable NAME
Posted by: rokorps - Sep-30-2022, 08:25 AM - Forum: General Coding Help - Replies (1)

Hello,
I am kinda a beginner in python..
You might say that I have not been 'googling' for this question..
But..
I write code
[python]for ..... More

Print this item

  gspread and installing in general
Posted by: mgallotti - Sep-29-2022, 11:01 PM - Forum: General Coding Help - Replies (2)

Hi,
I'm learning Python, so sorry if this is a dumb question. I did try finding the answer before posting, but I was not successful. I installed gsp..... More

Print this item

  Using QSyntaxHighlighter to query a documents format
Posted by: DrakeSoft - Sep-29-2022, 08:13 PM - Forum: GUI - Replies (7)

The documentation for QSyntaxHighlighter Class indicates that the QSyntaxHighlighter class allows you to define syntax highlighting rules, and in addi..... More

Print this item

  A couple of questions
Posted by: Led_Zeppelin - Sep-29-2022, 02:58 PM - Forum: General Coding Help - Replies (1)

I have a few questions about my next step in the analysis. I have attached the page in question which moves label data 10 steps ahead. Since the data ..... More


Attached Files

.pdf   attachment.pdf (Size: 97.27 KB / Downloads: 293)
Print this item

  how to add a new column to dataframe using pandas
Posted by: truffleoil - Sep-29-2022, 12:47 PM - Forum: News and Discussions - No Replies

My script below is returning the error 'NoneType' and i can't figure out why.

[python]import pandas as pd
from os import listdir
from os.path imp..... More

Print this item

  python transfer Sql table to csv using BCP
Posted by: mg24 - Sep-29-2022, 12:07 PM - Forum: General Coding Help - Replies (2)

Hi Team,

I am using below code for transfering data to CSV File,
code is working , But headers are missing .

can you please suggest ho..... More

Print this item

  Video in Canvas
Posted by: finndude - Sep-29-2022, 10:33 AM - Forum: GUI - Replies (6)

Hi, just wanted to know if its possible to play a video in canvas with tkinter?

Print this item

  What is the error of not being able to pull data in this code? i didn't see an error?
Posted by: TestPerson - Sep-29-2022, 09:42 AM - Forum: Web Scraping & Web Development - Replies (2)

[python]import json
import time
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from time import sleep

seleniumCh..... More

Print this item

  Beginner Higher Lower Game
Posted by: wallytan - Sep-29-2022, 03:09 AM - Forum: General Coding Help - Replies (2)

I am trying this beginner project of Higher Lower game. I pretty much got already 99% of the game's logic. The only thing I couldn't figure out is to ..... More

Print this item

  what type of exception to use?
Posted by: Skaperen - Sep-28-2022, 10:56 PM - Forum: General Coding Help - Replies (3)

i have a function that uses some keyword arguments. two of the keyword arguments cannot be used in the same call and if so the function will raise an..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 11 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [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
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578682
  Tutorial Requ... 509110
  Web Scraping ... 441840
  Newbie with P... 385791
  New Users Int... 375048
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 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
alexmaarley8855 Yesterday
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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