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

Full Statistics

Online Users
There are currently 36 online users.
» 0 Member(s) | 33 Guest(s)
Applebot, Bing

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
8 hours ago
» Replies: 3
» Views: 79
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
10 hours ago
» Replies: 3
» Views: 92
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 07:29 PM
» Replies: 0
» Views: 66
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:59 AM
» Replies: 3
» Views: 98
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Yesterday, 09:09 AM
» Replies: 452
» Views: 375,040
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Yesterday, 06:07 AM
» Replies: 2
» Views: 3,362
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: 182
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,194
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,438

 
  BCP Export sql data to csv
Posted by: mg24 - Nov-19-2022, 05:16 PM - Forum: General Coding Help - Replies (2)

Hi Team,

I found below code on google, while searching for BCP Export with header.

-h-1 ------ this removes header as per their explanation, Bu..... More

Print this item

  Python Scripting Environment
Posted by: jpotter0 - Nov-19-2022, 12:09 PM - Forum: General Coding Help - Replies (1)

Two or so years ago I wrote a Python Program for ANSYS scripting that had the following code snippet in it:
[python]
import ScriptEnv
ScriptEnv.Ini..... More

Print this item

  Old style TIF compression
Posted by: DPaul - Nov-19-2022, 11:01 AM - Forum: Bar - Replies (2)

Hi,
I have come across a huge batch of tifs, scanned a long time ago.
When opened in the normal fashion with PIL:
[python]img = Image.open(scanPath)[/..... More

Print this item

  Check DataFrames with different sorting in columns and rows
Posted by: Foxyskippy - Nov-19-2022, 07:49 AM - Forum: General Coding Help - No Replies

Hi,

I got multiple excel file which needs to be need if OLD data is matching NEW data. Normally I use dataframe.equals but since the NEW data is co..... More


Attached Files

.xlsx   AA_Table002.xlsx (Size: 15.61 KB / Downloads: 261)
.xlsx   AA_Table001.xlsx (Size: 14.71 KB / Downloads: 317)
Print this item

  Python with C
Posted by: Skaperen - Nov-19-2022, 03:25 AM - Forum: News and Discussions - Replies (3)

i want to get started writing some code that involves C. one aspect i want to ask those here that mix Python and C. is it preferred to have C coded ..... More

Print this item

  How to remove patterns of characters from text
Posted by: aaander - Nov-19-2022, 02:16 AM - Forum: General Coding Help - Replies (4)

I'm still in the learning process with Python, I need to delete each iteration of "%", and the two characters that follow it, which should be alphanum..... More

Print this item

Question log.exception() without arguments in old Python versions?
Posted by: cthart - Nov-18-2022, 09:16 PM - Forum: General Coding Help - Replies (5)

I have inherited some very old Python code:

import logging
_log = logging.getLogger('blah')
and later:

[python]
try:
..... More

Print this item

  which design / pattern when building classes and subclasses
Posted by: Phaze90 - Nov-18-2022, 08:53 PM - Forum: General Coding Help - Replies (2)

I need to build a mother-child-like class tree.

Dont know which is the best practice how to structure it.

I could define a top-level class A whi..... More

Print this item

Photo String comparison in a csv file in Python Pandas
Posted by: fleafy - Nov-18-2022, 08:05 PM - Forum: General Coding Help - Replies (2)

I am currently working on a huge csv file which I need to select a row and compare it with every other row. Which then should return me how much of th..... More

Print this item

  QGridLayout, QProgressBar bar fills widgets shrink
Posted by: malonn - Nov-18-2022, 07:54 PM - Forum: GUI - Replies (5)

I have a QGridLayout with some QLabels and QLineEdits and a QProgressBar. As the progress bar fills, the QLineEdits shrink. What's up with that. Co..... More

Print this item

  python sql query single quote in a string
Posted by: mg24 - Nov-18-2022, 07:40 PM - Forum: General Coding Help - Replies (1)

Hi Team,

I am extracting sql table data via python , while extracting data , portfolio contains single quote in its records.


hence my second ..... More

Print this item

  command require close window
Posted by: Krissstian - Nov-18-2022, 06:49 PM - Forum: GUI - Replies (14)

Hi,
I have defined a command for a button wich terminates like this:

[python] # save map data to data object
data = io.BytesI..... More

Print this item

  Reading large crapy text file in anaconda to profile data
Posted by: syamatunuguntla - Nov-18-2022, 06:15 PM - Forum: Data Science - No Replies

Hello,

I am new to python and learning on my own pace. i have a large text file with over 200 columns and few million rows. i am trying to profile ..... More

Print this item

  Command error - cursor.executemany(comandoSQL,valoresInserir)
Posted by: TecInfo - Nov-18-2022, 01:05 PM - Forum: General Coding Help - Replies (2)

Good morning,
I'm developing a program that records data coming from JSON in the MySQL database, but it's generating the following error.
[error]
T..... More

Print this item

  Attempting to read keyboard outside of console
Posted by: Jimmy998 - Nov-18-2022, 12:16 PM - Forum: General Coding Help - Replies (5)

You know the input function? where you store a string into a variable? Yeah, I don't need that, for at least that does not benefit me.

My attempt ..... More

Print this item

  pycharm debug help
Posted by: mg24 - Nov-18-2022, 03:15 AM - Forum: General Coding Help - Replies (1)

Hi Team,

how to debug in pycharm ?
in a situation where I am accepting input value via command line argument.

But when I run python script via comma..... More

Print this item

  Need to match two words in a line
Posted by: tester_V - Nov-18-2022, 12:28 AM - Forum: General Coding Help - Replies (2)

Good evening!
I'm trying to match two words and the "(" in a line.
these are" FAILED (Exit ", there is a space before the FAILED and after the Exit..... More

Print this item

  Python code a Max7219/7221 7 segment driver
Posted by: Aggie64 - Nov-17-2022, 10:31 PM - Forum: General Coding Help - Replies (11)

I am trying to use Pythons 3 SPI code to write directly to a MAX7219/7221 seven segment driver. I have written the code and connected a MAX7219 to my..... More

Print this item

  Help with list homework
Posted by: eyal123 - Nov-17-2022, 08:40 PM - Forum: Homework - Replies (5)

I have a list that compared from 3 lists that compered from 0,1,2
like that:
[python][
[0, 0, 2, 2, 0, 1, 1],
[1, 0, 0, 0, 1, 0, 0],
..... More

Print this item

  Replace columns indexes reading a XSLX file
Posted by: Larry1888 - Nov-17-2022, 04:53 PM - Forum: General Coding Help - Replies (2)

Hi all!

I am trying to make my code read certain indexes of an excel file depending on the type of configuration it has in the database, for exampl..... More

Print this item

  New2Python: Help with Importing/Mapping Image Src to Image Code in File
Posted by: CluelessITguy - Nov-17-2022, 04:46 PM - Forum: General Coding Help - No Replies

I am creating an item catalogue of our products and need to import the item images besides their product codes'. The Image Code in the file is the sam..... More


Attached Files

Thumbnail(s)
   
Print this item

  PDF file split and copy
Posted by: rob101 - Nov-17-2022, 02:20 PM - Forum: Code sharing - No Replies

Mostly in the interests of learning, but also for a practical application, I've been looking for a way to copy pages from a PDF file and write said pa..... More

Print this item

  python multiprocessing help -- to extract 10 sql table into csv
Posted by: mg24 - Nov-17-2022, 08:23 AM - Forum: General Coding Help - Replies (3)

Hi Team,

Need your help in improving my existing code using multithreading or multiprocessing as per below situation.

I have 10 sql tables in a ..... More

Print this item

  Print the line before the corrent line
Posted by: tester_V - Nov-16-2022, 08:30 PM - Forum: General Coding Help - Replies (9)

Greetings!
I'm searching lines for two words "PASSED" and "FAILED"
I need to get the line before "PASSED" and the "FAILED" line.
I'm definitely doi..... More

Print this item

  String to Number in Python
Posted by: Godjuned - Nov-16-2022, 06:36 PM - Forum: Homework - Replies (3)

Number: positive, up to billion (10 digits)

Example 1:
Input : I bought twenty three packs of bread
Output : I bought 23 packs of bread

Exampl..... More

Print this item

  [SOLVED] [Linux] Script in cron stops after first run in loop
Posted by: Winfried - Nov-16-2022, 05:35 PM - Forum: General Coding Help - Replies (2)

Hello,

For some reason, the following Python script that runs every hour through cron stops after the first run in the loop after downloading the R..... More

Print this item

  Problem : IndexError...
Posted by: JohnnyCoffee - Nov-16-2022, 03:52 PM - Forum: General Coding Help - Replies (5)

I'm capturing a string (url) where the array will be assembled at runtime, but I'm facing the following error ( IndexError: list index out of range ),..... More

Print this item

  [SOLVED] [Debian] UnicodeEncodeError: 'ascii' codec
Posted by: Winfried - Nov-16-2022, 10:21 AM - Forum: General Coding Help - Replies (1)

Helllo,

I get this error when running a script on a Debian 11 host (Python 3.5.3), apparently because the web site I call through requests() return..... More

Print this item

  [SOLVED] Alternative to regex to extract date from whole timestamp?
Posted by: Winfried - Nov-16-2022, 08:41 AM - Forum: General Coding Help - Replies (6)

Hello,

Python being such a rich language, I was wondering if it provides a ready-to-use function to extract juste the date from a whole timestamp i..... More

Print this item

  call query telebot
Posted by: lolita7777 - Nov-16-2022, 07:54 AM - Forum: General Coding Help - Replies (1)

There are 3 functions:

send_docs_shop1()
send_docs_shop2()
send_docs_shop3()

How to call them depending on callback_query. For example if call..... More

Print this item

  flask.cli.NoAppException: Could not import 'app'
Posted by: kazu755 - Nov-16-2022, 06:59 AM - Forum: Web Scraping & Web Development - Replies (4)

Background
I am currently making flask-based application with Python but fatal error shown in the title occurs. I searched ..... More

Print this item

  Multiprocessing Pool Multiple Instances How to Kill by Pool ID
Posted by: sunny9495 - Nov-16-2022, 05:57 AM - Forum: General Coding Help - No Replies

Hi,

Iam working multiple multiprocessing pool which was working fine, but the main issue is, how i can kill only particular pool.

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

Print this item

  Keyboard for coding (and general use)
Posted by: rob101 - Nov-15-2022, 08:18 PM - Forum: Bar - Replies (1)

Although I have four computers on the go at any one time (one for my music and such, a server for obvious reasons, and one that displays some 'market'..... More

Print this item

  How to find PyWin32 for Python 2.1.3
Posted by: Paul_Newton - Nov-15-2022, 06:22 PM - Forum: General Coding Help - Replies (9)

Please don't ask why I would want to install such an old version of Python, but I have Python 2.3.1 installed anyway. Now I am looking for the corres..... More

Print this item

  music for learning/programming
Posted by: astral_travel - Nov-15-2022, 06:22 PM - Forum: Bar - Replies (9)

hey,
is there some good music on youtube that you can share here that is good for learning and/or programming ?

of course there is a mix list of w..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 8 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 10 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 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... 578681
  Tutorial Requ... 509084
  Web Scraping ... 441836
  Newbie with P... 385787
  New Users Int... 375040
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
Cristiano Today
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday

User Panel Messages

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