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 40 online users.
» 1 Member(s) | 33 Guest(s)
Bing, Google, Applebot, AOL, Gribouillis

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

 
  A couple of questions about counts/value_counts and pandas?
Posted by: Puxk - Jul-10-2020, 07:46 PM - Forum: Homework - No Replies

why does this work

df[df['TotalPayBenefits']== df['TotalPayBenefits'].max()]
but this gives an error

[python]df[df['TotalP..... More

Print this item

  Can anyone explain me whats happening here?
Posted by: Puxk - Jul-10-2020, 07:00 PM - Forum: Data Science - Replies (1)

I'm not sure if this goes in homework or datascience but it is related to pandas so here goes

df[df['TotalPayBenefits'].max()]
..... More

Print this item

  NameError for global variable
Posted by: leviporton - Jul-10-2020, 06:35 PM - Forum: General Coding Help - Replies (3)

I'm defining a variable in a if statement which to my knowledge should be a global variable.

[python]
try:
..... More

Print this item

  Convert Excel file to Text file
Posted by: marvel_plato - Jul-10-2020, 05:48 PM - Forum: General Coding Help - Replies (6)

Dear Python Community:

I am a new Python student trying to learn more about this incredible programming language. I hope you could help me teach how ..... More

Print this item

  gui and yhrinker buttoms
Posted by: rickadamson - Jul-10-2020, 05:40 PM - Forum: GUI - Replies (2)

I am new to python. Can't seem to get the button to run the script to generate random passwords. Using py 3.8 and windows 10
[python]
from tkinter i..... More

Print this item

  Simple fixed point iteration root finding in python
Posted by: DoctorSmiles - Jul-10-2020, 05:29 PM - Forum: Homework - Replies (3)

Hey all,

I recently have started a class that involves a bit of python programming and am having a bit of trouble on this question. The question as..... More

Print this item

  Screenshot web page !
Posted by: ABVSVL - Jul-10-2020, 03:57 PM - Forum: Web Scraping & Web Development - Replies (3)

How to take a screenshot from a website?
the visible part of the site I can take a screenshot.
How can I take a screenshot of an entire page (which ..... More

Print this item

  showing only desired part of a plot
Posted by: grknkilicaslan - Jul-10-2020, 03:16 PM - Forum: General Coding Help - Replies (1)

Hi,
I do simply have a plot but I need to show only a specific part of that plot. When I run the code below, it shows all possible results but I need..... More

Print this item

  I didnt get the NULL values
Posted by: salwa17 - Jul-10-2020, 02:54 PM - Forum: General Coding Help - No Replies

I want to extract the segment len from a TCP header so I made this code:

[python]def tcp_len_list(s):
a = [len(p[TCP].payload) if p.haslayer(T..... More

Print this item

  Erreur Code access violation reading 0x00000004
Posted by: yan_mhb - Jul-10-2020, 02:28 PM - Forum: General Coding Help - No Replies

Hello,

I code on the idle python version 3.8.3 and I receive this error message "OSError: exception: access violation reading 0x00000004" Angry..... More

Print this item

  Pandas DataFrame not updating
Posted by: HelpMePlease - Jul-10-2020, 02:21 PM - Forum: Data Science - Replies (3)

Hi, I am trying to program a Car Application menu loop to display the list of cars and add on cars according to the userinput 1 and 2 re..... More

Print this item

  showing all parts in the boundaries when plotting
Posted by: grknkilicaslan - Jul-10-2020, 12:59 PM - Forum: General Coding Help - Replies (1)

Hi everybody,
When I was plotting according to the code below, it gives the result between -60 and 20 on the x-axis but I want only the part between ..... More

Print this item

  Word Game
Posted by: paulmerton4pope - Jul-10-2020, 12:44 PM - Forum: General Coding Help - Replies (4)

[align=justify][i]Hi everyone,

I hope you're all keeping safe during this time.

I'm trying to create a word game in Python (using Thonny), where..... More

Print this item

  Regex findall()
Posted by: NewBeie - Jul-10-2020, 11:13 AM - Forum: General Coding Help - Replies (2)

Hi

I have re code with find findall() function. I understand that findall supposed to find a certain match in the given string, but the output that..... More

Print this item

  Tkinter basic email client
Posted by: menator01 - Jul-10-2020, 09:25 AM - Forum: Code sharing - Replies (4)

This is my first attempt at an email client. It does not handle all email. It's setup for plain text. Will handle some multipart but I have it setup t..... More

Print this item

  Test a class function via "unittest "
Posted by: Penguin827 - Jul-10-2020, 07:49 AM - Forum: General Coding Help - Replies (1)

[python]import unittest
#from employee113 import Employee

class Employee():
"""a class for show employee"""
def __init__(self,first_name,last_..... More

Print this item

  XML Parsing in python
Posted by: aarushprathap - Jul-10-2020, 04:54 AM - Forum: General Coding Help - Replies (2)

HI All,

I have an input file sample like below

[python]

<file="excel.1ew9u4t0tggb9315darmm0nfz2kb"
name ="Custom SQL Query" type="text"..... More

Print this item

  Function to return list of all the INDEX values of a defined ndarray?
Posted by: pjfarley3 - Jul-10-2020, 01:35 AM - Forum: General Coding Help - Replies (2)

If I have a numpy.ndarray defined as follows:

import numpy as np
x = np.ndarray([2,2,2], order='C', dtype='<U3')
Is there a functio..... More

Print this item

  ticktock generator and command
Posted by: Skaperen - Jul-10-2020, 01:19 AM - Forum: Code sharing - Replies (1)

this code can be imported for the generator or just run to be a command (some people may want to add a #! at the start). the generator simply returns..... More

Print this item

  Variable not defined
Posted by: Heyjoe - Jul-10-2020, 01:15 AM - Forum: General Coding Help - Replies (4)

Dear Python Users,

The following program creates a command button. I defined a function called ans1 to give to the command button. It assigns the..... More

Print this item

  stopping number conversion before end
Posted by: Skaperen - Jul-09-2020, 10:48 PM - Forum: General Coding Help - Replies (6)

this function gets a str that has decimal digit characters followed by one alphabetic character that indicates how to multiply the number those digits..... More

Print this item

  python read binary file
Posted by: Pyguys - Jul-09-2020, 10:45 PM - Forum: General Coding Help - Replies (4)

as topics. i want to read a binary file. i need some some offset in it and control by big or little endian. but i have problem with it.

[python]
..... More

Print this item

  Python 3.6.10 fails when running a localized script.
Posted by: Mikee - Jul-09-2020, 08:44 PM - Forum: General Coding Help - Replies (2)

Hello,

Thanks for having me here. I am a new to python.

I am stuck with something which i think most of you might already know.
I have a py scr..... More

Print this item

  Wait for command within a process
Posted by: bRitch022 - Jul-09-2020, 07:34 PM - Forum: General Coding Help - Replies (1)

I'm attempting to set up a process which listens for commands. Eventually this will be implemented with TCP/UDP and MODBUS, but for now I am trying to..... More

Print this item

  Tensorflow cudart64_101.dll could not find dll
Posted by: robdineen - Jul-09-2020, 07:18 PM - Forum: Data Science - Replies (1)

Hello there

i have an issue running the following tensorflow code on Pycharm

[python]import tensorflow as tf
from tensorflow import keras

NB..... More

Print this item

  Filter data based on a value from another dataframe column and create a file using lo
Posted by: pawanmtm - Jul-09-2020, 05:48 PM - Forum: Data Science - Replies (1)

Hi All,

I started learning Python few days ago. With google help i started coding to automate a process as described below:

I have a file with ..... More

Print this item

  converting .py to .asc
Posted by: ana - Jul-09-2020, 05:29 PM - Forum: General Coding Help - Replies (4)

Hello
i have a .py file i want to open it using open() and convert it to .asc file . Am completely new to python. Any help will be appreciated.

Print this item

  collections.OrderedDict
Posted by: Bert123456 - Jul-09-2020, 05:17 PM - Forum: General Coding Help - Replies (2)

Hi, I have an object which looks like that:

a = ([('AAA', {'xxx': Value1, 'yyy': Value2})], [BBB, {'xxx': Value3, 'yyy': Value4}])
..... More

Print this item

  The program isn't counting the total properly
Posted by: DanielCook - Jul-09-2020, 04:26 PM - Forum: General Coding Help - Replies (1)

[python]#blackjack

import random
deck = ["2+diamonds","3+diamonds","4+diamonds","5+diamonds","6+diamonds","7+diamonds","8+diamonds","9+diamonds","..... More

Print this item

  Loop problems
Posted by: Kristenl2784 - Jul-09-2020, 03:57 PM - Forum: General Coding Help - No Replies

Hello,

I can't seem to figure out why this script will only look at the 1st source file, perform the actions, paste to template and save then stop...... More

Print this item

  How to install and use a shared libary, via a .dll?
Posted by: ninjaisfast - Jul-09-2020, 03:23 PM - Forum: General Coding Help - No Replies

I'm trying to control my Elgato Stream Deck via Python, and am trying to follow the steps here: https://python-elgato-streamdeck.readthedocs.io/en/sta..... More

Print this item

  New in Python Amazon Scraping
Posted by: brian1425 - Jul-09-2020, 03:19 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi Smile ,

I'm new in Python programmation. I have followed a tutorial and written the code down below. (in between the stars)
I don't unders..... More

Print this item

  Use of input function to change screen background color in Turtles
Posted by: Oldman45 - Jul-09-2020, 02:34 PM - Forum: General Coding Help - Replies (3)

I am teaching myself Python on Python 3.8 following Think Like a Computer Scientist and having difficulties as I am a newcomer to coding

I have thi..... More

Print this item

  How to pass multiple arguments into function
Posted by: Mekala - Jul-09-2020, 02:25 PM - Forum: General Coding Help - Replies (4)

Hi,
I want to read a CSV file and I defined one function class, but my program gives error.
my input csv file to read:

[python]col1 col2 col3
..... More

Print this item

  python doc edit and run online?
Posted by: luckrill - Jul-09-2020, 01:28 PM - Forum: General Coding Help - No Replies

[Image: v2-bd7c053dbe34b305d485cac1d174ad07_720w.jpg]

above is rust mdbook, support edit and run online.

how to impl..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... 2 hours ago arbiel Gribouillis General Codin...
  My First App 10 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... 577187
  Tutorial Requ... 500107
  Web Scraping ... 440889
  Newbie with P... 384900
  New Users Int... 369133
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