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,265
» Latest member: Rerus3700
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

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

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:07 PM
» Replies: 2
» Views: 105
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:42 PM
» Replies: 1
» Views: 68
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 01:54 PM
» Replies: 1
» Views: 65
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 319
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 46
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 80
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 285
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 152
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 249
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 436

 
  Looping Input form / results
Posted by: MikeAW2010 - Jan-16-2018, 06:50 AM - Forum: General Coding Help - Replies (5)

I am learning Python and PyMongo a bit on the fly.

Here is a basic gist of what I need but I dont know the best way to pursue it. I need Python to ..... More

Print this item

  Help with pandas dataframe
Posted by: saibottrenham - Jan-16-2018, 06:36 AM - Forum: Data Science - No Replies

Hey guys,

I have a data frame such as

[python]dfA =
id jobtag suc_score
0 54 channel m..... More

Print this item

  I've been programming in a vacuum
Posted by: Rabbyte - Jan-16-2018, 02:46 AM - Forum: Game Development - Replies (9)

I have been developing a program to emulate the terminal operating system from the fallout universe, I aim to make it a fully functional interface add..... More

Print this item

  Writing emojis to file
Posted by: alex36540 - Jan-16-2018, 01:16 AM - Forum: General Coding Help - Replies (1)

Hello, I am dealing with data that involves emojis and I would like to write them to a file. The data does not come from inside the python editor, I r..... More

Print this item

  importing datetime trouble
Posted by: Dixon - Jan-15-2018, 10:52 PM - Forum: General Coding Help - Replies (4)

I'm new here, so please excuse if this is posted in the wrong place. I've been trying to learn Python, using ver. 3.6.4, and for the most part am ent..... More

Print this item

  Question for dataframe to replace INF value
Posted by: zydjohn - Jan-15-2018, 10:00 PM - Forum: Data Science - No Replies

[python]
import pandas as pd
df1 = pd.DataFrame({'a': [1.0, 1.1, 1.2 ], 'b': [ 0.5, 1.1, 1.0 ]})
mid = (df1['a'] + df1['b']) / 2.0
aMid = df1['a']..... More

Print this item

  Alternative for time.sleep()?
Posted by: Atkion - Jan-15-2018, 09:49 PM - Forum: General Coding Help - Replies (1)

Ok, so I'm trying to design a giveaway system for an IRC chatbot. What I want to do is when someone puts in the !giveaway command, it sets isOpen to t..... More

Print this item

  Chaining scripts
Posted by: Steffenwolt - Jan-15-2018, 09:30 PM - Forum: General Coding Help - Replies (3)

Hello all,For datalogging purposes i have concoted several scripts.
One reads a MCP3008 adc, another reads several 1-wire sensors, one gets the date ..... More

Print this item

  What is effort?
Posted by: mamagosia - Jan-15-2018, 08:30 PM - Forum: General Coding Help - Replies (2)

Hello,

I found in the Net a code that is very helpful for me in my project. When I analyze it I have found:

[python]
tab.effort = [b[0],b[1], ..... More

Print this item

  is there a way to automate instatiation of objects?
Posted by: league55 - Jan-15-2018, 08:29 PM - Forum: General Coding Help - Replies (2)

Suppose I want to create a Card class for standard playing cards like this:

[python]class Card:

def __init__(self, description, strength):
..... More

Print this item

  How do I make an advanced shader
Posted by: Rabbyte - Jan-15-2018, 07:26 PM - Forum: Game Development - Replies (3)

I have been using pygame a couple months now and have been using it to recreate the terminal interface from the fallout universe (with a few tweaks to..... More

Print this item

  Backup Retail POS
Posted by: pando - Jan-15-2018, 07:05 PM - Forum: Code sharing - Replies (4)

While at work yesterday (small retail setting) the POS systems all crashed and left us manually writing down and calculating taxes by hand. I experime..... More

Print this item

  How can I create a keystore?
Posted by: kivyuser - Jan-15-2018, 05:41 PM - Forum: General Coding Help - No Replies

What are the steps to create a keystore for android i use XUBUNTU,i know its not right place for post this question please be patience with me but i ..... More

Print this item

  Passing string args to Popen
Posted by: CardBoy - Jan-15-2018, 05:30 PM - Forum: General Coding Help - Replies (3)

Hi
I want to execute this command via Popen in my python script

[quote]
diff --old-line-format="" --new-line-format="%5dn> %L" --unchanged-lin..... More

Print this item

  Phillips hue simple on script
Posted by: Kimzer - Jan-15-2018, 05:10 PM - Forum: General Coding Help - Replies (6)

Any reason this shouldnt work anymore?`
Updated my raspberry pi and since it has been unable to actually turn my phillips hue lights on with the scri..... More

Print this item

  Issue using print statement in a thread
Posted by: bweiss1258 - Jan-15-2018, 03:22 PM - Forum: General Coding Help - Replies (9)

I'm having an issue with text output from a thread staying visible in the interpreter. The code below can be used to demonstrate the problem following..... More

Print this item

  How does multi-processing in python increase the execution time?
Posted by: kadsank - Jan-15-2018, 01:15 PM - Forum: General Coding Help - No Replies

I have tried simple piece of python code containing two for-loops using multi-processing pool.

First I set the pool=1, total execution time was= 22..... More

Print this item

  locating element with selenium after login
Posted by: sumandas89 - Jan-15-2018, 12:44 PM - Forum: Web Scraping & Web Development - Replies (1)

I wrote a script to locate the search bar in my facebook home page. Code for login into my facebook profile using selenium worked perfectly. I got the..... More

Print this item

  Sql Injection using python
Posted by: sumandas89 - Jan-15-2018, 11:29 AM - Forum: General Coding Help - Replies (2)

Is it possible to write sql injection code using python? How can I learn to write this? I know sql and web scraping using pyhton what are the other th..... More

Print this item

  date format without time
Posted by: issac_n - Jan-15-2018, 10:53 AM - Forum: Data Science - Replies (6)

i wanted to truncate the time from this 03/01/2018 00:00 to 2018-01-03 and i tried list comprehension but working. Doh
any idea?
[python] ..... More

Print this item

  Use of zlib and iconv in building lxml
Posted by: sachinsharma - Jan-15-2018, 09:52 AM - Forum: General Coding Help - Replies (3)

up vote
0
down vote
favorite
We have build lxml4.0.0 with python 2 version with 5 dependencies

iconv-1.9.1.win32.zip,

libxml2-2.6.23.win32.z..... More

Print this item

  Looping help
Posted by: Wilson1218 - Jan-15-2018, 06:47 AM - Forum: Homework - Replies (21)

Hello, I need help looping some code. The problem is that there are many lists that I have to .append to and they are all named similarly, but differe..... More

Print this item

  a solution to the Subset Sum Problem
Posted by: league55 - Jan-15-2018, 02:56 AM - Forum: Code sharing - Replies (16)

(The Subset Sum Problem involves determining whether any combination of the elements of a set of integers adds up to zero. For example, for the set {-..... More

Print this item

  Make my codes more simple,
Posted by: Codebringer - Jan-14-2018, 10:18 PM - Forum: General Coding Help - Replies (3)

Hi,
Is there a way to write my code more simple, more readable, cleaner. I need all the help I can get. Im headed to germany for a famillie reunion a..... More

Print this item

  Rock Paper Scissors (Need help)
Posted by: Lukili - Jan-14-2018, 09:21 PM - Forum: General Coding Help - Replies (1)

So i've been trying to figure out what is wrong here but i think that i dont have enough experience in python yet.
Can anyone point out my mistake h..... More

Print this item

  Need Help Opening A New Tab in Selenium
Posted by: HiImNew - Jan-14-2018, 08:05 PM - Forum: Web Scraping & Web Development - Replies (2)

It seems simple enough, and I've tried a few different ways but none of them have worked so far. To Open a new tab in Chrome (which works the same way..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... Yesterday, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... Yesterday, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... Yesterday, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 579017
  Tutorial Requ... 510852
  Web Scraping ... 442028
  Newbie with P... 386066
  New Users Int... 377449
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Rerus3700 Today
pas88 Today
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday

User Panel Messages

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