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,257
» Latest member: Bamboo
» Forum threads: 38,782
» Forum posts: 175,838

Full Statistics

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

Latest Threads
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
57 minutes ago
» Replies: 10
» Views: 188
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
2 hours ago
» Replies: 3
» Views: 102
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 192
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 368
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 123
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 254
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 402
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 152
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,646
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 257

 
  Are there any techniques for improving logloss?
Posted by: AlekseyPython - Mar-20-2021, 04:37 AM - Forum: Data Science - No Replies

I use logloss as a quality criterion, but it has a number of disadvantages:
1. Has infinite errors with confident misclassification.
2. Has a slight..... More

Print this item

  Database with gui
Posted by: mark9 - Mar-19-2021, 08:26 PM - Forum: GUI - Replies (8)

Hello all, I am learning python language. I am trying this exercise I found on web in a course, and I would to improve it. This program shows a window..... More

Print this item

  Dataframe problem
Posted by: stylingpat - Mar-19-2021, 08:10 PM - Forum: General Coding Help - Replies (3)

Hello guys, so I am running into an issue I cant sort out.

I have 2 threads running.

Thread 1: is pulling stock info into a dataframe every 1 ..... More

Print this item

  Sockets interferring with USB ?
Posted by: epif18 - Mar-19-2021, 07:45 PM - Forum: Networking - No Replies

I've written a program to create a server socket to interface with an embedded client socket in a program (stellarium) running on the same PC. Works ..... More

Print this item

  while sentence
Posted by: kimyyya - Mar-19-2021, 07:34 PM - Forum: General Coding Help - Replies (3)

hi! I'm a beginner and I found here to help or solving my problems. could you please tell me what's wrong with WHILE code?


[python]import random..... More

Print this item

  Testing using selenium and mock
Posted by: nikita - Mar-19-2021, 06:09 PM - Forum: Web Scraping & Web Development - No Replies

Hello!
I have a problem when testing using mock

I need to go to the page and do some action. But at the same time, I want to mock the foo() func..... More

Print this item

  Problem with cx_freeze app only on one pc
Posted by: floatingshed - Mar-19-2021, 05:19 PM - Forum: General Coding Help - No Replies

I have made a python app and used cx_freeze to distrubute it to my colleagues as a windows exe.
It is currently working on 16 machines using windows ..... More

Print this item

Lightbulb 'str' object has no attribute 'to_csv'
Posted by: brunolelli - Mar-19-2021, 05:18 PM - Forum: General Coding Help - Replies (3)

Hello guys,

I'm trying to save some data that I collected from a website textform, on a csv file.
And for that I'm using the following code, but I..... More

Print this item

Lightbulb Paste data from a list to a webform
Posted by: brunolelli - Mar-19-2021, 01:21 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello guys,

I'm using the following code in order to collect some information from a website.
[python]import zapimoveis_scraper as zap
import pan..... More

Print this item

  Is there a "standard" IDE?
Posted by: CynthiaMoore - Mar-19-2021, 06:35 AM - Forum: News and Discussions - Replies (4)

I went to download and install Python, when I saw a link about selecting an IDE.

https://wiki.python.org/moin/IntegratedD...vironments

..... More

Print this item

  examples using os.walk()
Posted by: Skaperen - Mar-19-2021, 12:28 AM - Forum: News and Discussions - Replies (12)

does anyone have or know of (url) example code that uses os.walk() and produces a list of all file system objects in the order you'd get by goi..... More

Print this item

  Logitech PTZ help
Posted by: MikeRettig - Mar-18-2021, 09:57 PM - Forum: General Coding Help - Replies (2)

I have an old Logitech webcam with microphone and pan/tilt capability.
The camera and mic works but I don't know how to make it move in python.
It c..... More

Print this item

  managing SOCK.STREAM digit values
Posted by: Pillopollo - Mar-18-2021, 07:08 PM - Forum: Networking - No Replies

Hello Everybody.
Beginner and first post here.

i need some help because i can't manage the socket(SOCK.STREAM) object.

the script i'm using is ..... More

Print this item

  Tic tac toe win Condition
Posted by: Jacobthechosen - Mar-18-2021, 05:46 PM - Forum: Homework - Replies (3)

Hey I'd like to keep a majority of my code the same but my group is really having trouble making a win condition for my code can anybody help?

[pyt..... More

Print this item

  Solving equation on a given domain
Posted by: Scientifix - Mar-18-2021, 04:16 PM - Forum: Data Science - Replies (1)

Dear all,

I am trying to solve the following equation on [0,10] :

-0.523*sinh( 0.0597^2 * 0.247^2 *X) + 0.9*cosh( 0.0597^2 * 0.247^2 *X) = 0.1
..... More

Print this item

  Collisions in Arrays
Posted by: Prithak - Mar-18-2021, 03:36 PM - Forum: Game Development - Replies (2)

Forgive my incredibly good code buttttt......... The collision works for only one object? Why is that? Any solitions? Please help!

[python]
import..... More

Print this item

  Problem restricting user input in my rock paper scissors game
Posted by: ashergreen - Mar-18-2021, 11:28 AM - Forum: General Coding Help - Replies (6)

Okay, I am a new Python Programmer, I am a beginner, I started doing this a few months ago. I have been working through various Python challenges I f..... More

Print this item

  Python and MySQL
Posted by: Pedroski55 - Mar-18-2021, 09:47 AM - Forum: General Coding Help - Replies (5)

I have not yet tried to use Python to interact with MySQL.

I run a little homework webpage for my classes. They do the homework, PHP marks it and s..... More

Print this item

  how to suppress not to display the package contents from pydoc!
Posted by: maiya - Mar-18-2021, 07:46 AM - Forum: General Coding Help - Replies (3)

Hi All,

Below is my sample code, where I do not want to display the PACKAGE CONTENTS section (means I wanted to suppress this, as not to display it..... More

Print this item

Exclamation "System cannot find path specified"(Geany)
Posted by: kiwi99 - Mar-18-2021, 03:14 AM - Forum: General Coding Help - Replies (2)

I was happily using Geany to write Python 3.2 programs. I upgraded to Python 3.9 and Geany and now Geany doesn't run Python! Any help appreciated!
Th..... More

Print this item

  Order a list with successive permutations based on another list
Posted by: yvrob - Mar-17-2021, 11:13 PM - Forum: General Coding Help - Replies (3)

Hi everybody,

I am running into a problem that seems rather simple but here is what I need to do:
I have an initial list, say: L = [ 1, 2, 3, 4, 5, 6..... More

Print this item

  Problem with csv
Posted by: giorgosmarga - Mar-17-2021, 09:52 PM - Forum: General Coding Help - Replies (4)

[python]def printGames():
with open("boardgames.csv", 'r') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
..... More

Print this item

  data iteration in a file
Posted by: chris1 - Mar-17-2021, 07:27 PM - Forum: General Coding Help - Replies (2)

Hello
I would like to know if it is possible to iterate the strings to be entered in a file

Normally, as in the example below, we enter a char..... More

Print this item

  Error in my code?
Posted by: ebolisa - Mar-17-2021, 07:04 PM - Forum: General Coding Help - Replies (7)

Hi,

The following code works, but if I define it, it fails. Where's my error?
TIA

[python]import sys

mailScript = "C:\SharedFiles\Python\pra..... More

Print this item

  Creating a dashboard for a Pi that switches feeds.
Posted by: mrbojangles1814 - Mar-17-2021, 05:57 PM - Forum: GUI - Replies (1)

I'm having a hard time getting this to work. I have a Raspberry Pi with a 4 inch screen that I am trying to make a display that shows the time and the..... More

Print this item

  Question on None function in a machine learning algorithm
Posted by: Livingstone1337 - Mar-17-2021, 05:26 PM - Forum: General Coding Help - Replies (1)

[python]def evaluate_algorithm(dataset, algorithm, n_folds, *args):
folds = cross_validation_split(dataset, n_folds)
scores = list()
for fold in..... More

Print this item

  cursor.execute: How to insert dynamic number in a string?
Posted by: stoeberhai - Mar-17-2021, 03:24 PM - Forum: General Coding Help - Replies (2)

I'd like to make a SQL-request.
In the mooment SQL-approach and the request are working well.
In the cursor.execute command i coded a static string ..... More

Print this item

  How do I change this code for searching duplicats in python ?
Posted by: Eidrizi - Mar-17-2021, 01:34 PM - Forum: General Coding Help - No Replies

This is the code that I use for searching duplicates in my excel sheet :

[python]def check_duplicacy(first_col):
first_col_list = first_col.to..... More

Print this item

  Graphics Formatting - X-axis Notation and Annotations - Matplotlib
Posted by: silviover_junior - Mar-17-2021, 01:19 PM - Forum: General Coding Help - No Replies

Distinguished colleagues, good morning.

I am working on building a graph using matplotlib and I am facing some difficulties.

How can I leave the..... More

Print this item

  How can I upload some files to my website?
Posted by: brunolelli - Mar-17-2021, 01:01 PM - Forum: General Coding Help - Replies (3)

Hello guys,

I'm currently saving some .csv files on my computer, but I would like to upload those .csv files to my website, is it possible to be do..... More

Print this item

Question How to include Modules not found (conditional imports) in my setup.py when I want to
Posted by: cff - Mar-17-2021, 11:57 AM - Forum: General Coding Help - No Replies

I am trying to compile my Python 3.9 script with Py2app on my MAC OS Catalina: MAC OS CATALINA 10.15.6 Python 3.9.


I made the setup.py file with ..... More

Print this item

  Simple problem with functions and returns
Posted by: danlopek14q - Mar-17-2021, 10:53 AM - Forum: Homework - Replies (10)

Hello guys I hope You will be able to help me with these simple functions. I can not understand and I tried everything.I spent couple days, watched vi..... More

Print this item

  tkinter text widget word wrap position
Posted by: chrisdb - Mar-17-2021, 07:42 AM - Forum: GUI - Replies (6)

Hi,

I'm trying to figure out the index position on where the tkinter text widget cuts of the word when using WORD wrap. I thought the newline '\n' ..... More

Print this item

  Python input not working
Posted by: Mar10 - Mar-17-2021, 01:16 AM - Forum: General Coding Help - Replies (4)

Hello, I just installed python 3.9 and now its not working correctly.

Example:
I typed this simple script.

name = input ("Enter Your Name Pleas..... More

Print this item

Lightbulb How can I use the following script?
Posted by: brunolelli - Mar-16-2021, 11:33 PM - Forum: General Coding Help - Replies (8)

Hello guys,

This is my first time using Python and I'm very excited about it.
I'm trying Scrape some data from a website (www.zapimoveis.com.br), ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [solved] re.split issue 57 minutes ago paul18fr deanhystad General Codin...
  Please guide me to comple... 2 hours ago pbkurd Larz60+ General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578952
  Tutorial Requ... 510400
  Web Scraping ... 441966
  Newbie with P... 385988
  New Users Int... 376982
Most reputation
buran 581
snippsat 511
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+ 12108
buran 8195
snippsat 7388
deanhystad 6910
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Bamboo Today
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday
cc123 Yesterday

User Panel Messages

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