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) | 47 Guest(s)
Google, AOL, Bing, DuckDuckGo, AOL

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

 
  First web scraping project using bs4, review my code
Posted by: OhNoSegFaultAgain - Mar-30-2019, 11:28 AM - Forum: Code sharing - Replies (2)

Hello people, I just finished my first web scraping project and I'd like to have an opinion about the code: what I did right, what wrong and what can ..... More

Print this item

  [pandas]How to liner fit time series data and get linear fit equation and r square
Posted by: Sri - Mar-30-2019, 08:12 AM - Forum: Data Science - Replies (5)

Hi,
I have below pandas dataframe:

[python]df:
Time_golden Golden is_golden
0 2019 -03-20 10:24:30 98.6 golden
1 2..... More

Print this item

  How do I run this script?
Posted by: someguy - Mar-30-2019, 04:58 AM - Forum: General Coding Help - Replies (4)

I'm trying to use this script to extract files from zbthumbnail.info:
https://github.com/ross-spencer/zbthumbnail-extractor

Ran the script, but I'..... More

Print this item

  Building a new system soon? AMD Ryzen 5 $79
Posted by: Larz60+ - Mar-30-2019, 02:37 AM - Forum: News and Discussions - Replies (2)

If anyone's thinking of building a new system, and has a microcenter near, they're offering AMD Ryzen 5 1600 3.2GHz 6 Core AM4 Boxed Processor with Wr..... More

Print this item

  Fallout-themed IDE?
Posted by: Exsul - Mar-29-2019, 10:20 PM - Forum: Bar - Replies (7)

VERY important question, guys: How do I get a Python IDE to look like one of those old-fashioned terminals with green text from the Fallout games?

..... More

Print this item

  [CRITICAL] [App ] Unable to get a Text provider, abort.
Posted by: Exsul - Mar-29-2019, 08:31 PM - Forum: GUI - Replies (6)

Error message:

[quote]C:\Users\[USERNAME]\PycharmProjects\practice\venv\installkivy\Scripts\python.exe C:/Users/[USERNAME]/PycharmProjects/kivia/venv..... More

Print this item

  Helping out a friend - simple question
Posted by: Nector33 - Mar-29-2019, 08:30 PM - Forum: Web Scraping & Web Development - Replies (5)

Hi,

I'm scrapping a website and I don't know how to print only part for the text.

[python]from bs4 import BeautifulSoup
import requests

sour..... More

Print this item

  power spectrum from 2Dfft
Posted by: sdipti596 - Mar-29-2019, 07:48 PM - Forum: General Coding Help - Replies (1)

Hi,

I am trying to calculate 2D fast fourier transform (2DFFT) of temperature data in mesosphere and lower thermosphere (MLT). Data are time vs alt..... More

Print this item

  Is there any way to properly load fixed width file into a dataframe using Pandas?
Posted by: vicky53 - Mar-29-2019, 05:35 PM - Forum: Data Science - Replies (1)

Hi,

Is there any way to properly load and write fixed width file into a dataframe using Pandas?

I'm trying to load a fixed width file using pa..... More

Print this item

  PyODBC error - second parameter to executemany must be a sequence, iterator, or gener
Posted by: RBeck22 - Mar-29-2019, 05:09 PM - Forum: General Coding Help - Replies (1)

Hello,

I am trying this to get some values into SQLServer2017. when I try this code it throws pyodbc.ProgrammingError: The second parameter to exec..... More

Print this item

  Testing an API
Posted by: a21250450 - Mar-29-2019, 04:48 PM - Forum: General Coding Help - Replies (1)

Hello all, I have an API in python and when I run it it gives me the endpoint but when I try to make the request in the postman it always gives the er..... More

Print this item

  How do I center this text in tkinter?
Posted by: ejected - Mar-29-2019, 04:33 PM - Forum: GUI - Replies (4)

[python]from tkinter import *

window = Tk()
window.title("List")
window.geometry("700x450")
window.configure(bg="orange red")

#center this la..... More

Print this item

  repeated statements when using for and if
Posted by: sunhyunshine - Mar-29-2019, 02:49 PM - Forum: Homework - Replies (2)

Hello, i have a problem with for and if.
The program returns the same statement as many times as there were books entered, and i don't know what do ..... More

Print this item

  Mass load images
Posted by: Linuxdesire - Mar-29-2019, 02:21 PM - Forum: General Coding Help - Replies (1)

I am trying to see if it is possible to import images in mass related to a field. Let me explain:

In Microsoft access I have a calculation field wi..... More

Print this item

  I want to validate that there is not more than two blank spaces in a string of charac
Posted by: jlpavon1987 - Mar-29-2019, 02:05 PM - Forum: General Coding Help - Replies (4)

I've already managed to remove the space at the beginning and end of the string with the function strip () but I do not know how to eliminate when in ..... More

Print this item

  Phone app from python code
Posted by: Androsmeq - Mar-29-2019, 02:02 PM - Forum: General Coding Help - Replies (1)

Hello, i made a python game that runs on the computer. In the console. How can i transfer the code so that i can make it into a phone app?

Print this item

  Pack binary data to list of integers
Posted by: bearer - Mar-29-2019, 12:17 PM - Forum: General Coding Help - No Replies

Trying to expand on a script for imax b6 charger which has USB HID interface.

Old code sends a list of integers to hidapi.write(). I've decoded som..... More

Print this item

  I NEED HELP!!!
Posted by: polloila - Mar-29-2019, 11:53 AM - Forum: Homework - Replies (3)

I'm a year 11 student doing one of those stupid OCR Programming tasks. It's my first year with programming so I'm not the best and therefore I need he..... More

Print this item

  can't install package web in version python 3.7
Posted by: a21250450 - Mar-29-2019, 10:52 AM - Forum: General Coding Help - Replies (1)

Hello everyone I have a project written in python 2.7 and I need to update it for python 3.7 but the web package always error.

The error is:
Coll..... More

Print this item

  Create Animated Scatter plot in 3d using matplotlib in python
Posted by: barry76 - Mar-29-2019, 10:24 AM - Forum: General Coding Help - No Replies

Hello, with the reference link..... More

Print this item

  how to get data in web
Posted by: yimchiwai - Mar-29-2019, 08:41 AM - Forum: Web Scraping & Web Development - Replies (17)

[python]
import requests
import urllib.request
from bs4 import BeautifulSoup
from flask import Flask

with requests.session()as c:
url="htt..... More

Print this item

  Jupyter and python terminal
Posted by: dervast - Mar-29-2019, 08:01 AM - Forum: General Coding Help - Replies (3)

Hi,
I am very new to python. We use jupyter notebooks since people find them easy to share and nice that some of the figures/plots are also part of t..... More

Print this item

  MEDIA ROOT
Posted by: ionezation - Mar-29-2019, 07:51 AM - Forum: General Coding Help - Replies (1)

When I am running this code from Tutorial of Cory Sheafor ... I am not able to make a file named profile.html in my templates/users/ folder :/ .. is t..... More

Print this item

  euclidean distance
Posted by: jenya56 - Mar-29-2019, 01:09 AM - Forum: General Coding Help - Replies (3)

Dear all,
I have two 2D arrays (size nxm) and I want to calculate the Euclidean distance between them. Meaning that the distance will be a single num..... More

Print this item

  Can't uninstall PyCharm
Posted by: Exsul - Mar-29-2019, 12:26 AM - Forum: Bar - Replies (1)

I can't uninstall PyCharm. When I try, even when I double-click uninstall.exe in the installation folder, I get this error:

----------------------..... More

Print this item

  problems with python script and special characters
Posted by: last08 - Mar-29-2019, 12:17 AM - Forum: General Coding Help - Replies (1)

Hi,
im new to python and am trying to use the below script but when i run it i get this error:
[error]IOError: [Errno 2] No such file or directory: ..... More

Print this item

  Why wont this work?
Posted by: ejected - Mar-29-2019, 12:14 AM - Forum: General Coding Help - Replies (2)

[python]Microsoft Windows [Version 10.0.17134.648]
© 2018 Microsoft Corporation. All rights reserved.

(venv) C:\Users\Mario\PycharmProjects\New Pro..... More

Print this item

  Optimization problem ( food menu )
Posted by: Truman - Mar-28-2019, 11:22 PM - Forum: General Coding Help - Replies (3)

[python]# -*- coding: utf-8 -*-
"""
Created on Thu Mar 28 00:56:50 2019

@author: TrumanB
"""


class Food(object):
def __init__(self, n, v, w):
..... More

Print this item

  Can anyone suggest alternatives to opencv for Python Images readout
Posted by: Spandora - Mar-28-2019, 11:11 PM - Forum: News and Discussions - Replies (3)

Hi I am new to python platform. I would like to read out images to plot mean value of all images. I want to use anyother import package that can suppo..... More

Print this item

  SQLite Query multiple column search
Posted by: whacky7 - Mar-28-2019, 11:08 PM - Forum: General Coding Help - Replies (6)

Hi Guys,

As per my previous post, I am new to Python (Gui) and in the process of learning.
I am having a particular issue with a search query aga..... More

Print this item

  Dictionary comprehension
Posted by: pawlo392 - Mar-28-2019, 10:58 PM - Forum: Homework - Replies (1)

Hello!
I want to write a function ,def count_words_starting_with_given_letter(text, letter):, for example:
print(count_words_starting_with_given_let..... More

Print this item

  stack machine
Posted by: camilefaith - Mar-28-2019, 10:53 PM - Forum: Homework - Replies (1)

eate a Stack Machine to validate if a string is a palindrome. You must validate the input string using the Stack machine


Here are the Stack Mac..... More

Print this item

  from .txt to database
Posted by: myp1lteandroid - Mar-28-2019, 10:26 PM - Forum: News and Discussions - Replies (2)

I have a .txt file (the content are from one data type say it is numerical) and I want to open this file using Python then read its content and then p..... More

Print this item

  Finishing GUI calculator project
Posted by: benybeastboy - Mar-28-2019, 10:12 PM - Forum: GUI - Replies (3)

I wrote this code but i need help with finishing it, i cant get the button to complete the equation, im net to python and coding btw..
[python]from t..... More

Print this item

  ModuleNotFoundError: No module named 'kivy'
Posted by: Exsul - Mar-28-2019, 09:03 PM - Forum: GUI - Replies (7)

I've installed Kivy to the specifications given in this documentation an..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Integer Factorization Too... 5 hours ago fosuwxb buran Code sharing
  My goal to be hired worki... Today, 00:21 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... 577352
  Tutorial Requ... 500695
  Web Scraping ... 441011
  Newbie with P... 385057
  New Users Int... 369545
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