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,283
» Latest member: alexferrina
» Forum threads: 38,793
» Forum posts: 175,876

Full Statistics

Online Users
There are currently 32 online users.
» 1 Member(s) | 27 Guest(s)
Bing, Google, Apple, lovedeep

Latest Threads
LhanePulse
Forum: General Coding Help
Last Post: Gichardaxora
1 hour ago
» Replies: 0
» Views: 7
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: snippsat
11 hours ago
» Replies: 5
» Views: 110
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 47
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,482
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 139
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 62
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,065
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,298
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 365
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 206

 
  Array manipulation
Posted by: 0zMeister - Feb-09-2020, 05:52 AM - Forum: General Coding Help - Replies (7)

Hi,

I've got some data in a csv file in the following format:
ID Number
a 1
a 2
a 3
a 4
b 5
b ..... More

Print this item

  demo not running for me - getting keyError
Posted by: wolf8963 - Feb-09-2020, 05:24 AM - Forum: General Coding Help - Replies (4)

Hi All,

I am trying to adapt a program to scrape data from a cisco phone web page. I found some code at https://srome.github.io/Parsing-HTML-Tables..... More

Print this item

  Hi , why can't i return this value?
Posted by: Houston222 - Feb-09-2020, 04:13 AM - Forum: General Coding Help - Replies (3)

def my_sum(x, y):
       sum = x + y
       return sum

my_sum(1, 2)
Hi all , i am trying to call this function, but this function ..... More

Print this item

  Confused on how to go about writing this or doing this...
Posted by: pythonforumuser - Feb-09-2020, 02:47 AM - Forum: General Coding Help - Replies (3)

Currently we have a Google Forms that people fill out with (NAME), (ADDRESS), and (CITY, STATE, ZIP CODE)

It automatically goes to 3 cells in googl..... More

Print this item

  Error while trying to see Python version with "sys.executable"
Posted by: karkas - Feb-08-2020, 07:32 PM - Forum: General Coding Help - Replies (5)

Hello everyone.

I know some computer science concepts and can write programs in Python, which I have done but for my own use in the shell. However,..... More

Print this item

  Simple Read File Issue
Posted by: blackjesus24 - Feb-08-2020, 07:18 PM - Forum: General Coding Help - Replies (4)

Hi,
So basically i'm trying to read something from a simple text file, and i don't really get any errors but the output is blank. Any help is appreci..... More

Print this item

  Struggling to exit this while loop
Posted by: fatherted99 - Feb-08-2020, 06:37 PM - Forum: General Coding Help - Replies (5)

[size=medium]Hello, I am a student (GCSE level) and I am writing this program which states the type of discount you require based on your age. I am co..... More

Print this item

  convert huge xml to csv using python
Posted by: srikanta_p - Feb-08-2020, 06:01 PM - Forum: General Coding Help - Replies (2)

Hi,

I have huge XML file of size 500mb which I want to convert to CSV using Python.i tried lot and not able to get proper output . Can some one hel..... More

Print this item

  Problème command
Posted by: paulo - Feb-08-2020, 04:01 PM - Forum: General Coding Help - Replies (2)

Bonjour à tous,

J'ai un petit soucis concernant mon programme.
Quand j'appelle directement la fonction 'louer-materiel', il m'affiche le numéro re..... More

Print this item

  Dicom image reading
Posted by: smitha - Feb-08-2020, 03:42 PM - Forum: General Coding Help - Replies (2)

Hi all

I am trying to read a dicom image. The image has 49 frames. The PixelData has some bytes in the array. But the pixel_array is not working. ..... More

Print this item

  Selenium webdriver error
Posted by: WiPi - Feb-08-2020, 02:57 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi guys,
I'm very new to Python - trying to use Selenium to scrape dynamic web pages and can't even get over 1st hurdle!!!
[python]from selenium imp..... More

Print this item

  Add path to a local file in pop-up field
Posted by: pythonscripting - Feb-08-2020, 01:38 PM - Forum: General Coding Help - Replies (1)

I am scripting in Selenium no problems on that.

At a certain point I click on browse (a http element) and a pop-up opens to upload a local file fro..... More

Print this item

  Can a module be executed even if the computer running it does not install it?
Posted by: CFYB - Feb-08-2020, 12:16 PM - Forum: General Coding Help - Replies (5)

Hello, I'm French, so sorry for the spelling mistakes.
I ask myself a question about the modules:
if for example I make a game with pygame and I giv..... More

Print this item

  How can I paste an entire file from clipboard to a folder?
Posted by: daverave1212 - Feb-08-2020, 10:49 AM - Forum: General Coding Help - Replies (5)

Hello,

I am making a script which works with non-text files.
I want to get the entire file, with name, extension, etc from the clipboard, and past..... More

Print this item

  add() takes 2 positional arguments but 3 were given
Posted by: Man_from_India - Feb-08-2020, 08:11 AM - Forum: General Coding Help - Replies (3)

I have two python files - Addition.py and test,py

Addition.py

[python]
class Addition:
num1 = 0
num2 = 0

def add(n1, n2):
num1 ..... More

Print this item

  saving text file by FileDialog option
Posted by: atlass218 - Feb-08-2020, 07:48 AM - Forum: GUI - Replies (14)

Hi, this is the code that i was able to realize by following steps seen on one of the forums :
[python]
def create_file_from_tableWidget(self):
..... More

Print this item

  Raise an exception for syntax error
Posted by: sbabu - Feb-08-2020, 05:08 AM - Forum: Homework - Replies (8)

try:
    print("Syntax Error)  # Ending quote omitted   
except SyntaxError:
    print("Syntax Error")
[b]SyntaxError: EOL wh..... More

Print this item

  Question about the groupby function
Posted by: new_to_python - Feb-08-2020, 04:39 AM - Forum: General Coding Help - Replies (7)

Hi, I have the following code:

[python]
import itertools
first_letter = lambda x: x[0]
names = ['Alan', 'Adam', 'Wes', 'Will', 'Albert', 'Steven..... More

Print this item

  My Loop for printing text file goes to infinity
Posted by: Nomex - Feb-08-2020, 03:44 AM - Forum: Homework - Replies (7)

I have to print a text file (cities) in a While Loop but it goes to infinity
[python]
filehandle=open("cities.txt", "r")
f = filehandle.readline()
w..... More

Print this item

  Sympy error "object is not callable"
Posted by: Cupcake - Feb-08-2020, 02:22 AM - Forum: General Coding Help - No Replies

I am trying to use sympy to solve a second order ODE. When I run the code below, I get the error: 'f' object is not callable. T don't understand what ..... More

Print this item

  Why reindex converts integer to decimal?
Posted by: new_to_python - Feb-08-2020, 02:20 AM - Forum: Data Science - Replies (2)

Hi, I have the following code:

[python]
frame = pd.DataFrame(np.arange(9).reshape((3,3)),
index=['a', 'c', 'd'],
..... More

Print this item

  Ordering of pandas DataFrame
Posted by: new_to_python - Feb-08-2020, 02:04 AM - Forum: Data Science - Replies (5)

Hello, I am new to pandas.

[python]
data = {'state': ['Ohio', 'Ohio', 'Ohio', 'Nevada', 'Nevada', 'Nevada'],
...: 'year': [2000, 200..... More

Print this item

  f-string issues in 3.6.9 (?)
Posted by: KSterner - Feb-08-2020, 01:50 AM - Forum: General Coding Help - Replies (4)

Hey all,

I'm pretty new to the world of Python but I would really appreciate some help with a small problem I seem to be having. If it helps, I am..... More

Print this item

  Where to put the global keyword when assigning variables outside a function?
Posted by: new_to_python - Feb-08-2020, 01:50 AM - Forum: General Coding Help - Replies (8)

Hello, I came across the following code:

a = None

def bind_a_variable():
  global a
  a = []

bind_a_variable()
It i..... More

Print this item

  Questions about elements in dict
Posted by: new_to_python - Feb-08-2020, 01:41 AM - Forum: General Coding Help - Replies (5)

Hi, I am new to Python. I came across the following example:

"Like dicts, set elements generally must be immutable. To have list-like elements, you..... More

Print this item

  Python Nested if-else ladders
Posted by: kdelsorbo - Feb-08-2020, 12:05 AM - Forum: Homework - Replies (4)

I am trying to utilize a while loop with an if-else ladder nested inside in order to take user input for menu items and add menu item prices together...... More

Print this item

  Understanding Python's Import Engine
Posted by: MysticaL - Feb-07-2020, 10:23 PM - Forum: General Coding Help - Replies (1)

Hi,

I have a question pertaining to importing post python 3.4 (I am using python 3.8). It is my understanding that the import engine will internall..... More

Print this item

  Python using BS scraper
Posted by: paulfearn100 - Feb-07-2020, 10:04 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello please can some point me in the right direction
- i have been dabbling and leaning Python with Beautiful soup and web scraping
i would like to..... More

Print this item

  Damegender
Posted by: davidam - Feb-07-2020, 09:53 PM - Forum: News and Discussions - No Replies

If you want try a new gender detection tool...
$ pip3 install damegender[all]
$ git clone https://github.com/davidam/damegender
$ firefox http://ww..... More

Print this item

  netmiko connecting to arista devices.
Posted by: dan1962 - Feb-07-2020, 09:23 PM - Forum: Networking - No Replies

Creating a Python script that will log into a Arista Switch, from there it will save config, then tftp to a tftp server and copy the running-config.
..... More

Print this item

  PyQt5 Installation
Posted by: Clamantium - Feb-07-2020, 08:08 PM - Forum: GUI - Replies (2)

I am trying to teach myself to code in Python using various resources and want to create my first, very simple, desktop application. I have no coding ..... More

Print this item

  Acces to page denied
Posted by: julio2000 - Feb-07-2020, 07:41 PM - Forum: Web Scraping & Web Development - Replies (1)

driver = webdriver.Chrome()
driver.get('https://www.snipes.nl/login')
So I made this simple piece of code where it go's to a ..... More

Print this item

  Calculation using output of if statement
Posted by: StephenBeckman - Feb-07-2020, 07:30 PM - Forum: General Coding Help - Replies (3)

I want to calculate the amount of state tax withheld from a paycheck using a calculator coded with python below is the code i have wrote thus far:
i..... More

Print this item

  Proper Layout of Code Question
Posted by: TheJax - Feb-07-2020, 06:47 PM - Forum: General Coding Help - Replies (2)

Is there a 'standard' or 'preferred' way of coding in Python when coding functions?

Should the functions be listed in order they are called from to..... More

Print this item

  "cant find python.exe"
Posted by: daniel1319 - Feb-07-2020, 06:46 PM - Forum: News and Discussions - Replies (2)

Hi, hope you can help me, i am having a bad time.

I am trying to run a 3d printing software but it shows this message
"Cant find python.exe, Pleas..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  LhanePulse 1 hour ago Gichardaxora Gichardaxora General Codin...
  data fetching for indian ... 11 hours ago drakhsin snippsat Web Scraping ...
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
Most views
  The best Prog... 579256
  Tutorial Requ... 512102
  Web Scraping ... 442185
  Newbie with P... 386294
  New Users Int... 379594
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+ 12109
buran 8196
snippsat 7390
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
alexferrina Today
MattCarters Yesterday
drakhsin Yesterday
MileHigh303 11-21
ndx101 11-21

User Panel Messages

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