Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,706
» Latest member: tomashlabel
» Forum threads: 37,424
» Forum posts: 170,053

Full Statistics

Online Users
There are currently 490 online users.
» 0 Member(s) | 482 Guest(s)
Facebook, Bing, Baidu, Yandex, Apple, Google, AOL

Latest Threads
Flask role-based authoriz...
Forum: General Coding Help
Last Post: erdemath
4 hours ago
» Replies: 0
» Views: 64
Do regular expressions st...
Forum: General Coding Help
Last Post: rishika24
7 hours ago
» Replies: 3
» Views: 139
Calculating Average with ...
Forum: General Coding Help
Last Post: mikasa
7 hours ago
» Replies: 0
» Views: 63
Connecting to Remote Serv...
Forum: General Coding Help
Last Post: Pedroski55
9 hours ago
» Replies: 1
» Views: 120
World Clock syntax error
Forum: General Coding Help
Last Post: snippsat
11 hours ago
» Replies: 1
» Views: 94
How to solve this problem...
Forum: Homework
Last Post: roryelila68
Today, 02:16 AM
» Replies: 6
» Views: 544
Equivalent Python code fr...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 10:17 PM
» Replies: 4
» Views: 925
questions about storage
Forum: Game Development
Last Post: PhantomMouse
Yesterday, 09:02 PM
» Replies: 0
» Views: 80
Filer and sort files by m...
Forum: General Coding Help
Last Post: tester_V
Yesterday, 05:39 PM
» Replies: 6
» Views: 192
two functions working in...
Forum: General Coding Help
Last Post: zapad
Yesterday, 01:35 PM
» Replies: 2
» Views: 168

 
  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: 93)
.py   1_kolo_anj.py (Size: 2.69 KB / Downloads: 114)
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: 99)
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

  New with Python. Help with a code
Posted by: jasonkeller1970 - Apr-14-2023, 05:43 PM - Forum: General Coding Help - Replies (13)

Hi,
I just registered in this site because I would like to know if it is possible to solve this problem with a simple Python code.
I'm not into prog..... More

Print this item

  appending 50 values in a row
Posted by: Naomisaka - Apr-14-2023, 11:17 AM - Forum: General Coding Help - No Replies

Hello, I hope this is a quick fix for the pros!

I'm working in Touchdesigner and I'm trying to append all 50 values from row 0:50 from an operator ..... More


Attached Files

Thumbnail(s)
   
Print this item

  logger behaviour
Posted by: setdetnet - Apr-14-2023, 08:48 AM - Forum: General Coding Help - Replies (1)

This setup in python 3.10 is not logging DEBUG to log file.
As in the last line....rootLogger.debug("debugging MantisMigrateAdditionalInfo.py")
Why..... More

Print this item

  event driven coding PyQt6 on Combobox change
Posted by: merrittr - Apr-14-2023, 01:55 AM - Forum: GUI - Replies (3)

I have the working code below running in a venv using python 3.7.6 what I want is when the Province combobox is changed have the stations combobox upd..... More


Attached Files

.py   HTTPListerProvincialQTEnv.py (Size: 2.54 KB / Downloads: 129)
Print this item

  notation
Posted by: MCL169 - Apr-14-2023, 01:49 AM - Forum: General Coding Help - Replies (8)

[python]
for line in lines: # str, '19260701,0.09,-0.22,-0.30,0.009\n'
curr_line = line.split() ..... More

Print this item

  scipy fftfreq parameters
Posted by: quest - Apr-14-2023, 12:11 AM - Forum: Data Science - Replies (1)

I am trying to get the fft of my pulse.
My total pulse duration is 1 microsecond and I have 100000 time slot in this pulse. So each interval correspon..... More

Print this item

  replacing dict contents
Posted by: Skaperen - Apr-13-2023, 10:25 PM - Forum: General Coding Help - Replies (6)

for a reference to a list, such as a global list, i can replace all the contents like this:
[python]
mylist[:] = newlist
[/pyt..... More

Print this item

  output provide the filename along with the input file processed.
Posted by: arjunaram - Apr-13-2023, 10:08 AM - Forum: General Coding Help - Replies (1)

Currently, i am processing all the input file column together and find missing column name from the table.

I am expecting to print the filename as ..... More

Print this item

  Modules
Posted by: GrahamLab - Apr-13-2023, 08:10 AM - Forum: General Coding Help - Replies (1)

Hi

I am fairly new to Python and modules in particualar

I have folder containing 2 files :
Configuration.py
HelixApi.py

COnfiguration..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Flask role-based authoriz... 4 hours ago erdemath erdemath General Codin...
  Do regular expressions st... 7 hours ago bobmon rishika24 General Codin...
  Calculating Average with ... 7 hours ago mikasa mikasa General Codin...
  Connecting to Remote Serv... 9 hours ago ChaitanyaSharma Pedroski55 General Codin...
  World Clock syntax error 11 hours ago OscarBoots snippsat General Codin...
  How to solve this problem... Today, 02:16 magomes roryelila68 Homework
  Equivalent Python code fr... Yesterday, 22:17 Mishal0488 DeaD_EyE General Codin...
  questions about storage Yesterday, 21:02 PhantomMouse PhantomMouse Game Developm...
  Filer and sort files by m... Yesterday, 17:39 tester_V tester_V General Codin...
  two functions working in... Yesterday, 13:35 zapad zapad General Codin...
  Button to +1 in text box ... Yesterday, 10:30 martyloo lillydalson GUI
Most views
  The best Prog... 427369
  Web Scraping ... 315701
  Tutorial Requ... 304785
  Newbie with P... 259270
  Thread remain... 243195
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11875
buran 8090
snippsat 7095
deanhystad 6232
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
tomashlabel Today
RAJIV Today
rishika24 Today
mikasa Today
Nirliq Today

User Panel Messages

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