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,488
» Latest member: Luis_Rivera
» Forum threads: 38,579
» Forum posts: 174,814

Full Statistics

Online Users
There are currently 717 online users.
» 1 Member(s) | 710 Guest(s)
Bing, Google, Apple, Yandex, Baidu, coder19

Latest Threads
How can I write formatted...
Forum: General Coding Help
Last Post: hanmen9527
Yesterday, 12:26 PM
» Replies: 13
» Views: 28,743
problems with netcdf if I...
Forum: General Coding Help
Last Post: vytlacfoto
Yesterday, 05:31 AM
» Replies: 17
» Views: 1,414
How to attach images to a...
Forum: Board
Last Post: sethmike9
May-19-2025, 04:08 AM
» Replies: 6
» Views: 8,895
How To Attach data Files
Forum: Board
Last Post: sethmike9
May-19-2025, 04:05 AM
» Replies: 3
» Views: 4,156
Text frame
Forum: Homework
Last Post: Pedroski55
May-18-2025, 07:39 PM
» Replies: 2
» Views: 401
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
May-18-2025, 06:28 PM
» Replies: 0
» Views: 200
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 311
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 250
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,422
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 183

 
  [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

  the term arguments
Posted by: astral_travel - Nov-15-2022, 06:17 PM - Forum: News and Discussions - Replies (25)

hey,
why is the given term of "arguments" is signifying both when 'people fight verbally' and 'parameters',
is there a connection between the two ?..... More

Print this item

  If statement not working correctly?
Posted by: MrKnd94 - Nov-15-2022, 04:58 PM - Forum: General Coding Help - Replies (2)

Hello.

I'm sorry to bother you all, but I'm having trouble with the While loop, and the Quit function. I've tried it before, but I didn't get it to..... More

Print this item

  Find (each) element from a list in a file
Posted by: tester_V - Nov-15-2022, 05:44 AM - Forum: General Coding Help - Replies (3)

Greetings!
I want to scan a .csv file, find cells with dates, and create a list of dates.
then I'd like to check the same file and find strings that..... More

Print this item

  how to write exception error into logger
Posted by: mg24 - Nov-15-2022, 04:09 AM - Forum: General Coding Help - Replies (3)

Hi Team,

I am unable to write error message into logger my logger file.

I am generating error , I can print that error.
I cannot write that err..... More

Print this item

  python standard way of importing library
Posted by: mg24 - Nov-15-2022, 01:30 AM - Forum: General Coding Help - Replies (1)

Hi Team,
What is industrial standard way of importing library ,
my colleague suggested below.

1)standard,
2) third party,
3) local modules

[..... More

Print this item

  python create function validation
Posted by: mg24 - Nov-15-2022, 12:22 AM - Forum: General Coding Help - Replies (1)

Hi Team,

how to create separate function for validating command line arguments in another module
and import the same in main module


[Python]..... More

Print this item

Brick [SOLVED] Password generation UnboundLocalError exception
Posted by: Milan - Nov-14-2022, 05:51 PM - Forum: GUI - Replies (3)

Hello team,

I have the following code:

[python]from tkinter import *
import random
import string

random_string = string.ascii_letters + str..... More

Print this item

  from numpy array to csv - rounding
Posted by: SchroedingersLion - Nov-14-2022, 05:33 PM - Forum: General Coding Help - Replies (6)

Greetings,

I have a 2D numpy array

ARR
storing a bunch of floats. I want to print it row by row to a .csv file, but rounded to 3 sig..... More

Print this item

Smile How to further boost the data read write speed using pandas
Posted by: tjk9501 - Nov-14-2022, 01:34 PM - Forum: Data Science - Replies (1)

Hello!

I am using Cupy module to speed up linear algebra calculations using NVIDIA GPU, and after the calculation I need to retrive calculated resu..... More

Print this item

  email Library: properly send message as quoted-printable
Posted by: malonn - Nov-14-2022, 11:13 AM - Forum: General Coding Help - Replies (3)

I am struggling to get email clients to properly render HTML messages. I believe it is a result of the content transfer encoding. I've tried several..... More

Print this item

  Pandas CSV Issues
Posted by: rmfooty - Nov-14-2022, 10:09 AM - Forum: Data Science - Replies (2)

Hi all, and thank you for your help in advance.

I am experiencing a strange issue with Pandas. I have a program that reads an entire CSV into a dat..... More

Print this item

  How to run together python3.10 and python3.7
Posted by: ilknurg - Nov-14-2022, 08:58 AM - Forum: General Coding Help - Replies (2)

Hi everyone. I have a code which is written with python3.7
Because of python3.7 doesnt have switch-case I wrote another code script with python3.10..... More

Print this item

  Requests_HTML not getting all data on Amazon
Posted by: aaander - Nov-14-2022, 12:47 AM - Forum: Web Scraping & Web Development - Replies (1)

I'm working on a review scraper, and I'm troubleshooting some code to get proof of concept that what I want can be done in requests_HTML. I am runnin..... More

Print this item

  WMI error
Posted by: cosmin1805 - Nov-13-2022, 03:47 PM - Forum: General Coding Help - Replies (3)

Hi, I am trying to run this thing to get the CPU temperature(I got it from youtube but I am open to other suggestions that work on WINDOWS) and I get ..... More

Print this item

  My ship is not moving(
Posted by: Like_begginer - Nov-13-2022, 09:29 AM - Forum: Homework - Replies (3)


.py   Rocketboom.py (Size: 1.44 KB / Downloads: 222)
.py   Settings.py (Size: 105 bytes / Downloads: 218)
.py   Sprite.py (Size: 414 bytes / Downloads: 248) my rocket on my screen but i don't understood why it is not working

Print this item

  CRLF vs CR vs LF in encode/decode
Posted by: Skaperen - Nov-13-2022, 01:57 AM - Forum: News and Discussions - No Replies

can/do encode() or decode() do any translation of CRLF or CR or LF ?

Print this item

  question about if __name__=="__main__"
Posted by: aaander - Nov-13-2022, 12:07 AM - Forum: General Coding Help - Replies (6)

I am working on a scraper, I've made the class, and written the driver under if __name__ == '__main__': My question is, and sorry if it's basic, I'm ..... More

Print this item

  im not sure what ive done wrong code doesnt run
Posted by: dgizzly - Nov-12-2022, 11:19 PM - Forum: Homework - Replies (3)

[python]def main():
again='y'
while again=='y' or again=='Y':
try:
key=('A', 'C', 'A', 'B', 'B', 'D', 'D', 'A', 'C', '..... More

Print this item

  Remove numbers from a list
Posted by: menator01 - Nov-12-2022, 08:34 PM - Forum: General Coding Help - Replies (4)

I've been working a problem in another forum and ran across something I don't understand.
Giving a list of numbers as input and then removing the num..... More

Print this item

  Help with Morpholib?
Posted by: Drachenbauer - Nov-12-2022, 07:59 PM - Forum: General Coding Help - Replies (2)

This Youtuber:
Morphocular
says, he has made his math animations with thi..... More


Attached Files

Thumbnail(s)
   
Print this item

  Need Help! Pandas EXCEL PIVOT
Posted by: psb3958 - Nov-12-2022, 07:53 PM - Forum: General Coding Help - Replies (1)

I want to sort column 'PERIOD_START_TIME' from new date to old date.
[python]
df_pivot = pd.pivot_table (df, values = 'NTM NR RET NSA SN Total Drops..... More


Attached Files

Thumbnail(s)
   
Print this item

  first function
Posted by: astral_travel - Nov-12-2022, 06:49 PM - Forum: General Coding Help - Replies (36)

i wrote the following code:

[python]
while True:
howMany = int(input("how many numbers do you want ?"))

def fibo():
a = 0
..... More

Print this item

  Os.system("shutdown"); command not found
Posted by: cosmin1805 - Nov-12-2022, 11:43 AM - Forum: General Coding Help - Replies (4)

Hi, I am trying to shutdown my Linux mint computer via a python script, but I get a command not found error.
[python]os.system("shutdown now")[/pytho..... More

Print this item

  math (stats) question
Posted by: DPaul - Nov-12-2022, 08:12 AM - Forum: Bar - Replies (2)

Hi,
We processed our first batch of 25.000 prayer cards. Awesome!
But: the quality of the result depends on a lot of factors,
probably the most impor..... More

Print this item

  help me simple code result min and max number
Posted by: abrahimusmaximus - Nov-12-2022, 04:45 AM - Forum: General Coding Help - Replies (2)

I have the following code:

[python]
largest = None
smallest = None
while True:
num = input('enter a num ')
if num == "done":
..... More


Attached Files

Thumbnail(s)
   
Print this item

  Failing to print sorted files
Posted by: tester_V - Nov-12-2022, 04:05 AM - Forum: General Coding Help - Replies (4)

Greetings!
I'm trying to sort files in a directory by the timestamp.
I got this snipped from the internet and if I specify the directory the snipped..... More

Print this item

  How to conditionally execute correctly?
Posted by: lolita7777 - Nov-12-2022, 03:15 AM - Forum: General Coding Help - Replies (5)

[python]@bot.message_handler(commands=['start'])
def get_filial(message: types.Message):

markup_inline_filial=types.InlineKeyboardMarkup()
..... More

Print this item

  python raw string help
Posted by: mg24 - Nov-12-2022, 01:45 AM - Forum: General Coding Help - Replies (1)

Hi Team,

Can we use r as raw string for variable folder_path.
because user is passing folderpath via command line.



Path(r'E:\data\transport..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How can I write formatted... Yesterday, 12:26 JohnJSal hanmen9527 General Codin...
  problems with netcdf if I... Yesterday, 05:31 Blaubart vytlacfoto General Codin...
  How to attach images to a... 05-19, 04:08 CynthiaMoore sethmike9 Board
  How To Attach data Files 05-19, 04:05 Talch sethmike9 Board
  Text frame 05-18, 19:39 dnabtuh Pedroski55 Homework
  Python automation: Sendin... 05-18, 18:28 olips784 olips784 General Codin...
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
Most views
  The best Prog... 566210
  Tutorial Requ... 460023
  Web Scraping ... 431124
  Newbie with P... 368086
  Thread remain... 340267
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Luis_Rivera Yesterday
hanmen9527 Yesterday
zacharystone Yesterday
DaddyMAN Yesterday
rouzbehrasai1984 Yesterday

User Panel Messages

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