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,540

Full Statistics

Online Users
There are currently 36 online users.
» 1 Member(s) | 29 Guest(s)
Bing, Applebot, Google, AOL, Mojeek, buran

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

 
  Why can't i send a private message?
Posted by: Nomatter - Jul-15-2020, 03:35 PM - Forum: Bar - Replies (6)

Hi, I can not send a private message to someone , Why can't I send?

Print this item

  can anyone help convert to python3
Posted by: corsasri - Jul-15-2020, 01:34 PM - Forum: General Coding Help - Replies (24)

Hello i need a bit of help converting something created for python2 to work with python3.
here is what i need converting.
..... More

Print this item

  Using a Proxy Server
Posted by: rsherry8 - Jul-15-2020, 01:11 PM - Forum: Web Scraping & Web Development - Replies (11)

Please consider the following python program.
[python]
import requests

url = 'https://washingtonpost.com/'

proxy = {
"https": "https..... More

Print this item

  [openpyxl] Increment cells being pasted into Template
Posted by: Kristenl2784 - Jul-15-2020, 12:45 PM - Forum: General Coding Help - Replies (4)

Hello,

How would I increment ws2 cells? ws cells can remain the same because when the script loops through my files it will copy data from the sam..... More

Print this item

  python socket connect only sometimes
Posted by: espDino - Jul-15-2020, 12:07 PM - Forum: Networking - No Replies

Hallo,
I have program in python to simply connect to TCP server and disconnect:
[python]
import socket

HOST = '192.168.1.6' # The server's hos..... More

Print this item

  splitting dirs into variables?
Posted by: zarize - Jul-15-2020, 11:57 AM - Forum: General Coding Help - Replies (3)

Hey guys,

I have grouped files which meets some requirements and i have it stored, but now i don't know how to seperate them from each other.

[p..... More

Print this item

  Property price calculation
Posted by: oli_action - Jul-15-2020, 11:53 AM - Forum: General Coding Help - Replies (4)

Hi. I'm a beginner stuck with a problem and need help please. I need to calculate the total property size ( width and length ) and then the total cost..... More

Print this item

  Creating tables with pymysql using Xampp
Posted by: newbie1 - Jul-15-2020, 11:10 AM - Forum: Web Scraping & Web Development - No Replies

I'm trying to build a webapp using Flask and the part with the database is a little bit confunsing since and want to wrap the creation of the tables i..... More

Print this item

  DOS tool [HTTP, TCP, UDP, SYN]
Posted by: Anarab - Jul-15-2020, 11:05 AM - Forum: Code sharing - No Replies

[python]
import time
import socket
import random
import sys

## USAGE ##
# python3 main.py <IP> <Port> <duration in secs> <packets size> <mode (udp, t..... More

Print this item

  how to do a bytes f-string?
Posted by: Skaperen - Jul-15-2020, 05:34 AM - Forum: General Coding Help - Replies (4)

how to do a bytes f-string?

Print this item

  Multi-threading
Posted by: Evil_Patrick - Jul-15-2020, 05:26 AM - Forum: General Coding Help - Replies (2)

Can I use Multi-threading to scrape images from internet fast
If yes can anyone Explain me how it works
Can't find anything related this on Intern..... More

Print this item

  simple f-string expressions to access a dictionary
Posted by: Skaperen - Jul-15-2020, 05:04 AM - Forum: General Coding Help - No Replies

did anyone ever figure out a way to have a run time generated sting value processed like a f-string in the local context? i asked about this many moo..... More

Print this item

  Any ideas on making this python web crawler code better, simpler, or optimal?
Posted by: samlee916 - Jul-15-2020, 04:12 AM - Forum: Code Review - No Replies

[python]
import requests
import argparse
from urllib.request import urlparse, urljoin
from bs4 import BeautifulSoup

#initialize the set of link..... More

Print this item

  VSCode not able to discover tests
Posted by: rpk2006 - Jul-15-2020, 04:06 AM - Forum: General Coding Help - Replies (5)

My test file is as below:

[python]from unittest import TestCase
import pytest

class TestNumbers(TestCase):
def TestSum(self):
sel..... More

Print this item

  Attribute error in Dataframes
Posted by: deshanish - Jul-15-2020, 03:57 AM - Forum: Data Science - Replies (1)

import numpy as np
import pandas as pd
from pandas import Series, DataFrame
import webbrowser
website='https://en.wikipedia.org/wiki/NFL_win-loss_..... More

Print this item

  How to give space when concaneting strings
Posted by: deshanish - Jul-15-2020, 02:59 AM - Forum: General Coding Help - Replies (1)

>>> str='Python is a great programming language'
>>> str
'Python is a great programming language'
>>> str1=str[0:11]
>>> str2=str[12:29]
>>> str3..... More

Print this item

  Help me get this image converter code working?
Posted by: NeTgHoSt - Jul-14-2020, 10:36 PM - Forum: General Coding Help - No Replies

Hello, I have been trying to convert 8-bit images into the proper binary format required by the Arduino IDE library I am using. The library included t..... More

Print this item

  Python dict to pandas df
Posted by: waleed3011 - Jul-14-2020, 09:56 PM - Forum: Data Science - Replies (3)

I have a set of data that can come through a stock data API, the amount of data and how stocks is depending on users' requests. The data I receive fro..... More

Print this item

  emcee
Posted by: hanaizdi19 - Jul-14-2020, 09:09 PM - Forum: Data Science - No Replies

hi guys, ive been using emcee to sample my parameter..
but I still don't have idea how to combine many likelihoods.. it works fine for just one likeli..... More

Print this item

  for field in form
Posted by: mp3909 - Jul-14-2020, 07:54 PM - Forum: Web Scraping & Web Development - Replies (1)

How can I say if field is not "album_logo" then do this else do that?
I have this code in my django form where I want to set the input for the field "..... More

Print this item

  Writing a function to calculate time range in Unix Epoch Time
Posted by: t4keheart - Jul-14-2020, 07:23 PM - Forum: General Coding Help - Replies (2)

A program I am writing has the requirement to calculate the past 24 hours (as a time range) in unix epoch time. I would like two objects... the curren..... More

Print this item

  import yaml error for python3
Posted by: maiya - Jul-14-2020, 05:46 PM - Forum: General Coding Help - Replies (4)

Hi All,

#!/bin/python
import yaml
print('yaml')
Traceback (most recent call last):
..... More

Print this item

  How to do it in simplified Python code
Posted by: Jacks - Jul-14-2020, 04:21 PM - Forum: General Coding Help - No Replies

Hi All,

Anyone can suggest, simplified Python Code to find my recursion levels..!!!
I have attached the sample xml input and my output should be l..... More

Print this item

  Copy certain cells into new workbook certain cells
Posted by: Kristenl2784 - Jul-14-2020, 03:46 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm trying to copy certain cells from ws, and paste them into certain cells in ws2, what I have isn't doing this. It's just creating an outp..... More

Print this item

  Multiple MEAN value using FOR loop
Posted by: kka_anand - Jul-14-2020, 03:43 PM - Forum: General Coding Help - Replies (2)

I use the following code to find MEAN by using For loop,

It displays value for MEAN(5) but, for MEAN(8) it throws an error message - IndexError: li..... More

Print this item

  Recursive Function
Posted by: sridhar - Jul-14-2020, 03:38 PM - Forum: General Coding Help - Replies (7)

Hi all ,
This is going to be crazy but I need to know how to do it. Please help me out folks.

The code which I'm using is not in a proper optimize..... More

Print this item

  Cannot find Python installation folder when I install Anaconda
Posted by: bsbsbsbs - Jul-14-2020, 02:55 PM - Forum: General Coding Help - Replies (1)

Hi I need to make a directory to my Python folder when trying to use a separate program that requires a python path.

[img]https://prnt.sc/thmyja[/i..... More

Print this item

  OOP hellp (simple class person)
Posted by: onit - Jul-14-2020, 02:23 PM - Forum: General Coding Help - Replies (4)

Hello friends, I have started to learn OOP in python and I want some help with the simple class. I am trying to create a simple "person" class and ret..... More

Print this item

  error while running in debug mode ModuleNotFoundError
Posted by: avipy123 - Jul-14-2020, 02:05 PM - Forum: General Coding Help - No Replies

[error]Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2020.1.2\plugins\python\helpers\pydev\pydevd.py", line 10, in <m..... More

Print this item

  Installing a python package using pip
Posted by: anthonymoss78 - Jul-14-2020, 01:52 PM - Forum: General Coding Help - No Replies

Hi,

This is a continuation of a thread I posted last week .
I have a python package that is a wrapper around some c++ libs with a python interfac..... More

Print this item

  convert old excel files(xls) to xlsm
Posted by: zarize - Jul-14-2020, 01:01 PM - Forum: General Coding Help - Replies (1)

Hi guys,

I would like to do some copy paste things from one excel to another, but one of them has .xls extension.

I wanted to use openpyxl library b..... More

Print this item

  ValueError: shape mismatched: objects cannot be broadcast to a single shape
Posted by: Laplace12 - Jul-14-2020, 11:42 AM - Forum: General Coding Help - No Replies

I'm trying to save a txt file by manually entering the energy values in our experiment, but the code runs an error:

[python]b = np.broadcast(*args[:3..... More

Print this item

  an input question
Posted by: saratha - Jul-14-2020, 11:42 AM - Forum: General Coding Help - Replies (4)

Hello everyone,
I just wanted to know how I can check if a string input is a number?

Print this item

  try: except not returning a value
Posted by: NewBeie - Jul-14-2020, 09:40 AM - Forum: General Coding Help - Replies (6)

I have this function;

[python]def get_file_number(filename):
""" Get the file number from the file name

Finds the part between xml and .txt ..... More

Print this item

  300 free curated Python code snippets
Posted by: steve_shambles - Jul-14-2020, 09:18 AM - Forum: Code sharing - Replies (1)

For the last 22 months I have been collecting and editing Python code snippets.
I am pleased to announce there are now 300 snippets of code available..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My First App 7 hours ago BCopeland64 carlbidwell Code Review
  what does % stand for in ... 8 hours ago arbiel carlbidwell General Codin...
  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... 577120
  Tutorial Requ... 500015
  Web Scraping ... 440840
  Newbie with P... 384833
  New Users Int... 369061
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