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: lary_p
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

Online Users
There are currently 48 online users.
» 0 Member(s) | 43 Guest(s)
Bing, Apple, AOL, Google

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

 
  Dictionary Problem
Posted by: Chief816 - Apr-23-2023, 01:31 AM - Forum: Homework - Replies (4)

I'm trying to write a program that keeps a running total of a "customer's" total as they input items off a menu, which in this case happens to be my d..... More

Print this item

  Print names in x-axis of a time-series values
Posted by: hobbyist - Apr-22-2023, 03:01 PM - Forum: General Coding Help - Replies (4)

Hello, I have a .csv that has 2 columns. The first column contains timestamps and the second column CO2 measurements. What I want to do is to plot the..... More

Print this item

  Beginner, problem with CS50 vanity plates problem
Posted by: Chief816 - Apr-22-2023, 05:04 AM - Forum: Homework - Replies (3)

I am brand new to coding in general, and have recently started taking up python courses. For one assignment, the task is to create a program which det..... More

Print this item

  Help on Monte Carlo Simulation of temperature relaxation of He-Ar mixture
Posted by: jorvz - Apr-21-2023, 04:57 PM - Forum: Data Science - Replies (1)

Hey, so i`ve been working on this code for a while for my research but it just doesn't seem to work well, i think it is misscalculating in some step, ..... More

Print this item

  Non repetitive mouse click
Posted by: Sartre - Apr-21-2023, 04:12 PM - Forum: General Coding Help - Replies (5)

I am writing a game bot as part of my learning process. The code I am writing requires a single mouse click to be performed at the start of the code b..... More

Print this item

Question UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 562: ord
Posted by: ctrldan - Apr-21-2023, 03:58 PM - Forum: General Coding Help - Replies (23)

I admit that I'm not an expert of python, I'm working in a python version 2.6.6 (for compatibility with command like unicode). I explain why I use thi..... More

Print this item

  Socks 5 Proxy Server For UDP ASSOCIATE
Posted by: ankit - Apr-21-2023, 12:18 PM - Forum: Networking - Replies (2)

I want Help in Developing Socks5 Based Proxy Server For TCP and UDP Support.
I am able to build it for TCP but facing issue for UDP....

Print this item

  How do I get a slug from a url?
Posted by: Stas43 - Apr-21-2023, 10:56 AM - Forum: Web Scraping & Web Development - Replies (3)

How do I get a slug from a url?
Example:... com/page1/
In my case - page1 is a slug and I want to get it in a template for different operations

Print this item

  Why Pip is not listed in the official Global Python Module index?
Posted by: quazirfan - Apr-21-2023, 06:13 AM - Forum: General Coding Help - Replies (2)

Pip comes built in with Python. That's why I was surprised to see pip not listed in the global module index[1] on official Python documentation.

Why ..... More

Print this item

  Using a String var as URL in Requests.get( )
Posted by: DBB - Apr-20-2023, 11:50 PM - Forum: General Coding Help - Replies (3)

New to python so forgive me...

I have an external .csv file containing several lines, each one of which is a fully formed URL, having user n..... More

Print this item

  quiz game - problem with loading statements from file
Posted by: lapiduch - Apr-20-2023, 01:20 PM - Forum: Homework - Replies (2)

Hello, I'm trying to create a simple myth/fact quiz using tkinter. The game should be for two players - the player who presses the key first (the red ..... More


Attached Files

.txt   fakt_mytus.txt (Size: 340 bytes / Downloads: 228)
.py   1_kolo_anj.py (Size: 2.69 KB / Downloads: 272)
Print this item

  Interfacing from Python to GUI
Posted by: HMartins - Apr-20-2023, 10:26 AM - Forum: General Coding Help - Replies (7)

Hi.

I have written some Python code and is works OK. I now need to, say, interface it better with the user, myself Wink

I got QT Designer a..... More

Print this item

  Working with Machine Learning accelerators
Posted by: hobbyist - Apr-19-2023, 08:38 PM - Forum: Bar - Replies (1)

Can I run Ubuntu on this: https://tinker-board.asus.com/product/ti...dge-r.html and execute python scripts? Like Machine Learning code? Has anyone ..... More

Print this item

  ValueError - Formatting issue when values enter thousands
Posted by: phillyfa - Apr-19-2023, 08:37 PM - Forum: General Coding Help - Replies (4)

I am using the following code to retrieve costs from an Azure subscription. The 'Cost (USD)' data is returning a ValueError when the cost is in the t..... More

Print this item

  code problems
Posted by: bbm007 - Apr-19-2023, 08:27 PM - Forum: General Coding Help - Replies (5)

I have been having problems making a quadratic calculator I'm almost there but the formula at the end is an error and I can't seem to fix it help woul..... More

Print this item

  Nan values after merging 2 dataframes
Posted by: EmBeck87 - Apr-19-2023, 02:01 PM - Forum: General Coding Help - Replies (1)

Hello, I have two pandas dataframes that merged correctly using the "left on = " ", right on =" " method, but after the merge, some of my values in on..... More

Print this item

  I keep getting the same error over and over again.
Posted by: SuchUmami - Apr-19-2023, 12:00 PM - Forum: General Coding Help - Replies (11)

Hello. I am trying to write a trading algorithm for kraken's crypto exchange. I keep getting an error where it says "result"; here is an example:

I..... More

Print this item

  How to set up uwsgi and nginx?
Posted by: Stas43 - Apr-19-2023, 11:10 AM - Forum: Web Scraping & Web Development - Replies (2)

(sorry for the Google translator)

os Ubuntu 20.04 lts server x64

What is done:
mkdir django & cd django
. env/bin/activate
test project djang..... More

Print this item

  Converting timestamp like 2023-04-18T20:00:10.000Z to 20230418200010
Posted by: bigcat - Apr-19-2023, 08:16 AM - Forum: General Coding Help - Replies (2)

Hi,

how to convert a timestamp like 2023-04-18T20:00:10.000Z to 20230418200010 ?

Thanks in advance,
Regards,
Den.

Print this item

  ctypes
Posted by: juliolop - Apr-18-2023, 08:31 PM - Forum: General Coding Help - Replies (7)

how can I declare using ctypes where my DLL file is located.?

this line gives me an error
OSError: [WinError 193] %1 is not a valid Win32 applicat..... More

Print this item

  Adding MIDI Channels to each Input
Posted by: zach1234 - Apr-18-2023, 06:38 PM - Forum: General Coding Help - Replies (6)

Hi Guys, apologies as i am a complete beginner.

I downloaded this python script to map my midi controller to Ableton Live. I am having a problem w..... More


Attached Files

.zip   MixTrack_Quad.zip (Size: 39.29 KB / Downloads: 359)
Print this item

  Print confusion matrix
Posted by: MrSonoa - Apr-18-2023, 03:53 PM - Forum: General Coding Help - Replies (1)

hi, I have tried my best to output the confusion matrix. but it didn't work either. I don't know what coding can produce the output for the confusion ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Unexpected output from df.loc when indexing by label
Posted by: idratherbecoding - Apr-18-2023, 01:57 AM - Forum: General Coding Help - Replies (6)

I am back again with another pandas question. I am getting some unexpected output from df.loc. As part of a larger project, I broke my problem out int..... More

Print this item

  Turtle Detection
Posted by: ChinaPlaneFlyer - Apr-17-2023, 02:22 PM - Forum: General Coding Help - Replies (1)

Hi! I'm a new member here on the forum. I was trying to make a turtle tag game and I was trying to find if the first turtle, p1, is touching the secon..... More

Print this item

  Trouble with threading and reading variable from a different script
Posted by: Lembas - Apr-17-2023, 01:59 PM - Forum: General Coding Help - Replies (14)

Hi.
As a learning exercise I decided to write a simple pixel bot for a game. It consists of 3 modules that I would like to run at the same time:
Walk..... More

Print this item

  which is faster?
Posted by: Skaperen - Apr-17-2023, 12:11 AM - Forum: News and Discussions - Replies (5)

which is faster when arg1 is None?

code 1:

def fun1(arg1,arg2):
    if arg1 is None:
        return None
    . . .
code..... More

Print this item

  '' FTP '' File upload with a specified string and rename
Posted by: midomarc - Apr-17-2023, 12:05 AM - Forum: General Coding Help - Replies (1)

Transfer a file in Local folder to a folder in FTP server and rename

I need to upload a file start with a specified string (0001) to an FTP..... More

Print this item

  ESPNow on Andriod Python
Posted by: xytsrm - Apr-16-2023, 07:08 PM - Forum: Networking - Replies (2)

Is anyone aware of an Android Python package created to interact with the ESPNow peer-to-peer networking protocol used on Espressif devices?

Thanks..... More

Print this item

Sad Help solving an exercise?
Posted by: darioco - Apr-16-2023, 06:49 PM - Forum: Homework - Replies (3)

hey all,
I'm struggling in solving an exercise of my python introduction course. I leave the problem in the attachments. I'm really at the beginning ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Embedding python script into html via pyscript
Posted by: pyscript_dude - Apr-16-2023, 12:03 PM - Forum: General Coding Help - Replies (7)

Hi everyone,
I want to embed a python script into an html page by using pyscript. What I am trying is giving a sequence of integers as "1,2,3,4,5,6" a..... More

Print this item

  Inferring background code.
Posted by: quazirfan - Apr-15-2023, 10:34 PM - Forum: General Coding Help - Replies (5)

Given an object instantiation and invocation, can I broadly say the following?

Given the following two lines of code,
[python]
test = Test()
tes..... More

Print this item

  cx_oracle Error - AttributeError: 'function' object has no attribute 'cursor'
Posted by: birajdarmm - Apr-15-2023, 11:59 AM - Forum: General Coding Help - Replies (1)

Hi,

I am creating a code which would export data from multiple tables in oracle to one excel file having each sheet as one tbale export. I have cre..... More

Print this item

  I downloaded a script and I cant run this
Posted by: luoxr18 - Apr-15-2023, 09:19 AM - Forum: General Coding Help - Replies (3)

Hi, I’m a newbee to programming (and not a native speaker), recently I download a script from hugging face, and strictly follow every steps. (CiaraRow..... More

Print this item

  Finding a way to avoid loops use
Posted by: paul18fr - Apr-15-2023, 09:01 AM - Forum: Data Science - Replies (6)

Hi

Using loops is a bottleneck in term of performance; I’m often facing such issue, I’m not satisfied by the current code and I’m still looking for..... More

Print this item

  How to fix With n_samples=0, test_size=0.2 and train_size=None, the resulting train s
Posted by: MrSonoa - Apr-15-2023, 04:51 AM - Forum: General Coding Help - Replies (2)

I wrote a text classification program. When I run the program have error. How to fix it?

[python]

input_shape = (128, 128, 3)
data_dir = '/cont..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 9 hours ago Alfredd Pedroski55 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... 578699
  Tutorial Requ... 509191
  Web Scraping ... 441846
  Newbie with P... 385798
  New Users Int... 375100
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
lary_p Today
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