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,939
» Latest member: goodvicent
» Forum threads: 38,723
» Forum posts: 175,512

Full Statistics

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

Latest Threads
NEED HELP, LOST OF INVEST...
Forum: General Coding Help
Last Post: goodvicent
2 hours ago
» Replies: 0
» Views: 60
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
7 hours ago
» Replies: 11
» Views: 4,082
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Yesterday, 07:55 PM
» Replies: 2
» Views: 564
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Yesterday, 12:30 PM
» Replies: 1
» Views: 3,507
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Yesterday, 11:11 AM
» Replies: 4
» Views: 918
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,402
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,260
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,462
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,432
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,573

 
  super simple Ab translation function
Posted by: league55 - Jan-14-2018, 05:59 PM - Forum: Code sharing - Replies (8)

This is just a function that translates text to the Ab language. I've included two tests for it.

[python]def convert_to_ab(text):
temp = ''
..... More

Print this item

  [split] Here we go again another nightmare
Posted by: kawavil - Jan-14-2018, 05:41 PM - Forum: General Coding Help - Replies (1)

[quote="Blue Dog" pid="4564" dateline="1478737138"]I am trying to in stall scapy in python 2.7.12,I am running windows 7. I downloaded it and put it ..... More

Print this item

  Strange BS4 Scraping Issue
Posted by: digitalmatic7 - Jan-14-2018, 04:15 PM - Forum: Web Scraping & Web Development - Replies (1)

[python]
from bs4 import BeautifulSoup
import re
import requests

url = "http://www.foxnews.com/politics/2018/01/14/trump-says-newspaper-misquote..... More

Print this item

  Is this good style?
Posted by: league55 - Jan-14-2018, 03:36 PM - Forum: General Coding Help - Replies (3)

Just want to know whether this is good style:

[python]print("The length of your string is {} characters.".format(
len(input("Enter a string:..... More

Print this item

  get extensive package info with pip
Posted by: metulburr - Jan-14-2018, 02:20 PM - Forum: Web Scraping & Web Development - Replies (10)

pip show is only for installed packages while pip search does search pypi of uninstalled packages. However the resul..... More

Print this item

  Button animation is not working in a branch
Posted by: mgtheboss - Jan-14-2018, 01:21 PM - Forum: GUI - Replies (4)

Hi,

I am using a button animation that changes the relief to sunken on button click and changes it back to raised after 200 milliseconds. The butto..... More

Print this item

  QT_DEVICE_PIXEL_RATIO deprecated
Posted by: ndmrzk - Jan-14-2018, 01:13 PM - Forum: GUI - No Replies

Hi, Im trying out this tutorial that uses Anaconda/PyQt to create a ..... More

Print this item

  I am having a big issue in XlsxWriter
Posted by: pratheep - Jan-14-2018, 09:37 AM - Forum: General Coding Help - Replies (3)

[python]import xlsxwriter
workbook = xlsxwriter.Workbook('stat.xlsx')
worksheet = workbook.add_worksheet()
worksheet.write('A1','country')
workshe..... More

Print this item

  .Txt file to .CSV file conversion
Posted by: Chinmay - Jan-14-2018, 08:00 AM - Forum: General Coding Help - Replies (2)

Hi Team,
I am working on below python script which task is "It will take whatever data present in a .txt file and load it into in a .csv file as outpu..... More

Print this item

  GrandParents : For fun :)
Posted by: William049 - Jan-14-2018, 07:56 AM - Forum: Homework - Replies (10)

[FOR FUN]
Hello everyone, I had the idea yesterday to improve my program (genealogical tree) which currently displays on the screen the ascendants, ..... More

Print this item

  How to convert a Status object to String?
Posted by: Vucko - Jan-14-2018, 06:09 AM - Forum: General Coding Help - Replies (6)

Really need some help, been stuck on this for hours. So I'm working on a small Twitter bot that is using Tweepy.

I have it working so that when my ..... More

Print this item

  Selenium - Googlemaps element not visible
Posted by: Barnettch3 - Jan-14-2018, 05:08 AM - Forum: Web Scraping & Web Development - Replies (3)

Looking for anyone clever enough to figure this one out for me.
With python 3 I am writing a script that uses Selenium to open googlemaps enter a
s..... More

Print this item

  insert list into sqlite3
Posted by: mepyyeti - Jan-14-2018, 12:16 AM - Forum: General Coding Help - Replies (3)

[python]
#sqlnuff0.py

import sqlite3, time, datetime, random

words = ['foo','bar','moo','soo','noo','boo','fee']

conn = sqlite3.connect('yes..... More

Print this item

  New standart library in v. 3.7 - Data Classes
Posted by: wavic - Jan-13-2018, 09:04 PM - Forum: News and Discussions - Replies (2)

https://www.python.org/dev/peps/pep-0557/

As I understand that, it is to create classes to store values in it.

Print this item

  MP4 decoder
Posted by: jdewk - Jan-13-2018, 08:46 PM - Forum: General Coding Help - Replies (4)

I want to read the video and audio information from mp4 file format.If possible I want to run under python 2.7.I have searched but couldn`t find any

Print this item

  build array list
Posted by: raopatwari - Jan-13-2018, 07:29 PM - Forum: General Coding Help - Replies (8)

I am writing function to return the list of files in unix directory. it is returning one file.
fl = []
WORKING_DIR='../'+sys.argv[1]+'/'
def find_c..... More

Print this item

  list problem
Posted by: python_newbie09 - Jan-13-2018, 04:54 PM - Forum: General Coding Help - No Replies

how can i improve the code below, the problem lies with how y_pred is stored which i cant add to total. the idea is to calculate accuracy over 150 tra..... More

Print this item

  Selenium with headless firefox is slow
Posted by: mgtheboss - Jan-13-2018, 03:47 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi,

I've started experimenting with selenium & headless firefox. The code I am using is similar to what @snippsat shared on ..... More

Print this item

  Plants vs Zombies. Images Ideas.
Posted by: Windspar - Jan-13-2018, 03:44 PM - Forum: Bar - Replies (2)

Playing around with blender. Still have alot to learn. I'm not a very good artist.
Thinking having pepper attract zombie from next lane.
[img]https:..... More

Print this item

  syntax error?
Posted by: Culm - Jan-13-2018, 03:41 PM - Forum: General Coding Help - Replies (2)

Newbie -- trying to learn python on mac. Installed v2 and v3. -- tried to run the following script from terminal:
[python]
#!/usr/bin/python
# -*- ..... More

Print this item

  Help with list Syntax.
Posted by: jarrod0987 - Jan-13-2018, 12:59 PM - Forum: General Coding Help - Replies (2)

I have been working with lists for a while now and I thought it was easy but right now I cannot get it to cooperate.

I have a dictionary full of wo..... More

Print this item

  Google Developer console ERROR: JAR_SIG_NO_MANIFEST: Missing META-INF/MANIFEST.MF
Posted by: kivyuser - Jan-13-2018, 11:36 AM - Forum: General Coding Help - Replies (5)

Hello im a beginner i have this information:



My path is cd ~/.buildozer/android/platform/android-sdk-21/build-tools/19.1.0/

the name of my a..... More

Print this item

  Correspondence of values
Posted by: William049 - Jan-13-2018, 10:54 AM - Forum: Homework - Replies (10)

Hello I'm new:), I'm on the realisation of a family tree project, it is 95% complete (approximately 200 lines) But I can't do something that I think i..... More

Print this item

  TypeError: can only concatenate list (not "str") to list
Posted by: Skaperen - Jan-13-2018, 06:50 AM - Forum: News and Discussions - Replies (1)

[output]lt1/forums /home/forums 1> py3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "cred..... More

Print this item

  NameError: name 'download' is not defined
Posted by: ntdropper - Jan-13-2018, 06:33 AM - Forum: Web Scraping & Web Development - Replies (3)

I am trying to extract the country area from example website. And I got following errors. I am using python version 3.6
[python]
from bs4 import Beaut..... More

Print this item

  Python powered
Posted by: Skaperen - Jan-13-2018, 04:28 AM - Forum: Board - Replies (16)

that new image at the top of each page says "Python powered", yet the forum is still running on a PHP based forum code base.

Print this item

  Need help with code :(
Posted by: Daniel97 - Jan-13-2018, 03:05 AM - Forum: Homework - Replies (2)

I'm new to Python and I have a presentation due in however all my members are not helping or responding the presentation requires us to make uml diagr..... More

Print this item

  How to convert matlab code to python?
Posted by: Ricop522 - Jan-13-2018, 01:55 AM - Forum: General Coding Help - No Replies

Hello, I am trying to convert some matlab source code to python and I am having some troubles, could anyone help me?

Here's the matlab version of t..... More

Print this item

  Why isn't this code working ? (noob here)
Posted by: SuperSymmetry - Jan-12-2018, 08:52 PM - Forum: General Coding Help - Replies (1)

[b]It should output the list with the dictionary with the changed values as specified in the second for loop, but it doesnt. Picture of output is incl..... More

Print this item

  virtualenv activate.ps1 hash error
Posted by: po20 - Jan-12-2018, 08:41 PM - Forum: General Coding Help - Replies (2)

Hello

I try to work with a virtual environment under windows

I'm using Python 3.6, installed on c:\Python36-32 and everything I do as a command ..... More

Print this item

  How to sample data from training data set?
Posted by: python_newbie09 - Jan-12-2018, 08:07 PM - Forum: General Coding Help - No Replies

Hi all,

I have split my data randomly where 2/3 of my data is kept for training while 1/3 is kept for testing. I have to now determine the mean err..... More

Print this item

  Is pathlib a viable replacement for os.path?
Posted by: j.crater - Jan-12-2018, 07:01 PM - Forum: General Coding Help - Replies (4)

So far I have used only os.path, and as I have stumbled over that topic in a guide I am reading, it got me wondering...
Can pathlib replace os.path co..... More

Print this item

  Install issue 2.7.9 vs 2.7.14
Posted by: Spankybus - Jan-12-2018, 06:31 PM - Forum: General Coding Help - Replies (2)

Hey Mates,

Sorry if this is in the wrong location, but I didnt see a support section. Anyone run into an issue with win 10 where the 64-bit msi wil..... More

Print this item

  Error while scraping item price from online store
Posted by: mgtheboss - Jan-12-2018, 05:14 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

I am trying to scrape the price of an item from an online store. The code works with sites such as ebay.com, amazon.com etc. and many others bu..... More

Print this item

  misclassification rate calculation for multi class label
Posted by: python_newbie09 - Jan-12-2018, 04:18 PM - Forum: Homework - Replies (1)

I have a confusion matrix with 4 labels and the results were as below

[[ 81 4 41 0]
[ 10 10 6 1]
[ 7 0 392 0]
[ 4 2 8 5..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  NEED HELP, LOST OF INVEST... 2 hours ago goodvicent goodvicent General Codin...
  403 Error 7 hours ago CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... Yesterday, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... Yesterday, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... Yesterday, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576404
  Tutorial Requ... 498155
  Web Scraping ... 440302
  Newbie with P... 384183
  New Users Int... 367144
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+ 12089
buran 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
goodvicent Today
atylerfraces2254 Today
AdrianCocian Today
humanoidAI Today
Baran12332 Yesterday

User Panel Messages

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