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 33 online users.
» 0 Member(s) | 30 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

 
  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: 252)
.py   Settings.py (Size: 105 bytes / Downloads: 250)
.py   Sprite.py (Size: 414 bytes / Downloads: 273) 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

  Many iterations for loop question
Posted by: adesimone - Nov-12-2022, 12:49 AM - Forum: Homework - Replies (9)

Hi all,

I am trying to write a for loop that will iterate through 10 items in the Twaterout list, subtract those from the first item in Tairout, an..... More


Attached Files

.py   pythonforum.py (Size: 4.35 KB / Downloads: 342)
Print this item

  python get filename
Posted by: mg24 - Nov-11-2022, 10:36 PM - Forum: General Coding Help - Replies (2)

Hi Team,

I want to extract filename without extension. I know below methods
any other way of getting same output.
expected abc

[python]
fname..... More

Print this item

  python difference between sys.exit and exit()
Posted by: mg24 - Nov-11-2022, 09:38 PM - Forum: General Coding Help - Replies (1)

Hi Team,

In my project I used try except block ,
if exception occured I used sys.exit()

I saw exit() in someones code ,

[python]
when to ..... More

Print this item

  python manage variables across project level
Posted by: mg24 - Nov-11-2022, 09:20 PM - Forum: General Coding Help - Replies (1)

Hi Team,

how to manage variables which can be used in project level, instead of passing all variables from main def

In my project I am using to..... More

Print this item

  Visual Studio Code venv ibm_db error
Posted by: mesi1000 - Nov-11-2022, 08:14 PM - Forum: General Coding Help - Replies (7)

Visual Studio Code venv does not allow to pip install ibm_db ( Python 3.7.9)
whereas PyCharm venv allows and then work properlly for the same Python ..... More

Print this item

  How to output one value per request of the CSV and print it in another func?
Posted by: Student44 - Nov-11-2022, 03:33 PM - Forum: General Coding Help - Replies (3)

Can You please tell me how to do. The first function needs to read USERNAME column from csv file to output one value per request and the second functi..... More

Print this item

Question Simulate an answer based on user input [Beginner needs guidance]
Posted by: Bombardini - Nov-11-2022, 03:24 PM - Forum: Homework - Replies (1)

I'm a complete beginner looking for advice/guidance. Basically I want to build a program that simulates a suggestion based on existing probabilities a..... 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