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,312
» Latest member: elizabethlittle6258
» Forum threads: 38,801
» Forum posts: 175,924

Full Statistics

Online Users
There are currently 38 online users.
» 0 Member(s) | 33 Guest(s)
Bing, Google, Applebot, AOL

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: Pedroski55
7 hours ago
» Replies: 12
» Views: 338
Python compiler
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 09:50 AM
» Replies: 1
» Views: 83
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
Nov-29-2025, 07:34 PM
» Replies: 5
» Views: 96
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
Nov-29-2025, 05:51 PM
» Replies: 0
» Views: 58
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Nov-29-2025, 07:39 AM
» Replies: 3
» Views: 11,145
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 221
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 751
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,850
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 222
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 176

 
  How to do in Python
Posted by: oldcity - Apr-26-2018, 03:20 PM - Forum: Data Science - Replies (6)

Using Python version 2.7.12 on Linux Mint 18.2. Will be upgrading os next week.
My background is that of various forms of basic and some perl. I hav..... More

Print this item

  The supplied user buffer is not valid for the requested operation.
Posted by: py2exe - Apr-26-2018, 12:48 PM - Forum: General Coding Help - Replies (1)

when I RUN THIS code on win7:



[python]import serial
import scanwin32

def get_available_coms():
avail = []
for order, port, desc, ..... More

Print this item

  Searching for a good programer to help with a project
Posted by: ashertehll6831 - Apr-26-2018, 12:07 PM - Forum: Jobs - Replies (1)

I have an idea for a simple inventory tracking project. I need a good programmer to help me write the code. I will be using a raspberry pi with a 3.5"..... More

Print this item

  Create custom Enumerations
Posted by: killerrex - Apr-26-2018, 12:03 PM - Forum: General Coding Help - Replies (2)

Hi,

I use the Enum class to have a nicer code when I need to deal with old fortran programs that expect just a number in their inputs. Otherwise my..... More

Print this item

  libPython2.7.dll environment issue
Posted by: allamsudhakar - Apr-26-2018, 12:02 PM - Forum: General Coding Help - Replies (1)

Hi, I am new to Python world. I was trying to use a open source Windows application that
uses Python. When I am trying to start the server, I get the..... More

Print this item

  Break Up Tuple List Into A Dataframe?
Posted by: digitalmatic7 - Apr-26-2018, 08:31 AM - Forum: General Coding Help - Replies (2)

It's my first time working with a tuple list, and I've run into a very strange issue.

df = pd.DataFrame(tuple_list)
Most items..... More

Print this item

  How to create mask for different types of images using opencv
Posted by: Prince_Bhatia - Apr-26-2018, 07:38 AM - Forum: Data Science - Replies (2)

I am trying to create a watermark remover in python using opencv. I have 10000 different images of 10 types of watermark in it, i have created an open..... More


Attached Files

Thumbnail(s)
       
Print this item

  unexpected output while parsing file
Posted by: anna - Apr-26-2018, 07:22 AM - Forum: General Coding Help - Replies (3)

[python]import re
dnlist = []
maclist = []

with open('pppoe.txt','r') as f:
for line in f:
if '@ttml' in line:
dn =..... More

Print this item

  how to remove index in df Row?
Posted by: issac_n - Apr-26-2018, 07:14 AM - Forum: Data Science - Replies (3)

I am trying to split a string text by ",&: " and put it back to newly created df with columns name
but facing a problem, the result overwrite/ignored..... More

Print this item

  Drills/Exercises for collections, itertools, and common built-in data structures?
Posted by: Cranberry - Apr-26-2018, 06:39 AM - Forum: General Coding Help - Replies (2)

It seems pretty useful/efficient to have a good grasp on the collections, itertools module, and the methods and properties of things like strings, dic..... More

Print this item

  How to clean html content using BeautifulSoup in Python 3.6?
Posted by: PrateekG - Apr-26-2018, 05:37 AM - Forum: Web Scraping & Web Development - Replies (5)

I have created a pandas DataFrame which stores the html content of a product description. The html content is like below-

<p><img src="//ad.xyz.com..... More

Print this item

  Defect Detection using OpenCV
Posted by: Ranganath - Apr-26-2018, 05:35 AM - Forum: General Coding Help - Replies (1)

Dear Members,

I am trying to detect defect in image by comparing defected image with original one.
I have achieved it so far using canny al..... More

Print this item

  populating csv and searching the file
Posted by: mepyyeti - Apr-26-2018, 01:44 AM - Forum: General Coding Help - Replies (1)

So this has been a long term project I can't seem to crack. I've decided to post the problem start from the initial 'bad' function, then the tracebac..... More

Print this item

  I'm dividing large numbers of about 25 million digits I need to retain decimal format
Posted by: Pleiades - Apr-26-2018, 12:43 AM - Forum: General Coding Help - Replies (2)

Does anyone know the best script for a python module, big division? Thanks a bunch:)

Print this item

  CSV file created is huge in size. How to reduce the size?
Posted by: pramoddsrb - Apr-26-2018, 12:38 AM - Forum: General Coding Help - No Replies

I have the below code used to create a CSV file:

[python]
import csv
srcFile = open("C:\Users\XXXX\Expenses.csv","r")
data = srcFile.read()

s..... More

Print this item

  Python in the enterprise
Posted by: jmac - Apr-25-2018, 11:50 PM - Forum: News and Discussions - Replies (1)

Hello from the dark side everyone! I run a medium sized .net shop delivering enterprise apps to our business of around 1000 users. My question: are ..... More

Print this item

  multi-threaded file parsing
Posted by: bb8 - Apr-25-2018, 10:14 PM - Forum: General Coding Help - Replies (3)

hi
i have a large file which i need to parse
it has data put in some format, i.e.
[python]
data1 data2
data3
key1 value1
key2 value2
...[/pyth..... More

Print this item

  Need help with the coding!
Posted by: anganatra - Apr-25-2018, 09:10 PM - Forum: General Coding Help - Replies (1)

how to draw multiple horizontal lines, this should have capabilities of zoom in zoom out feature with the calendar involved through which we can imple..... More

Print this item

  parsing table
Posted by: ian - Apr-25-2018, 08:16 PM - Forum: Web Scraping & Web Development - Replies (10)

A table has one tag <tbody> with 100 of <tr> in it but I only can find table and get the error below when parsing tags in the table. Is it possible so..... More

Print this item

  Bounce Game Problems
Posted by: SheeppOSU - Apr-25-2018, 08:09 PM - Forum: General Coding Help - Replies (3)

So i finished the Bounce game and when I hit run it didn't work so I checked the errors it gave and the lines it told me but it's the same code from t..... More

Print this item

  School Work Assignment: Snake Game
Posted by: DarksideMoses - Apr-25-2018, 07:45 PM - Forum: Homework - Replies (6)

Hello i'm working on a schoolwork assignment, the code below is for a snake game. I am running this in a PyCharm. When I run the code in PyCharm I ge..... More

Print this item

  Letters used
Posted by: LukeM2 - Apr-25-2018, 06:51 PM - Forum: Homework - Replies (1)

Usually don't have an issue with tasks like this but I can't think of a simple way to do this task:
-------------------------------------------------..... More

Print this item

  Pascal's triangle
Posted by: nvakada - Apr-25-2018, 06:38 PM - Forum: Homework - Replies (5)

Pascal's triangle is a mathematical array of binomial coefficients. write a program that outputs the Nth row of the triangle, where N is given as inpu..... More

Print this item

  Help needed on Fibonacci series
Posted by: nvakada - Apr-25-2018, 06:36 PM - Forum: Homework - Replies (1)

Write a program that takes input of an integer N, followed by N more integers. For each integer, output the next fibonacci number.


Constraints:
..... More

Print this item

  Changing values in a dictionary within a dictionary
Posted by: swannhouse - Apr-25-2018, 06:16 PM - Forum: General Coding Help - Replies (2)

I am having a problem with over-accessing and changing values in a dictionary within a dictionary using the method 'startswith'.

I have a basic dic..... More

Print this item

  Tic-Tac-Toe restart
Posted by: gellerb - Apr-25-2018, 04:11 PM - Forum: GUI - Replies (1)

I would like to create an opportunity of restarting this game of Tic-Tac-Toe after it is finished. I was thinking of checking if all the created butto..... More

Print this item

  New to Python, having some trouble
Posted by: ted_gress - Apr-25-2018, 03:36 PM - Forum: Game Development - Replies (5)

Hi Everyone,

I'm new to Python and I'm trying to write a small game using Pygame called Necromancers Vs Werewolves. Its not a game in the normal s..... More

Print this item

  Advance properties read from xml files
Posted by: python1234 - Apr-25-2018, 01:42 PM - Forum: General Coding Help - No Replies

Hi All,

I am able to read the properties of workbooks using below code.

[python]from openpyxl import Workbook
from openpyxl import load_workboo..... More

Print this item

  Understanding compound operators -=
Posted by: NewatCode - Apr-25-2018, 01:38 PM - Forum: General Coding Help - Replies (3)

Hello, I am trying to self learn python from a book called the coders apprentice. I really like the book and I am learning from it. I encountered an e..... More

Print this item

  import just one class from a file
Posted by: sylas - Apr-25-2018, 01:21 PM - Forum: General Coding Help - Replies (4)

Hi all ! In a file called " __init__.py" I have many classes. I am only interested from the "class sudoku". In my "__main__.py" I write , at the top,..... More

Print this item

  Printing googolplex
Posted by: ThePiMan - Apr-25-2018, 11:38 AM - Forum: General Coding Help - Replies (2)

Hi. I am trying to write a program that will print the number googol plex (1 followed by a googol(1 followed by 100 zeros)zeros). However, when I run ..... More

Print this item

  Type hint produces Syntax error
Posted by: Digamma - Apr-25-2018, 11:35 AM - Forum: General Coding Help - Replies (4)

Hi, I use PyCharm and a venv based on Python 3.7
I want to use type hint :

[python]
def some_function(some_arg: str) -> bool:

return "some_st..... More

Print this item

  Convert .csv string into float
Posted by: YOYOYO - Apr-25-2018, 11:10 AM - Forum: General Coding Help - Replies (1)

Hi guys!

The file that results of a test I did is a .csv file, containing results only in str type.
How can I convert only a specific entire col..... More

Print this item

  Help adapting code
Posted by: pacaeiro - Apr-25-2018, 10:13 AM - Forum: General Coding Help - No Replies

Good morning to all!
I'm trying to change a python script to have a slightly different behaviour, but I'm stuck with this.

I have a Class: #pseudo..... More

Print this item

  Find period of signal
Posted by: PierreMc - Apr-25-2018, 09:56 AM - Forum: General Coding Help - No Replies

Hello everyone!

I'm new to this forum so I hope I am posting this thread at the right place.
I am getting a signal from an ultrasound sensor on an..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 7 hours ago Lou Pedroski55 General Codin...
  Python compiler Yesterday, 09:50 NeoQuant noisefloor General Codin...
  Trading Risk management s... 11-29, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... 11-29, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler 11-29, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579519
  Tutorial Requ... 513055
  Web Scraping ... 442383
  Newbie with P... 386415
  New Users Int... 381813
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+ 12113
buran 8196
snippsat 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
elizabethlittle6258 Yesterday
StepanVoronin Yesterday
QABOB Yesterday
adityaN Yesterday
NeoQuant 11-29

User Panel Messages

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