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,299
» Latest member: matt
» Forum threads: 38,796
» Forum posts: 175,893

Full Statistics

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

Latest Threads
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
3 minutes ago
» Replies: 3
» Views: 91
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
6 hours ago
» Replies: 1
» Views: 49
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Today, 08:47 AM
» Replies: 3
» Views: 132
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Today, 04:40 AM
» Replies: 6
» Views: 3,194
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 02:50 AM
» Replies: 6
» Views: 260
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 144
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 98
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,531
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 184
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 87

 
  Save console output to text file (like a log)
Posted by: koticphreak - Jun-02-2019, 04:32 PM - Forum: General Coding Help - Replies (9)

I have a python script that runs and it outputs things along the way. It's important that it outputs them in the command line, but at the end, I want ..... More

Print this item

  Question on Join() function
Posted by: sduvvuri - Jun-02-2019, 02:16 PM - Forum: General Coding Help - Replies (2)

Hi Friends,

I am completely new to coding & learning python from a book at home. So I have started from ABSOLUTE ZERO. Never done coding before in..... More

Print this item

  Iteration
Posted by: ibzi - Jun-02-2019, 11:05 AM - Forum: General Coding Help - Replies (2)

What is iteration in python. Huh

i was learning new functions in python and crossed across these definitions

zip() Returns an [b]iterator[..... More

Print this item

  How does 'any' and 'all' work?
Posted by: ibzi - Jun-02-2019, 10:50 AM - Forum: General Coding Help - Replies (3)

So i searched the internet for how these two functions work. This is what i gathered. they work like all works if all are true and any works if any ar..... More

Print this item

  Apply function on different columns as defined
Posted by: DavidGG - Jun-02-2019, 07:59 AM - Forum: Data Science - Replies (6)

I have a function that returns the BMI from a given dataframe with columns 'Weight' and 'Height'
Here is the function:
[python]def BMI(data):
r..... More

Print this item

  Select Drop down is not working properly
Posted by: ankitjindalbti - Jun-02-2019, 07:37 AM - Forum: Web Scraping & Web Development - Replies (3)

On a certain web page, I am trying to select the various options in <Select> drop down using select_by_index() function. But the surprising thing is t..... More

Print this item

  huge list of whole numbers
Posted by: Skaperen - Jun-02-2019, 06:56 AM - Forum: General Coding Help - Replies (3)

i have a massively huge list of numbers and i am trying to think of efficient ways to process these with Python. there are about 360 billion numbers ..... More

Print this item

  finally clause
Posted by: Skaperen - Jun-02-2019, 04:36 AM - Forum: General Coding Help - Replies (6)

documentation says that the code in a finally: clause gets run whether the exception happens, or not. what is the difference between using [i]..... More

Print this item

  How to filter_by with a list
Posted by: SheeppOSU - Jun-02-2019, 02:04 AM - Forum: Web Scraping & Web Development - No Replies

I am filtering through posts and I want for the filter to be a list of users. How would I go about doing that
[python]posts = Post.query.filter_by(au..... More

Print this item

  Rewriting an applications in Python
Posted by: falsedmitri - Jun-01-2019, 10:47 PM - Forum: News and Discussions - Replies (4)

We have a C#/.net application. It is becoming obsolete. I am thinking we could rewrite it in Python.
The application has an extensive GUI (too much f..... More

Print this item

  improving bot with pandas
Posted by: maman420 - Jun-01-2019, 08:34 PM - Forum: Data Science - No Replies

hey everyone, i'm trying to improve my instagram selenium bot with pandas.
i want him to add every url that he is visiting to a file and work only if..... More

Print this item

  Creating a bot for online website game or computer games
Posted by: SheeppOSU - Jun-01-2019, 07:28 PM - Forum: Tutorial Requests and Submissions - Replies (1)

I recently learned how I could automate some games. For this example i am automating "powerline.io". This can be applied with many games and looks rea..... More

Print this item

  Improving bot
Posted by: SheeppOSU - Jun-01-2019, 05:10 PM - Forum: General Coding Help - No Replies

I made a bot to play powerline.io for me... it kinda works. I was wondering if anyone had any suggestions on how I could improve it. I have two versio..... More

Print this item

  Calculus with Python
Posted by: jfkoehler - Jun-01-2019, 04:58 PM - Forum: News and Discussions - Replies (3)

Hi there. I've been using Python in my calculus class for a few semesters now and have a decent draft collection of notebooks that I'm considering mo..... More

Print this item

  looking for sample py to read from txt file into XML using lxml import etree
Posted by: venkat18 - Jun-01-2019, 04:37 PM - Forum: General Coding Help - Replies (3)

sample py to read from txt file into XML using lxml import etree
code is below
[python]

from lxml import etree
import csv

root = etree.Elemen..... More

Print this item

  html error 404
Posted by: SheeppOSU - Jun-01-2019, 04:20 PM - Forum: Web Scraping & Web Development - Replies (1)

I am getting the html error 404 and I don'y know why. I set it up as follows -
[python]FlaskBlog
|
|--main
| |--__init__.py
| ..... More

Print this item

  How to handle tables splitted across multiple web pages
Posted by: ankitjindalbti - Jun-01-2019, 03:59 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi
I am trying to print value from a table using the following code

row = browser.find_element_by_xpath("//table[@cols='8']/tbody/tr[last()]/td[2]..... More

Print this item

  Redefine __add__ for ints
Posted by: ihf - Jun-01-2019, 02:15 PM - Forum: General Coding Help - Replies (4)

Is it possible (for educational purposes), to redefine the behavior of a method such as __add__ for the int class? I know that one can modify _add__ f..... More

Print this item

  [split] Manual Sort without Sort function
Posted by: fulir16 - Jun-01-2019, 01:54 PM - Forum: Homework - Replies (2)

[python]#Get user input
a = int(input("Enter the first number: "))
b = int(input("Enter the second number: "))
c = int(input("Enter the third numbe..... More

Print this item

  pypy and wing personal7
Posted by: pfaber11 - Jun-01-2019, 12:08 PM - Forum: News and Discussions - Replies (2)

   
Could somebody please tell me where I'm going wrong I'm using pypy or trying to has anybody got any experience of this. If you click ..... More

Print this item

  RuntimeError: dictionary changed size during iteration
Posted by: Shreeniket987 - Jun-01-2019, 10:40 AM - Forum: General Coding Help - Replies (3)

So basically what I want is python code that counts how many times a word occurs in a paragraph for text auto summarization. I have managed to spit up..... More

Print this item

  write image into string format into text file
Posted by: venkat18 - Jun-01-2019, 06:18 AM - Forum: General Coding Help - Replies (2)

To write image file into text format using pytesseract.image_to_string, I am using below code. It is only writing last lne of the image into out file,..... More

Print this item

  an easy way to disable exception handling
Posted by: Skaperen - Jun-01-2019, 04:10 AM - Forum: General Coding Help - Replies (6)

while debugging code, often my exception handling obscures what is really going on. i usually have to take the exception handling out. and that is t..... More

Print this item

  dumping an object
Posted by: Skaperen - Jun-01-2019, 03:00 AM - Forum: General Coding Help - Replies (3)

i'm often dealing with an object that apparently is in a different state than expected. i run into this a few times and have to add and change a lot ..... More

Print this item

  How to modify and get the same picture
Posted by: vokoyo - Jun-01-2019, 01:17 AM - Forum: Homework - Replies (1)




May I know how to modify my Python programming thus I can get the same picture as refer to the attached file




[python]

from sc..... More

Print this item

  How define iteration interval increment
Posted by: SriMekala - Jun-01-2019, 12:39 AM - Forum: General Coding Help - Replies (5)

Hi,

I want to iterate through df rows and increase the iteration step increment by 3 (increment i=i+3 on each iteration). I use the below code, but i..... More

Print this item

  Installation
Posted by: Marsu_06 - Jun-01-2019, 12:02 AM - Forum: General Coding Help - Replies (4)

Hi,

First excuse my bad english, as it's not my mother tongue.

I work with Windows Xp SP3 32 bit, and installed python 3.4.0.
Can you say to me..... More

Print this item

  Pass command line argument with quotes
Posted by: koticphreak - May-31-2019, 10:25 PM - Forum: General Coding Help - Replies (3)

I'm relatively new to Python and have googled around enough to understand in general how to use os.system and subprocess, but struggling to essentiall..... More

Print this item

  Can't import the CSV module
Posted by: loren41 - May-31-2019, 10:02 PM - Forum: General Coding Help - Replies (1)

Can't import the CSV module. Error says "No module named CSV"
Using Sublime Text as my editor. Do I need to include a path name somewhere?

Print this item

  XlsxWriter: How can I append new data into not blank cells?
Posted by: aquerci - May-31-2019, 08:15 PM - Forum: General Coding Help - Replies (1)

to understand better what I want to do, I'll show you a simple example. following a little script to create an excel file named "test.xlsx" via XlsxWr..... More

Print this item

  Analyzing large text file with nltk.corpus (stopwords )
Posted by: Drone4four - May-31-2019, 07:25 PM - Forum: General Coding Help - Replies (9)

I’ve got a script which @snippsat helped me with previously which rank..... More


Attached Files

.txt   Alice.txt (Size: 159.97 KB / Downloads: 2020)
Print this item

  Print a JSON file
Posted by: mrobie - May-31-2019, 07:00 PM - Forum: General Coding Help - Replies (5)

I would like to print just the date and value?
[python]
import json

# read file
with open('resting_heart_rate-2014-02-28.json') as json_file:
..... More

Print this item

  Help with bullet travel
Posted by: GalaxyCoyote - May-31-2019, 06:38 PM - Forum: General Coding Help - Replies (8)

I am making a simple CTF game and the bullets aren't travelling, could someone help me?

[python]Blue_direction = 0
Red_direction = 0
game = True..... More

Print this item

  Find a substring in a dictonary; value substring of key
Posted by: aapurdel - May-31-2019, 06:00 PM - Forum: Homework - Replies (2)

Question: Find a substring

You are given a dictionary of the US states and their capitals (my actual list is larger than provided below). The keys ..... More

Print this item

  To Copy text values to Excel using Python
Posted by: ksasi2k3 - May-31-2019, 04:44 PM - Forum: General Coding Help - Replies (16)

I am using Python to copy values from Text file to excel, able to succeed in that but the problem is that when pasting values to excel the existing fo..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  silent deployment Python ... 3 minutes ago Bummibaer Larz60+ News and Disc...
  Proposal for PEP 6 hours ago matt Gribouillis News and Disc...
  My regex function is not ... Today, 08:47 Moltar1997 perfringo General Codin...
  best way to learn python Today, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... Yesterday, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  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...
Most views
  The best Prog... 579375
  Tutorial Requ... 512394
  Web Scraping ... 442292
  Newbie with P... 386343
  New Users Int... 380313
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+ 12111
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
matt Today
Divyakrishnan071 Today
ichsanputr Today
nicos18 Yesterday
Moltar1997 Yesterday

User Panel Messages

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