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,988
» Latest member: markwood955
» Forum threads: 38,736
» Forum posts: 175,578

Full Statistics

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

Latest Threads
Weird failure in Selenium
Forum: General Coding Help
Last Post: glestwid
51 minutes ago
» Replies: 0
» Views: 12
print does not open conso...
Forum: General Coding Help
Last Post: Axel_Erfurt
2 hours ago
» Replies: 1
» Views: 46
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
7 hours ago
» Replies: 3
» Views: 2,524
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
8 hours ago
» Replies: 2
» Views: 79
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
8 hours ago
» Replies: 6
» Views: 183
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,043
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 457
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,086
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,157
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 837

 
  coding help lists, loops, and if statement
Posted by: ilondire05 - Jul-16-2019, 02:02 AM - Forum: General Coding Help - Replies (5)

My problem asks me to write a program to find all the divisors of a number. What I have done so far I realize is of target from that goal however ther..... More

Print this item

  converting data sizes like: 4k, 32k, 4m, 16m, 1g, etc
Posted by: Skaperen - Jul-16-2019, 01:15 AM - Forum: Code sharing - No Replies

i had asked if there was a Python library function to do this, which i could not find. there was no answer, so i had to implement my own. this is no..... More

Print this item

  Looking for Eval alternative
Posted by: scionsamurai - Jul-16-2019, 12:24 AM - Forum: Data Science - Replies (2)

My goal is to put together a pandas column search function based on how many columns are present.
[python]
import pandas as pd

head_list = 'Segme..... More

Print this item

  Pandas converting date to epoch
Posted by: randor - Jul-15-2019, 10:40 PM - Forum: Data Science - Replies (2)

Hello all,

ok, this has stumped me for at least the last 6 hours and i am ready to pull what little hair i have left out!

I have a dataframe tha..... More

Print this item

  Christmas and other occasions
Posted by: GalaxyCoyote - Jul-15-2019, 08:02 PM - Forum: General Coding Help - Replies (4)

I am trying to make a program that can tell people the date and time (I have done this bit) but I want to add to the program, I want a way to detect t..... More

Print this item

  Mass-update pip pkgs
Posted by: mcmxl22 - Jul-15-2019, 07:58 PM - Forum: Code sharing - No Replies

Here is a program I wrote to mass-update pip packages. It relies on pip-review and another module I wrote to make numbered lists.

[python]
import ..... More

Print this item

  How to get a count of -Python- threads from the outside (or via code instrumentation)
Posted by: dstromberg - Jul-15-2019, 06:58 PM - Forum: General Coding Help - No Replies

  • Detailed description of your problem, including steps to reproduce it
This is more informational, than a problem.

I want some ..... More

Print this item

  Trying to make column based file from text file
Posted by: scor1pion - Jul-15-2019, 06:29 PM - Forum: General Coding Help - Replies (7)

Hello, I've been trying to learn python for one reason. I get a several hundred page report at work that looks like this:


RMDS1.GPCAN.* ..... More

Print this item

  Windows GUI with push buttons to launch python scripts
Posted by: drifterf - Jul-15-2019, 06:28 PM - Forum: GUI - Replies (7)

Hi, i have a project which works well but consists or a differnt script for what i want it to do. so i want to create a windows GUI so when a user pre..... More

Print this item

  writting python output to a csv file
Posted by: drifterf - Jul-15-2019, 06:20 PM - Forum: General Coding Help - Replies (1)

hi, i currently have a script that when a proximity fob is presented to the reader it displays the fob number (PIGPIO wiegand script on a raspberry pi..... More

Print this item

  ploting i,j,k,r,g,b data from file
Posted by: p222 - Jul-15-2019, 05:29 PM - Forum: Data Science - No Replies

Dear all,

I have this code working, which is giving me what I'm showing in the picture:

[python]
#!/usr/bin/env python
import matplotlib.pyplo..... More

Print this item

  Global variable does not seem to be global.
Posted by: Columbo - Jul-15-2019, 05:04 PM - Forum: General Coding Help - Replies (6)

I am trying to use a global variable which is then incremented in a function but I am getting this error:

File "E:\Python 3\Prehistoric Life\prehis..... More

Print this item

  Sniffing COM Port
Posted by: christianscarlett - Jul-15-2019, 04:48 PM - Forum: General Coding Help - No Replies

Hello,

I am using the bgapi library to manage bluetooth communication using a USB dongle. The library will take a command from my program and will ..... More

Print this item

  Handling multiple errors when using datafiles in Pandas
Posted by: alphanov - Jul-15-2019, 03:18 PM - Forum: Data Science - Replies (1)

Hello
I'm relatively new to Python so please forgive me if this isn't a particularly challenging problem.

I have a very large spreadsheet that I n..... More

Print this item

  appending to the same csv file
Posted by: dervast - Jul-15-2019, 02:25 PM - Forum: General Coding Help - Replies (3)

Hi all,
inside of one of my for loops I am keeping four parameters that I want to store into four columns of a csv file

[python]
# part of an om..... More

Print this item

  Pandas Import CSV count between numerical values within 1 Column
Posted by: ptaylor520 - Jul-15-2019, 02:17 PM - Forum: Data Science - Replies (3)

fileuploadid completedate ... Difference successful (SUM)
0 156691956 03/06/19 00:00 ... 0 1
1 1566919..... More

Print this item

  Receive data from Redis RQ worker process
Posted by: freak14 - Jul-15-2019, 12:39 PM - Forum: General Coding Help - No Replies

Hi,

I am currently trying to get my Flask Web Application working with Redis RQ.

My application gets an input file and analyzes it for approx. 2..... More

Print this item

  Loading .csv data using Pandas
Posted by: zaki424160 - Jul-15-2019, 08:14 AM - Forum: Data Science - Replies (1)

I was trying to load a dataset from my local computer using pandas when I run the code I got these problems, please anyone help me :

[python]
#!/u..... More

Print this item

  which is more Pythonic?
Posted by: Skaperen - Jul-15-2019, 04:07 AM - Forum: General Coding Help - Replies (5)

which is more Pythonic?

...
    foo = [some,stuff,goes,here]
    bar = a_function(arg1,foo,arg3)
...
or:

[python]...
..... More

Print this item

  How to intercept python method calls?
Posted by: DineshBhat - Jul-15-2019, 03:46 AM - Forum: General Coding Help - No Replies

Hello,
I have a python program running as process. I am looking for mechanism to intercept selected function in python program which is already runni..... More

Print this item

  Database search
Posted by: Columbo - Jul-15-2019, 02:07 AM - Forum: General Coding Help - Replies (2)

I would like to have a search function in my app where the user types in a name and the database is searched for the record that matches that name how..... More

Print this item

  converting data sizes like: 4k, 32k, 4m, 16m, 1g, etc
Posted by: Skaperen - Jul-15-2019, 01:57 AM - Forum: General Coding Help - Replies (1)

i'm getting a string with a data size expressed in it like "4k", "32k", "4m", "16m", "1g". is there a Python library function that will do the convers..... More

Print this item

  Court Opinion Scraper in Python w/ BS4 (Currently exports to CSV) need help with SQL
Posted by: MidnightDreamer - Jul-15-2019, 01:50 AM - Forum: Web Scraping & Web Development - Replies (4)

[CODE]
# Justia Court Opinion Scraper
# Works - Scrapes opinion with HTML tags
# Works - Scrapes opinion with HTML tags stripped
# Works - Write t..... More

Print this item

  intermediate book recommendation please?
Posted by: jameson984 - Jul-15-2019, 01:23 AM - Forum: General Coding Help - Replies (1)

I hoping to get some advice on how to take myself to the next level in python programming. I've been using python for about 5 years, but just on my ow..... More

Print this item

  Hot mess with functions, lists, and while loop
Posted by: johneven - Jul-14-2019, 10:05 PM - Forum: Homework - Replies (7)

The problem seems like it should be rather easy, but I'm all over the map in trying to solve it. Here it is:

Write a function, sublist, that..... More

Print this item

  How do I copy files faster with python?
Posted by: steckinreinhart619 - Jul-14-2019, 07:52 PM - Forum: General Coding Help - Replies (7)

Hey guys I know that this issue has already been adressed in a previous threads (https://stackoverflow.com/questions/2207...copy-files..... More

Print this item

  I need help! How to package python code with other component into an exe file??
Posted by: Wendy - Jul-14-2019, 05:39 PM - Forum: General Coding Help - Replies (4)

Ask for help:

How do I package the python code and other components(some exe,jar and dll files) it depends on to run into an executable file..... More

Print this item

  How To Display this Python Code in Web browser?
Posted by: pradhan - Jul-14-2019, 02:43 PM - Forum: General Coding Help - Replies (1)

I have a sample code. how to display the output in web broswer?

For i in range(0, 11):
           print(i)
answer will be:-
0
..... More

Print this item

  What is the use of call method and when to use it?
Posted by: everyday1 - Jul-14-2019, 12:17 PM - Forum: General Coding Help - Replies (1)

I am having a hardtime understanding call methods in python. I have this class object

[python]

class Attention(tf.keras.Model):
def __init_..... More

Print this item

  pythonic help doc
Posted by: metulburr - Jul-14-2019, 11:37 AM - Forum: Board - Replies (1)

I added a pythonic help doc information. If anyone wants to add or modify that help doc, post below your thoughts.
https://python-forum.io/misc.php?..... More

Print this item

  OpenCV - Doubt in a line.
Posted by: ArjunSingh - Jul-14-2019, 11:13 AM - Forum: General Coding Help - Replies (1)

[python]import numpy as np
import cv2

cap = cv2.VideoCapture(0)

# Define the codec and create VideoWriter object
fourcc = cv2.VideoWriter_four..... More

Print this item

  Turn py into exe
Posted by: tester21 - Jul-14-2019, 09:35 AM - Forum: General Coding Help - Replies (4)

I don't have access to a compiler, could someone, please, turn this python 3 code into an exe file and also test it?
[python]
import openpyxl as xl..... More

Print this item

  selecting only october to march from monthly data u
Posted by: Staph - Jul-14-2019, 09:27 AM - Forum: Data Science - Replies (1)

I have array of monthy data. I want to select monthly values starting from october to march like this
my data = starts from [1950-01,1950-02,1950-03,..... More

Print this item

  SyntaxError: invalid syntax
Posted by: jurg1505 - Jul-14-2019, 08:43 AM - Forum: General Coding Help - Replies (5)

I am trying to set a servo with domoticz on a Raspberry pi.
The script works from the command line.

curl -s "http://127.0.0.1:8080/json.htm?type=devi..... More

Print this item

  select data based on indice
Posted by: Staph - Jul-14-2019, 07:43 AM - Forum: Data Science - Replies (4)

I have dataframe like this
month value
0 1 12.214394
1 2 -30.114391
2 3 1.343937
3 4 -29.290909
4 ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Weird failure in Selenium 51 minutes ago glestwid glestwid General Codin...
  print does not open conso... 2 hours ago Tycho_2025 Axel_Erfurt General Codin...
  Fred Economic Data API 7 hours ago warrior42 Trickety Web Scraping ...
  create ocr to detect lice... 8 hours ago bimosora noisefloor General Codin...
  Parse Markdown / get the ... 8 hours ago SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
Most views
  The best Prog... 577468
  Tutorial Requ... 501244
  Web Scraping ... 441090
  Newbie with P... 385158
  New Users Int... 369839
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+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
markwood955 Today
DerekGeel Today
Tycho_2025 Today
chikkamagalur Today
Costa Today

User Panel Messages

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