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,941
» Latest member: pllrdvalery
» Forum threads: 38,723
» Forum posts: 175,517

Full Statistics

Online Users
There are currently 65 online users.
» 1 Member(s) | 56 Guest(s)
Bing, Google, AOL, Facebook, AOL, CaptainNewb

Latest Threads
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
3 hours ago
» Replies: 9
» Views: 488
A coding beginner needs h...
Forum: General Coding Help
Last Post: paul18fr
Yesterday, 08:55 AM
» Replies: 1
» Views: 338
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,701
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,039
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,395
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,946
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,714
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,789
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,932
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 1,490

 
  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

  Still confused about how passing arguments works
Posted by: RedSkeleton007 - Apr-25-2018, 09:46 AM - Forum: General Coding Help - Replies (3)

I have a simple user input program:

[python]
#!/usr/bin/python
#QuickTest.py

def getLocation(x,y,z):
x = input("Specify horizontal positi..... More

Print this item

  Idea of timelapse with automatic settings
Posted by: hhanswurster - Apr-25-2018, 09:24 AM - Forum: General Coding Help - Replies (2)

Hey Guys,

i new to programing and have my first project in mind :)

Rasberry pi with light sensor, that automaticly changes my camera settings to a o..... More

Print this item

  The following modules appear to be missing ['_pybsddb']
Posted by: py2exe - Apr-25-2018, 09:01 AM - Forum: General Coding Help - Replies (2)

WHEN I run a python file(using p2exe to get .exe file)

it says:

The following modules appear to be missing
['_pybsddb']


I can not fin..... More

Print this item

  How to install a library in Python?
Posted by: DuoZhou - Apr-25-2018, 06:39 AM - Forum: General Coding Help - Replies (2)

Hello everyone, i'm really very new to Python. I have a maybe simple question:
How could i install a library in Python 3.x? My OS is Windows 7.

Th..... More

Print this item

  Convert .bmp images to .gif inside script
Posted by: Arontbt - Apr-25-2018, 03:19 AM - Forum: General Coding Help - Replies (5)

I am writing a python program that applies filters to images. I am running an image through two different functions. One of them only takes .bmp files..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Using a For Loop to subtr... 3 hours ago Anunderling deanhystad General Codin...
  A coding beginner needs h... Yesterday, 08:55 Littlefish paul18fr General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 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...
  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
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576647
  Tutorial Requ... 498726
  Web Scraping ... 440488
  Newbie with P... 384412
  New Users Int... 367809
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+ 12087
buran 8175
snippsat 7368
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
pllrdvalery Yesterday
Littlefish Yesterday
Noya_Yonatan 09-21
Saipython555 09-21
Anunderling 09-21

User Panel Messages

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