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,939
» Latest member: goodvicent
» Forum threads: 38,723
» Forum posts: 175,512

Full Statistics

Online Users
There are currently 65 online users.
» 1 Member(s) | 59 Guest(s)
Applebot, Bing, Google, AOL, goodvicent

Latest Threads
NEED HELP, LOST OF INVEST...
Forum: General Coding Help
Last Post: goodvicent
5 minutes ago
» Replies: 0
» Views: 1
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
5 hours ago
» Replies: 11
» Views: 4,001
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Yesterday, 07:55 PM
» Replies: 2
» Views: 510
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Yesterday, 12:30 PM
» Replies: 1
» Views: 3,475
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Yesterday, 11:11 AM
» Replies: 4
» Views: 864
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,345
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,206
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,417
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,389
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,526

 
  dataframe write to tab delimited differs from Excel
Posted by: koh - Aug-01-2021, 02:46 AM - Forum: General Coding Help - No Replies

Hi,
I use econtrol_df.to_csv('econsolidated.txt',sep='\t',header=False,index=False) but the created (text) tab delimited file differs from the one wh..... More

Print this item

  Python BLE Scanner not detecting device
Posted by: alexanderDennisEnviro500 - Aug-01-2021, 02:26 AM - Forum: General Coding Help - No Replies

I wrote a program that is supposed to recognize a skin-care device via Bluetooth. Upon scanning the skin, the device will send the data of someone's s..... More

Print this item

  How would I find the url name from a ip address
Posted by: Blue Dog - Jul-31-2021, 07:41 PM - Forum: Networking - Replies (5)

What I would like to do is enter a ip address like 216.40.47.17 and get the name of the website.
I know I am going have to go through a dns server, I..... More

Print this item

  Irrelevant
Posted by: meir - Jul-31-2021, 05:23 PM - Forum: Web Scraping & Web Development - No Replies

Irrelevant, please delete

Print this item

  Use of respond.get
Posted by: ebolisa - Jul-31-2021, 02:06 PM - Forum: General Coding Help - Replies (2)

Hi,

I'd like to read the response from a web page by sending this url: "https://mypage.com/get.php?api_key=0123456789". When done from a browser, t..... More

Print this item

  Read csv file through PyCharm
Posted by: kimx0961 - Jul-31-2021, 01:45 PM - Forum: General Coding Help - Replies (3)

Dear Madam/Sir,

I am beginner to learn python programming through Pycharm. I tried to import csv file thorough Pycharm and current working director..... More

Print this item

  list - 2 questions:
Posted by: ben1122 - Jul-31-2021, 11:31 AM - Forum: General Coding Help - Replies (40)

question number one:
The function gets a list of strings of even length. The function returns a string that contains the list members in the even posi..... More

Print this item

  Confusing in [for loop] topic
Posted by: Sherine - Jul-31-2021, 11:17 AM - Forum: General Coding Help - Replies (11)

Hi,

I read a book with this below question and answer.
However I cant get the meaning of the explanation.

[python]x = 0
n = 5
for i in ran..... More

Print this item

  Scrapy does not show all data in iteration loop
Posted by: georgekasa - Jul-31-2021, 09:10 AM - Forum: Web Scraping & Web Development - No Replies

Hello,
I am trying to scrape a real estate site in Greece from multiple locations of Athens, the site use some kind of protection so I am using cook..... More


Attached Files

Thumbnail(s)
   
Print this item

  Operator meaning explanation
Posted by: Sherine - Jul-31-2021, 07:48 AM - Forum: General Coding Help - Replies (3)

Hi,

I have a question.

name = "Giraffe"
score = 80
print("%s result as %d" % (name, score))
[output]Giraffe result as 80[..... More

Print this item

  Unexplained Invalid syntax Error
Posted by: cybertooth - Jul-31-2021, 07:36 AM - Forum: General Coding Help - Replies (5)

i am working on a Order form with tkinter. The first draft worked well, I wanted to add current date display on the form. When i run it I get a [b]Syn..... More

Print this item

  How to Translate a python code written in Mac-OS to Windows?
Posted by: alexanderDennisEnviro500 - Jul-31-2021, 05:27 AM - Forum: General Coding Help - Replies (2)

The code was written last year by a former colleague, and as it only works on Mac, I have to convert it to Windows.

The Python code will serve as a..... More

Print this item

  Failing to connect to a host with WMI
Posted by: tester_V - Jul-31-2021, 02:05 AM - Forum: General Coding Help - Replies (6)

Happy Friday!
I think I managed to install "WMI" module.
When I use:

 import wmi
My script does not error out. The remote host..... More

Print this item

  Value by reference issue
Posted by: javaben - Jul-30-2021, 10:40 PM - Forum: General Coding Help - Replies (9)

I've run across an issue with trying to copy an int argument for later use in the program. I realized the int that was copied is changing the value o..... More

Print this item

  Reading a directory and outputting as sound
Posted by: loungeroom - Jul-30-2021, 09:26 PM - Forum: General Coding Help - No Replies

Hi everyone,

I'm a total beginner when it comes to code, and wondering if Python would be the best solution for this problem.

I use Audacity to ..... More

Print this item

  delete post
Posted by: xtc14 - Jul-30-2021, 02:05 PM - Forum: General Coding Help - No Replies

delete post

Print this item

  How to update selected data in combobox displaying DB data?
Posted by: JokerSob - Jul-30-2021, 11:03 AM - Forum: GUI - Replies (3)

I have buttons in the combobox where I view DB data so I can edit, delete, and update the data I selected. When I press the edit button of a db data I..... More

Print this item

  The list length should be 100 but it is more than 100
Posted by: quest - Jul-30-2021, 09:12 AM - Forum: General Coding Help - Replies (1)

Hello,

I am trying to produce 100 different names (names should be unique) and I wrote this simple code:

[python]
import names
parties=..... More

Print this item

  Eric6 No module named 'serial'
Posted by: BvdP4Py - Jul-30-2021, 08:38 AM - Forum: News and Discussions - No Replies

I am testing Eric6 IDE in Ubuntu and copy paste a code snippet to get a list of serial ports.
Although I installed pyserial by "python3 -m pip instal..... More

Print this item

  printing contents of Jar on timeout
Posted by: Rakshan - Jul-30-2021, 07:17 AM - Forum: General Coding Help - Replies (1)

Hello,

I have a requirement to execute a jar, and also have a timeout mechanism around it , such that when a timeout occurs, the exeuction stops.
..... More

Print this item

Question Help with code to solve polynomials equations
Posted by: hiviera - Jul-30-2021, 06:38 AM - Forum: General Coding Help - Replies (1)

Hi guys, i've been investigating this article..
Article 1: Unidimensional Search Scheme Usi[url=https://python-forum.io/thread-34425.html]..... More

Print this item

Big Grin Newbie to Python - input and branching issue
Posted by: Sherine - Jul-30-2021, 04:38 AM - Forum: General Coding Help - Replies (3)

Hi,

I'm newbie to Python.

I have a question on this coding, why I cant run this code?
Can anyone guide me what's problem to this.

Thanks ..... More

Print this item

  How does K-Means++ work in selecting initial centroids?
Posted by: JaneTan - Jul-30-2021, 02:31 AM - Forum: Data Science - Replies (1)

I read some online materials on how K-means++ works in selecting initial centroids in KMeans. But I still don't understand.

Eg, if I specify 3 clus..... More

Print this item

  Calling cell / modules in PyCharm Community
Posted by: erdemath - Jul-29-2021, 07:00 PM - Forum: Data Science - No Replies

Hi,

I moved to PyCharm community from spyder. I have issues with calling modules that are defined in a cell. All are stored in the same folder.
Le..... More

Print this item

  Variables not returning
Posted by: dedesssse - Jul-29-2021, 06:22 PM - Forum: General Coding Help - Replies (3)

Why is y not returned?

def numbers():
    x = 2
    y = x+2
    return x
    return y
print(numbers())

Print this item

  Storing whole functions in variables
Posted by: dedesssse - Jul-29-2021, 05:42 PM - Forum: General Coding Help - Replies (3)

When i print y, why does it say none? instead of returning the value from the function called
[python]
x = 1

def edr(x):
x+2
print(x)
..... More

Print this item

  background
Posted by: somboku - Jul-29-2021, 02:10 PM - Forum: General Coding Help - Replies (2)

Guys,

first things first. HI - I am new here and to python.

How can I do a job in the background while doing a different thing.
Its just a ..... More

Print this item

  printing out the contents aftre subprocess.call()
Posted by: Rakshan - Jul-29-2021, 01:45 PM - Forum: General Coding Help - Replies (3)

I am facing a scenario where in I need to execute a jar based on user parameters. I have replicated the scenario here as below :

[python]import sub..... More

Print this item

  Python, PySimpleGUI and SQLite3
Posted by: jamesaarr - Jul-29-2021, 01:14 PM - Forum: General Coding Help - No Replies

Hello all,

Me again, back at it again with the python problems!

I'm trying to get my python to read and display data from a database file. Now I'm a..... More

Print this item

  Python issue - Data science - Help is needed
Posted by: yovel - Jul-29-2021, 01:04 PM - Forum: General Coding Help - Replies (2)

[python]best_5 = sorted_swap[:4]
for row in best_5:
hour = row[1]
hour = dt.datetime.strptime(hour, '%H')
hour = hour.strftime('%H')..... More

Print this item

  Python syntax in Linux
Posted by: St0rmcr0w - Jul-29-2021, 12:16 PM - Forum: General Coding Help - Replies (2)

I am currently learning Python in school and have truly enjoyed it. This week we are to working with subprocess. we are to run commands and take scree..... More

Print this item

  Program stuck at mysql.connector.connect
Posted by: zazas321 - Jul-29-2021, 08:55 AM - Forum: General Coding Help - Replies (1)

Hello. I have Raspberry PI 4 and have been using MYSQL on it for a while without any issues. I have decided to dedicate a standalone linux server just..... More

Print this item

  Stepper motor/Easy Driver/HELP
Posted by: Harney - Jul-29-2021, 07:58 AM - Forum: General Coding Help - Replies (1)

I have a camera slider that ATM uses an Arduino controller written Airi Clenz miniEngine. It work..... More

Print this item

  Uncertainty Calculation
Posted by: Irv1n - Jul-29-2021, 06:55 AM - Forum: General Coding Help - Replies (1)

I have 3 list:
[python]
dcv_range = [0.1, 1, 10 ,100 ,1000] # range
# Accuracy is given as ± (% measurement +% of range)
dcv_accuracy_meas_90d = [..... More

Print this item

  extracting data
Posted by: ajitnayak1987 - Jul-29-2021, 04:58 AM - Forum: General Coding Help - Replies (1)

I am new bie. I have written small code here. how can I print first name from function directly from instance


[python]
class Test:
def __i..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  NEED HELP, LOST OF INVEST... 5 minutes ago goodvicent goodvicent General Codin...
  403 Error 5 hours ago CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... Yesterday, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... Yesterday, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... Yesterday, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576369
  Tutorial Requ... 498121
  Web Scraping ... 440272
  Newbie with P... 384142
  New Users Int... 367083
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12089
buran 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
goodvicent Today
atylerfraces2254 Today
AdrianCocian Today
humanoidAI Today
Baran12332 Yesterday

User Panel Messages

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