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,963
» Latest member: chaoh1911
» Forum threads: 38,729
» Forum posts: 175,541

Full Statistics

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

Latest Threads
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
1 hour ago
» Replies: 4
» Views: 1,882
My First App
Forum: Code Review
Last Post: carlbidwell
9 hours ago
» Replies: 8
» Views: 8,480
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Today, 03:54 AM
» Replies: 3
» Views: 377
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Yesterday, 05:13 PM
» Replies: 4
» Views: 821
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:17 PM
» Replies: 1
» Views: 873
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:14 PM
» Replies: 6
» Views: 5,131
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Yesterday, 09:50 AM
» Replies: 1
» Views: 1,761
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Yesterday, 03:53 AM
» Replies: 1
» Views: 2,798
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:32 AM
» Replies: 0
» Views: 398
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-25-2025, 01:49 PM
» Replies: 2
» Views: 668

 
  Collect lines in a file
Posted by: sridhar - Jul-12-2020, 02:23 PM - Forum: General Coding Help - Replies (3)

Hi all,
If a line doesn't start with a timestamp , i need to add it with previous line through list.
this is the content of my file
[b]9/16/16, 01..... More

Print this item

  Checking if an element belongs in a dataframe row
Posted by: palladium - Jul-12-2020, 02:06 PM - Forum: Data Science - No Replies

I'm trying to search if a dataframe contains a specified number for each row. The problem is: A user enters an audiogram, which is converted to a Data..... More

Print this item

  copy content of text file with three delimiter into excel sheet
Posted by: vinaykumar - Jul-12-2020, 01:26 PM - Forum: General Coding Help - No Replies

I have a text file n numbers of rows and columns separated by three delimiters [ , ], - .
I need to import this into excel using python.

sample da..... More

Print this item

  Summing a list of numbers
Posted by: Oldman45 - Jul-12-2020, 01:10 PM - Forum: General Coding Help - Replies (6)

I am teaching myself Python and following a YouTube tutorial I input the following:

[python]xs = [12, 14, 10]

for num in xs:
x += num

pr..... More

Print this item

  xml.etree.ElementTree extract string values
Posted by: matthias100 - Jul-12-2020, 12:47 PM - Forum: General Coding Help - Replies (2)

Hi all,
I'am new to python. I am trying to parse an xml file and extract values between "><". Here the xml example :

[python]
<?xml version="1.0"..... More

Print this item

  form select option tags, add "selected" on <option> in python at a condition
Posted by: Leon79 - Jul-12-2020, 12:32 PM - Forum: Homework - Replies (3)

Hello Coders,

I'm still working on my project for the course, and I'm not giving up, even if everything looks to slow me down!

I'm at the point wher..... More

Print this item

  Python Automated Email
Posted by: aidanh26 - Jul-12-2020, 12:25 PM - Forum: Networking - Replies (10)

Hi,
I'm a newbie here. I'm looking for help to automatically send an email to an address assoicated with a string found in an excel spreadsheet.
..... More

Print this item

  PIL Python
Posted by: ABVSVL - Jul-12-2020, 11:37 AM - Forum: General Coding Help - Replies (2)

There are two files. one file has a color depth of 24 second 32 bits.
The PIL library gives an error.
How to convert 32 bits to 24?
What are the me..... More

Print this item

  beginner question
Posted by: ___ - Jul-12-2020, 07:55 AM - Forum: General Coding Help - Replies (1)

hi, i'm quite new to python. I was wondering how I can add like a time sync? or something like that? I want to make a program to remind me of somethin..... More

Print this item

  IEDriverServer screenshot
Posted by: ABVSVL - Jul-12-2020, 07:08 AM - Forum: General Coding Help - No Replies

Hi.
How can I do screenshot from IEDriverServer ?
I have code


from selenium import webdriver


browser = webdr..... More

Print this item

  Get the filename from a path
Posted by: 12237ee1 - Jul-12-2020, 07:01 AM - Forum: General Coding Help - Replies (7)

I have a large text file which has a lot of links and I need python script to extract all the names of the files which end with .pdf format and sorted..... More

Print this item

  Generating all words of maximun length.
Posted by: MathCommander - Jul-12-2020, 05:01 AM - Forum: General Coding Help - Replies (4)

Hello! I am working in a python challenge wich requires to decipher SHA-1 hashes wich correspond to password of a maximun length of 5 characters. The ..... More

Print this item

  Why is wx.NO_BORDER changing panels within a frame
Posted by: MeghansUncle2 - Jul-12-2020, 02:56 AM - Forum: GUI - Replies (4)

In the code below (within wx.Frame.__init__) when I add "style=wx.NO_BORDER" the panels shrink to almost nothing.
Please run with and without this s..... More

Print this item

  Web Crawler's Crawling Ability
Posted by: samlee916 - Jul-12-2020, 02:43 AM - Forum: Web Scraping & Web Development - Replies (3)

How can I figure out how much a web crawler actually crawls on a website?

Print this item

  Input Error
Posted by: Dream - Jul-12-2020, 01:01 AM - Forum: General Coding Help - Replies (2)

Hello,im trying to do a youtube video downloader script,so i did this:
[python]import pytube
video_url = 'https://www.youtube.com/watch?v=4KcMdH8qiu..... More

Print this item

  python-chess question
Posted by: djf123 - Jul-11-2020, 10:47 PM - Forum: Data Science - Replies (2)

I am a fairly new Python user, and I was trying to use the python-chess module (documentation here: https://readthedocs.org/projects/python-chess/down..... More

Print this item

  two conditionals with intermediate code
Posted by: Skaperen - Jul-11-2020, 10:36 PM - Forum: General Coding Help - Replies (5)

i encounter this case a lot. in an elif sequence of code i need to perform 2 tests at one place. that often means an and or or between 2 tests. som..... More

Print this item

  reindex()
Posted by: Truman - Jul-11-2020, 09:26 PM - Forum: Data Science - Replies (2)

[python]import pandas as pd
import numpy as np
index = [('California', 2000), ('California', 2010),
('New York', 2000), ('New York', 2010)..... More

Print this item

  Too Enthusiastic project(?)
Posted by: Python_User - Jul-11-2020, 09:10 PM - Forum: General Coding Help - Replies (4)

Dear Python users,

I just started learning Python and I am wondered how many things can be done with this software. I purchased the book, “automate..... More

Print this item

  OCR to database
Posted by: Hakx77 - Jul-11-2020, 09:05 PM - Forum: General Coding Help - Replies (2)

So I am needing some help, I am new to python and programming in general but I am trying to use a raspberry pi to take a pic of a document then send i..... More

Print this item

  HELP- DATA FRAME INTO TIME SERIES- BASIC
Posted by: bntayfur - Jul-11-2020, 09:04 PM - Forum: Data Science - No Replies

Ok, so i have a data frame and i want to change it to time series.

[output]

Month Sales Inflation
0 1-Jan 266.0 1
1 2-Jan 14..... More

Print this item

  Syntax error
Posted by: bayouprophet - Jul-11-2020, 08:14 PM - Forum: General Coding Help - Replies (1)

Fairly new to Python, so I need help with the following:
I am getting a syntax error for parser = MyHTMLParser() and I can't figure out why?

#
#..... More

Print this item

  Column headers not aligning properly with table
Posted by: kenwatts275 - Jul-11-2020, 08:01 PM - Forum: GUI - Replies (3)

Hello all,
I cannot seem to get the column headers to align properly with my table.
The column headers have to be in a separate frame than the table, ..... More

Print this item

  get_absolute_url function not working?
Posted by: mp3909 - Jul-11-2020, 07:00 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi,

So I am using django 2.2.7 and following videos on youtube for learning Python Django.

My models.py file consists of a class for an Album object..... More


Attached Files

Thumbnail(s)
               
Print this item

  Dictionary based exercise
Posted by: garvind25 - Jul-11-2020, 06:25 PM - Forum: Homework - Replies (2)

Hi,

I am stuck with a problem and hoping someone can help.

How can I import data from a file and store them in a dictionary? I have a file named ‘..... More

Print this item

  Winsorized Mean and Standard Deviation
Posted by: Wheeliam - Jul-11-2020, 05:19 PM - Forum: General Coding Help - No Replies

Hi all, Smile

I have a slight problem. I need to winsorize the means and standard deviations in my code. The code is a modification of what I h..... More

Print this item

  Invert Pillow image colours
Posted by: chesschaser - Jul-11-2020, 12:54 PM - Forum: General Coding Help - Replies (5)

Hi guys!

I've been trying to invert the pixel colours of an image of Harry Potter for about 2 days now. I have a list of RGB tuples that make up each..... More

Print this item

  Hi, Keep postition of main window after iconify()
Posted by: delphinis - Jul-11-2020, 11:53 AM - Forum: GUI - Replies (3)

Hi,
i write an app using iconify after creating the window:

[code]
root = tk.Tk()
app = Window(root)
root.iconify()
#root.wm_withd..... More

Print this item

  use NULL as function parameter which is a pointer function?
Posted by: oyster - Jul-11-2020, 09:02 AM - Forum: General Coding Help - No Replies

Hi, I met a case in which NULL can be used as a C function's parameter which is actually a pointer function. I can't finger out how to do it, can anyo..... More

Print this item

  Beautiful Soup (suddenly) doesn't get full webpage html
Posted by: j.crater - Jul-11-2020, 08:47 AM - Forum: Web Scraping & Web Development - Replies (8)

Hello all,
few months ago I dabbled in Beautiful Soup for first time, so I still lack much understanding of the module and entire subject.
However, ..... More

Print this item

  Binary to decimal, print the decimal
Posted by: rs74 - Jul-11-2020, 08:04 AM - Forum: Homework - Replies (3)

Trying to print the decimal number after each row, no success. Is it correct to use a variable (decimal) and then print it?

[python]import random
..... More

Print this item

  How to to tie the execution of one process to another inside a loop in Python
Posted by: ignorant_wanderer - Jul-11-2020, 03:40 AM - Forum: General Coding Help - No Replies

How can I keep a loop going, while having some processes that are waiting for others inside the loop? (see the code below for clarification, it makes ..... More

Print this item

  Small Database Program (Need Help)
Posted by: thewetmosquito - Jul-11-2020, 03:06 AM - Forum: General Coding Help - Replies (3)

Hello Python community,

I'm new around these parts, and I've picked up on Python last week to begin understanding and writing working programs. I h..... More

Print this item

  How does a set in python store the elements?
Posted by: idknuttin - Jul-10-2020, 08:04 PM - Forum: General Coding Help - Replies (5)

I am coming learning python after working with c++ for a few years. In c++ when you insert into a set it orders the elements, I can't figure out why i..... More

Print this item

  Error while parsing tables from docx file
Posted by: aditi - Jul-10-2020, 08:04 PM - Forum: General Coding Help - Replies (1)

Hi all,
I am currently using Python3.6 and I am using the python-docx package to parse document files:
The code:

from docx import Document
my_d..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... 1 hour ago arbiel Gribouillis General Codin...
  My First App 9 hours ago BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... Today, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... Yesterday, 17:13 RonR noisefloor GUI
  Is the interpreter that c... Yesterday, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... Yesterday, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... Yesterday, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... Yesterday, 03:53 justaguy SprunkiRetake Networking
  My goal to be hired worki... Yesterday, 00:32 GnomeSweetGnome GnomeSweetGnome News and Disc...
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
  pip install requests does... 09-24, 14:48 misodca DeaD_EyE General Codin...
Most views
  The best Prog... 577151
  Tutorial Requ... 500065
  Web Scraping ... 440860
  Newbie with P... 384865
  New Users Int... 369096
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+ 12088
buran 8176
snippsat 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
chaoh1911 Today
KaydenJonah098 Today
carlbidwell Today
llarkin6 Yesterday
Xuitar Yesterday

User Panel Messages

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