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,975
» Latest member: Schirag
» Forum threads: 38,732
» Forum posts: 175,563

Full Statistics

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

Latest Threads
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
3 hours ago
» Replies: 2
» Views: 166
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
11 hours ago
» Replies: 2
» Views: 800
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 05:45 PM
» Replies: 6
» Views: 842
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 537
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,911
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,315
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,890
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,310
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,236
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,557

 
  Interesting/Fun Scripts?
Posted by: ejected - Mar-27-2019, 04:37 AM - Forum: News and Discussions - Replies (2)

Hey I just finished my first ever Python script. It was a web scraping script that required log in first. Did it in selenium with xpath.

What are s..... More

Print this item

  UnboundLocalError Problem
Posted by: DrChicken24 - Mar-27-2019, 02:28 AM - Forum: General Coding Help - Replies (1)

So I am making my first game in python. It is a text RPG. Obviously I can't post the entire code on here, but I think this will be enough to hopefully..... More

Print this item

  Custom data structure
Posted by: icm63 - Mar-26-2019, 11:34 PM - Forum: General Coding Help - Replies (2)

New to python, from .Net. I know python does not support arrays.

This class

[python]class myStructure:
""" My custom data structure for ar..... More

Print this item

  Simple Button click on image file to create action?
Posted by: jpezz - Mar-26-2019, 10:54 PM - Forum: GUI - Replies (4)

I am looking for a simple example of a python program that would display an image file and then be able to tell if the user clicked on the image with ..... More

Print this item

  str.format rounding to the left of the decimal
Posted by: ClassicalSoul - Mar-26-2019, 09:14 PM - Forum: General Coding Help - Replies (2)

Hi, I was wondering how I could make string.format round to the left of the decimal.


[python]
>>> x = 4. 542412343
>>> '{0} rounded to {1} decimals ..... More

Print this item

  Unbound local error while attempting to reference a list
Posted by: molassascookieman - Mar-26-2019, 08:37 PM - Forum: Homework - Replies (1)

I have a basic program in which I enter a business' sales, and it can use one of a few functions like finding the top selling store location and simil..... More

Print this item

  HELP! writing to csv file repeats, but code looks good.
Posted by: TheBeast - Mar-26-2019, 08:21 PM - Forum: Data Science - Replies (2)

###If you run the code before the two "write" chuncks, then everything works out. What in the heck is going wrong when the scrape is coped to excel?!?..... More

Print this item

  Package Update without Internet Access on Host
Posted by: pythonator - Mar-26-2019, 07:24 PM - Forum: News and Discussions - Replies (3)

I can't seem to find an answer to the question of how to update packages when I cannot use pip due to no internet access on box. I have been installi..... More

Print this item

  Appending To Files Challenge
Posted by: erfanakbari1 - Mar-26-2019, 06:17 PM - Forum: Homework - Replies (3)

# I Write a program to append the times table for our poem in sample.txt .
So , this is all of my code

[python]
numbers = ..... More

Print this item

  please help me TypeError: unsupported operand type(s) for +=: 'int' and 'list'
Posted by: aankrose - Mar-26-2019, 04:05 PM - Forum: General Coding Help - Replies (2)

Question:
File input.txt contains numbers separated by comma as shown below,

Output:
6,8 7,6 2,8 9,5 9,6
a. Write a function co..... More

Print this item

  Save code with output to HTML file type
Posted by: agohir - Mar-26-2019, 03:29 PM - Forum: General Coding Help - Replies (2)

Hello,

I'm new to using JupyterLab and was wondering if someone knows how I can save my code & output as HTML so I can view it later.

Unfortunat..... More

Print this item

  Pandas .rolling() with some calculations inside
Posted by: irmscher - Mar-26-2019, 03:29 PM - Forum: Data Science - Replies (5)

Hey guys

So in short, my Pandas dataframe is something like this:

https://www.dropb[url=https://python-forum.io/thread-17054.html]..... More

Print this item

  Getting syntax error, no clue why
Posted by: KaynRyu - Mar-26-2019, 02:08 PM - Forum: General Coding Help - Replies (4)

I dont know if I am just dumb and not seeing what is going on but I am so confused.....

the issue I am having is
[python] birthday = input("Have ..... More

Print this item

  Background Execution Process
Posted by: sunnyarora - Mar-26-2019, 02:08 PM - Forum: Bar - Replies (3)

Hi Could you please explain how can we see live execution process of codes in PyCharm?

Print this item

  how to code in Python "where" clause of SAS
Posted by: FelixS - Mar-26-2019, 01:47 PM - Forum: General Coding Help - Replies (2)

I am newcomer in Python, I am expert in SAS, I have heard that Python is much more ... better than SAS.
I am now trying to create in Python product..... More

Print this item

  Trouble converting JSON String to Dictionary
Posted by: RBeck22 - Mar-26-2019, 12:36 PM - Forum: General Coding Help - Replies (7)

Hello All:

I am fairly new to python, so

I have a small app that pulls data from REST using requests this returns a response object that I conve..... More

Print this item

  recursion
Posted by: mcgrim - Mar-26-2019, 11:00 AM - Forum: Data Science - Replies (1)

I am writing a program dealing with recursion, so far the info given is
n, n+1, n+2, n+3. I have to reach 1000.
I have done it by using the list m..... More

Print this item

  Any good source to learn GUI
Posted by: rturus - Mar-26-2019, 10:49 AM - Forum: GUI - Replies (2)

Hi all,

Any good source to learn GUI with Tkinter? Websites will be useful but any other source will be appreciated.

Thanks.

Print this item

  Print random musik to wav file
Posted by: Pereskia - Mar-26-2019, 10:25 AM - Forum: General Coding Help - Replies (2)

I need to generate a set of random music files in wav format. I need to save information about which notes I play and the duration it have in a separa..... More

Print this item

  Return not vowels list
Posted by: erfanakbari1 - Mar-26-2019, 08:47 AM - Forum: Homework - Replies (2)

Hey there !
Since today , I've been trying to write a program doing this thing below :

[python]
'''
Create a program that takes some text and re..... More

Print this item

  str in str == True
Posted by: speedskis777 - Mar-26-2019, 08:15 AM - Forum: General Coding Help - Replies (7)

Why do my 3rd and 4th lines give different results? 3 prints True, 4 prints False.

Thanks!

[python]blue = "lm"
my_size = "l"
print(my_size in..... More

Print this item

  Help on locating strings somewhere in the screen
Posted by: samsonite - Mar-26-2019, 08:01 AM - Forum: General Coding Help - Replies (2)

The following code, taken as an example, shows the string in left upper corner while the time flows:
[code]
# ------- loctime.py -------------
impo..... More

Print this item

  Download images generated by user input
Posted by: one_of_us - Mar-26-2019, 07:58 AM - Forum: Web Scraping & Web Development - No Replies

I'm building an web app that allows users to download images based on they input. The main url is constant, the filename is known by user and is used ..... More

Print this item

  How to use pandas.rolling mean for 3D input array?
Posted by: Prv_Yadv - Mar-26-2019, 05:02 AM - Forum: Data Science - Replies (1)

For 1D I can use:

a=np.array([1,2,3,4])
b=pandas.Series(a).rolling(window=3,center=True).mean()
But the problem is, if I have ar..... More

Print this item

  Error when trying to use Selenium
Posted by: ejected - Mar-26-2019, 02:14 AM - Forum: Web Scraping & Web Development - Replies (1)

Pretty sure it has something to do with the run permissions of it but I don't know how to fix it. I'm very new to Python so please dumb down your repl..... More

Print this item

  Please help to the beginer
Posted by: polo - Mar-26-2019, 02:06 AM - Forum: General Coding Help - Replies (4)

Hi all,
I am struggling with making
this code:

[python]text = open('input.txt', 'r', encoding='utf8')
for i in text.readlines():
print(re...... More

Print this item

  Easiest way to log into a site for web scraping?
Posted by: ejected - Mar-26-2019, 12:24 AM - Forum: General Coding Help - Replies (2)

What is the easiest way to log into a site to web scrape some data?

I tried using RoboBrowser and I can't get it to log in. What are some other way..... More

Print this item

  Playing mp3 file to specific device
Posted by: treii28 - Mar-25-2019, 09:07 PM - Forum: General Coding Help - Replies (3)

I'm new to python but want to try converting an ESP32 project to work on a Raspberry pi and most suggestions say python is the way to go for IoT devel..... More

Print this item

  Today is one of those days
Posted by: Larz60+ - Mar-25-2019, 09:07 PM - Forum: Bar - Replies (6)

If I drank alcohol, I'd order a stiff one!

There's a solid Granite hill directly across the street from me, and a new business that moved in a mont..... More

Print this item

  How do I use this? TypeError: 'NoneType' object does not support item assignment
Posted by: ejected - Mar-25-2019, 08:20 PM - Forum: General Coding Help - Replies (9)

form['user_password'] = config.DATACOUP_PASSWORD
I want to put my own password in there. WITHOUT the config.py file

So I want t..... More

Print this item

  How to plot histogram from 2 arrays?
Posted by: python_newbie09 - Mar-25-2019, 08:12 PM - Forum: General Coding Help - Replies (5)

I have two arrays where the first array shows the unique values extracted from a column and the second array stores the frequency of these unique valu..... More

Print this item

  I get this when trying to install a module - SyntaxError: invalid syntax ?
Posted by: ejected - Mar-25-2019, 07:34 PM - Forum: General Coding Help - Replies (2)

I'm trying to install robobrowser, but when I type this into Python I get an error

[python]>>> easy_install robobrowser
File "<stdin>", line 1
..... More

Print this item

  Running script pops up python.exe but blank
Posted by: Beerendar - Mar-25-2019, 05:40 PM - Forum: General Coding Help - Replies (9)

Hi, I have python 3.7.2 and atom IDE installed on my lenevo laptop AMD processor. Just to see everything works fine i started with "Hello World" progr..... More

Print this item

  Manipulating Series in Dataframe (Pandas)
Posted by: wendysling - Mar-25-2019, 04:24 PM - Forum: Data Science - Replies (2)

Hi,

I have a date column in a data frame that looks like this:

(Year-Month-Day)
2017-09-21
2018-11-25

I am trying to create a function that consid..... More

Print this item

  Join Predicted values with test dataset
Posted by: bhuwan - Mar-25-2019, 04:21 PM - Forum: Data Science - Replies (4)

I am a beginner in machine learning and write my first machine learning code. I have trained a model and got y_pred. Now I want to join x_test with y_..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Integer Factorization Too... 3 hours ago fosuwxb buran Code sharing
  My goal to be hired worki... 11 hours ago GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... Yesterday, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... Yesterday, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577349
  Tutorial Requ... 500680
  Web Scraping ... 441009
  Newbie with P... 385051
  New Users Int... 369542
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Schirag Today
Jacobjoift Today
sophielane Yesterday
Oscar0057 Yesterday
Cromulent Yesterday

User Panel Messages

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