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,994
» Latest member: Williamcaurb
» Forum threads: 38,737
» Forum posts: 175,587

Full Statistics

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

Latest Threads
Cannot update or install ...
Forum: General Coding Help
Last Post: Williamcaurb
18 minutes ago
» Replies: 7
» Views: 237,904
Доставка цветов в Томске
Forum: General Coding Help
Last Post: Williamcaurb
18 minutes ago
» Replies: 0
» Views: 4
print does not open conso...
Forum: General Coding Help
Last Post: Tycho_2025
1 hour ago
» Replies: 5
» Views: 150
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 4
» Views: 133
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 08:57 AM
» Replies: 1
» Views: 85
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Oct-02-2025, 03:05 PM
» Replies: 3
» Views: 2,550
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Oct-02-2025, 01:56 PM
» Replies: 6
» Views: 238
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,058
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 472
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,106

 
  a "consuming-generator"
Posted by: Skaperen - Sep-07-2019, 03:00 AM - Forum: News and Discussions - Replies (2)

a concept and coding scheme i once created in C (as well as C could do this) i would (now days) call a "consuming-generator". but it was really more ..... More

Print this item

  Using Pyperclip in Python 3 Does Not Paste Data in Desired Format
Posted by: aspire27 - Sep-06-2019, 11:35 PM - Forum: General Coding Help - No Replies

I'm using python 3.7 and I want to:

  • Copy IPs from a column in excel
  • Add a comma between each IP separated by a space
  • Return as o..... More

Print this item

  Blank spaces in right side
Posted by: fernando_santiago18 - Sep-06-2019, 08:41 PM - Forum: Homework - Replies (1)

Hello, I'm new to Python and i had a class assignment that was to draw figures as contours of a regular hexagon and of rectangles and isosceles triang..... More

Print this item

  Everything works except for one line of code
Posted by: 357mag - Sep-06-2019, 05:44 PM - Forum: General Coding Help - Replies (3)

I'm learning classes in Python and I've written a program that outputs the value of two integer variables. And I want to include a method that sums th..... More

Print this item

  Pandas DF filter base on another DF
Posted by: Johnse - Sep-06-2019, 02:35 PM - Forum: Data Science - Replies (1)

Can pandas data frame filter base on another data frame ?

Print this item

  Quotes and variables in print statement
Posted by: Mark17 - Sep-06-2019, 01:58 PM - Forum: General Coding Help - Replies (4)

This is a basic issue that has given me fits and I think Atom has been making it more complicated by wanting to place additional [single] quotation ma..... More

Print this item

  Morning Removing last character
Posted by: sumncguy - Sep-06-2019, 01:53 PM - Forum: General Coding Help - Replies (8)

I have the need to change a list of ips into a regular expression, then copy / paste the results else where

The starting list
[quote]
10.10.10...... More

Print this item

  Drop rows if a set of columns has a value
Posted by: dervast - Sep-06-2019, 01:45 PM - Forum: Data Science - Replies (1)

Hi,
I am looking for a way in pandas to do the following:

First lets assume a data frame with the following columns

[python]small_df=df[['1','2..... More

Print this item

  Why lineEdit is showing text like this ??
Posted by: scorp08 - Sep-06-2019, 01:10 PM - Forum: GUI - Replies (13)

The below code is showing lineEdit such that when a text is written, it showed the text not throughout of the width of the lineEdit. Kind of seemed li..... More

Print this item

  A replacement library to python chardet
Posted by: Ousret - Sep-06-2019, 12:20 PM - Forum: Code sharing - Replies (1)

Hi,

There is a very old issue regarding "encoding detection" in a text file that has been partially resolved by a program like Chardet. I did not l..... More

Print this item

  changing background color of a button
Posted by: ieee488 - Sep-06-2019, 11:52 AM - Forum: GUI - Replies (2)

I am a beginner to Python but not to programming in general.

I have the following code for creating 3 buttons:
[python]
for i in range(1, 3):
..... More

Print this item

  What is the significance of end=' ' and print()
Posted by: Subash_P - Sep-06-2019, 10:19 AM - Forum: General Coding Help - Replies (4)

Hi All,
I am new to Python programming.
I am trying to display nested list like a matrix. I am trying with below code.

x=[[1,2,3],[4,5,6],[7,8,9..... More

Print this item

  Complete Python 3 Tutorial Series
Posted by: KodeBlog - Sep-06-2019, 10:00 AM - Forum: Tutorial Requests and Submissions - No Replies

Hi everyone,

Here is a link to free tutorial series on Python 3 for beginners

Python 3 Tutorials for B[url=https://python-forum.io/thread-20916.html]..... More

Print this item

  WiFi communication
Posted by: Milad - Sep-06-2019, 07:30 AM - Forum: General Coding Help - Replies (2)

Hi , Im new to python . i want to send a data throw WiFi from my PC to RPi but i dont know how. can i use Socket library ? for example i want to updat..... More

Print this item

  pass captured value from input() to where clause
Posted by: metro17 - Sep-06-2019, 06:49 AM - Forum: General Coding Help - Replies (5)

How can pass the value captured in a variable using input() to a where clause in a select statement?

[python]def ada():
import pyodbc
imp..... More

Print this item

  Sending file html ?
Posted by: JohnnyCoffee - Sep-06-2019, 06:07 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi.

How to make wsgi send an index.html to the browser client ?

Print this item

  I get "None" at the end of my printed result.
Posted by: dyshkant - Sep-06-2019, 04:59 AM - Forum: General Coding Help - Replies (3)

I get "None" at the bottom of my printed result and I don't know where this "None" is coming from.

All works fine. Just really ..... More

Print this item

  authentication required error with urlopen
Posted by: Ranjirock - Sep-06-2019, 03:28 AM - Forum: General Coding Help - Replies (2)

Hello Everyone,
I'm trying following code, but ending up Authentication Required Error. I'm able to browse the website from browser without any crede..... More

Print this item

  a coding style question
Posted by: Skaperen - Sep-06-2019, 03:15 AM - Forum: Bar - Replies (3)

this a question about the style choice you use for your coding in any language. when you have a case of setting a variable to the result of an expres..... More

Print this item

  Use Of Real Names In Postings
Posted by: adt - Sep-06-2019, 02:54 AM - Forum: Board - Replies (19)

It would be nice to know the underlying factors governing non-use of real names in our postings, specially as there is nothing clandestine & the activ..... More

Print this item

  Python thread script gets defunct state
Posted by: xq10907 - Sep-06-2019, 02:02 AM - Forum: General Coding Help - No Replies

I have 2functions

runPA(), it will call a product function to run 10seconds and generate a temp file in /tmp then automatically delete the temp fil..... More

Print this item

  Electric Car battery size updating ????
Posted by: ridgerunnersjw - Sep-06-2019, 01:16 AM - Forum: General Coding Help - Replies (1)

Hello...
I copied the following out of a book as I am trying to teach myself Python....Can someone please tell me how I can create an instance of an ..... More

Print this item

  Loop pandas data frame by position ?
Posted by: Johnse - Sep-05-2019, 08:13 PM - Forum: Data Science - Replies (1)

Hello,

Is there a way to loop a pandas data frame by position ?

The loop is generally this way,

For i, r in a.iterrows():

If I want to st..... More

Print this item

  Not all data returned from sys.argv
Posted by: ecdhyne - Sep-05-2019, 05:21 PM - Forum: General Coding Help - Replies (2)

In my password lookup pgm sys.argv only returns the pgms file location. How do I get the selected input?
[python]
#! python 3
# pw.py - password lo..... More

Print this item

  Trying to understand this GCD recursion
Posted by: ThomasAquinas - Sep-05-2019, 03:52 PM - Forum: General Coding Help - Replies (2)

def euclidean(a, b):
    if b==0: return a
    return euclidean(b, a%b)
It works to give these results:

[python]print(euclide..... More

Print this item

  need code
Posted by: mmm - Sep-05-2019, 03:11 PM - Forum: Homework - Replies (12)

Hello .
I need code to download from the internet a list of files .
Their names + addresses are in a csv file , and no problems with permission / ac..... More

Print this item

  Slow Python Code
Posted by: Jay123 - Sep-05-2019, 02:40 PM - Forum: General Coding Help - Replies (3)

Hi all,

I have two lists that I want to check if the values in the list called data are equal to the values in the list called data2. If they are t..... More

Print this item

  Custom Function to Return Database Values
Posted by: rm78 - Sep-05-2019, 01:01 PM - Forum: General Coding Help - No Replies

A bit new and doing self teaching for python, but I am trying to figure out how best to use an existing dataframe to pass a column value into a where ..... More

Print this item

  multithreading issue with output
Posted by: mr_byte31 - Sep-05-2019, 12:34 PM - Forum: General Coding Help - Replies (4)

My script is working correctly when i have only one thread.
when I make 50 threads, the output result in 'table' seems to have missing entries in each..... More

Print this item

  Problem with For "str" in str["str"]:
Posted by: tarikjabiri - Sep-05-2019, 12:02 PM - Forum: General Coding Help - Replies (2)

Hi, I have a List like this :
[python]
myList = [
"LOT_1,T49359/22",
"LOT_2,T49360/22",
"LOT_3,T49361/22",
"LOT_4,T49362/22",
"LOT_5,T493..... More

Print this item

  reading tab file
Posted by: Mandiph - Sep-05-2019, 08:12 AM - Forum: Data Science - Replies (1)

please help with correct pandas syntax sep to read below pasted tab txt file into columns.It has a lot of header columns>>>

[output]Timestamp Long..... More

Print this item

  missing append in a loop?
Posted by: zarize - Sep-05-2019, 07:45 AM - Forum: Web Scraping & Web Development - Replies (2)

hi guys,

i got stucked on last thing to do my first basic scrapping...

The script is done in a loop but it is getting data only from one page in..... More

Print this item

  Ask for machine learning Python example with 2 data files
Posted by: user5566b - Sep-05-2019, 07:24 AM - Forum: Data Science - Replies (2)

Please advise such simple example in python of machine learning that supports both inputs of training file and test file about code will give output, ..... More

Print this item

  GUI and PDf
Posted by: kevinlau2220 - Sep-05-2019, 04:19 AM - Forum: GUI - Replies (2)

I just started using Python about a week ago and I ran into a road block. I've been trying to make a GUI where a user can select a page on the main me..... More

Print this item

  Is there a coding course for newbies?
Posted by: Edwardstark - Sep-05-2019, 03:21 AM - Forum: Bar - Replies (3)

I'm currently a student and I'm quite interested in learning to code, I have found and read the documentation, but it can only help me the basics, the..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Cannot update or install ... 18 minutes ago nickystixx45 Williamcaurb General Codin...
  Доставка цветов в Томске 18 minutes ago Williamcaurb Williamcaurb General Codin...
  print does not open conso... 1 hour ago Tycho_2025 Tycho_2025 General Codin...
  create ocr to detect lice... 4 hours ago bimosora Pedroski55 General Codin...
  Weird failure in Selenium Yesterday, 08:57 glestwid Larz60+ General Codin...
  Fred Economic Data API 10-02, 15:05 warrior42 Trickety Web Scraping ...
  Parse Markdown / get the ... 10-02, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
Most views
  The best Prog... 577498
  Tutorial Requ... 501508
  Web Scraping ... 441112
  Newbie with P... 385164
  New Users Int... 369993
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+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Williamcaurb Today
lauren557 Yesterday
maribita Yesterday
AnalystRobert Yesterday
Safariscampoea Yesterday

User Panel Messages

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