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,983
» Latest member: Williamcaurb
» Forum threads: 38,733
» Forum posts: 175,567

Full Statistics

Online Users
There are currently 42 online users.
» 1 Member(s) | 32 Guest(s)
Google, Applebot, Bing, AOL, Twitter, Williamcaurb

Latest Threads
Webscrapping sport bettin...
Forum: Web Scraping & Web Development
Last Post: Williamcaurb
4 minutes ago
» Replies: 5
» Views: 13,909
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Larz60+
10 minutes ago
» Replies: 1
» Views: 59
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
9 hours ago
» Replies: 4
» Views: 2,011
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 420
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,056
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,120
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 782
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,081
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,528
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,105

 
  Random nr. no repetition & printing multiple lines
Posted by: Joey - Feb-05-2020, 07:31 AM - Forum: General Coding Help - Replies (7)

First of all i apologize if a make any grammar mistakes English is not my native language.
I'm new to python and i have the following dilemma:
How d..... More

Print this item

  pandas error
Posted by: Scott - Feb-05-2020, 07:07 AM - Forum: Data Science - Replies (2)

I recently did some pip installs and upgraded pip, now I am having an issue with pandas. When I try import it I get this error.

C:\Program Files\An..... More

Print this item

  Manipulating index value, what is wrong with this code?
Posted by: Emun - Feb-05-2020, 06:55 AM - Forum: General Coding Help - Replies (1)

I want to manipulate an index value on list1, but can't figure out why the manipulation('alt') appears at two locations instead of just one. list2 sho..... More

Print this item

  Using input function in a Class
Posted by: wew044 - Feb-05-2020, 06:22 AM - Forum: General Coding Help - Replies (2)

Hi All, I am trying to make the code below to be a little bit more interactive by doing the following:
1. When run the code, it will show you the lis..... More

Print this item

  df.str.contains() Not Working
Posted by: ahmedwaqas92 - Feb-05-2020, 04:48 AM - Forum: Data Science - Replies (1)

I have a if/else procedural code that is querying a data frame. I am passing a str.contains() command after the main (else) function, yet it only show..... More

Print this item

  Attemping 3D.
Posted by: Zman350x - Feb-05-2020, 03:02 AM - Forum: Game Development - No Replies

I've been following a tutorial on making 3D graphics from scratch, and I've looked over my code many a time and can't figure out what's wrong. Can som..... More

Print this item

  Create a flowchart
Posted by: Isabella - Feb-05-2020, 01:09 AM - Forum: GUI - Replies (2)

I'm trying to create a flowchart in the wxpython library, but I have no idea what commands to use.
I am not able to define a rectangle and asso..... More

Print this item

  Calculation Question.
Posted by: parkch0708 - Feb-05-2020, 12:57 AM - Forum: General Coding Help - Replies (1)

Hello.

I used Anaconda 3, and I found wrong calculation result.

>>> 4.4 / 100
0.044000000000000004

Is this bug of Python?

Or did I use it..... More

Print this item

  How to append to a dictionary?
Posted by: t4keheart - Feb-04-2020, 09:19 PM - Forum: General Coding Help - Replies (1)

Hi everyone,
This seems like it should be simple, I just don't know how to do it.
Anyways, I'm working with a json response from a server/api.
I..... More

Print this item

  Using groupby on non-categorical values
Posted by: namy77 - Feb-04-2020, 08:36 PM - Forum: General Coding Help - Replies (1)

Hello everybody, I have a data set:
[python]animals = pd.DataFrame({'kind': ['cat', 'dog', 'cat', 'dog'],
'height': [9.1, 6.0, 9.5, 34.0],
'weight': ..... More

Print this item

  Getting the error like function not defined .. suggest correct code
Posted by: raghava - Feb-04-2020, 08:25 PM - Forum: General Coding Help - Replies (1)

[python]
class ABC:
def __init__(self,name,accno):
self.name=name
self.accno=accno

def main(self):
print("W..... More

Print this item

  Class code problem from CS Dojo YouTube
Posted by: Dixon - Feb-04-2020, 07:20 PM - Forum: General Coding Help - Replies (3)

[python]class Robot:
def introduce_self(self)
print("My name is " + self.name)

r1 = Robot()
r1.name = "Tom"
r1.color = "red"
r1.weight = 30
..... More

Print this item

  Replace Bytes in File between Value X and Y with Z
Posted by: lastyle - Feb-04-2020, 04:56 PM - Forum: Data Science - Replies (3)

Hi all

I`ve got a File that contains different Byte Values and i need some of them to be exchanged.

Idea is to read the entire File into an Arra..... More

Print this item

  Best way to map trajectory data on Google Maps
Posted by: Gduffley - Feb-04-2020, 04:26 PM - Forum: General Coding Help - Replies (1)

I have a single csv file containing latitudes and longitudes coordinates of trajectories by multiple objects. I wish to plot those trajectories on a s..... More

Print this item

  How can I simplify this code?
Posted by: frednet - Feb-04-2020, 03:57 PM - Forum: GUI - Replies (3)

I'm trying to write a simple bit of code with tkinter to enable me to switch on and off all the gpio pins with checkbuttons. I've got a basic example ..... More

Print this item

  Screenshot in tkinter
Posted by: raghav7203 - Feb-04-2020, 02:38 PM - Forum: GUI - Replies (2)

How to take screenshot of a particular frame of tkinter and export it as png file to a specific location in ubuntu

Print this item

  Simple text to binary python script
Posted by: gmills13 - Feb-04-2020, 02:31 PM - Forum: General Coding Help - Replies (2)

Hi all,

super new to python and working on a text to binary convertor using a dictionary, and wanting to understand how I get back to text after I..... More

Print this item

  help with sys.get_frame
Posted by: palladium - Feb-04-2020, 02:26 PM - Forum: General Coding Help - Replies (2)

This is the code:

[python]
def date_parser(date):
while True:
try:
checked_date = datetime.strptime(date,'%d %b %Y')
..... More

Print this item

  Data dtype error according to the rule "safe"
Posted by: AndreasMavro - Feb-04-2020, 02:04 PM - Forum: Data Science - Replies (5)

Hello everyone,

I am trying to plot a regression from the Seaborn library in Pycharm, and unfortunately I stumble upon an error which I feel may be d..... More

Print this item

  Seaborn clustermap clustered data
Posted by: YoYo1975 - Feb-04-2020, 08:31 AM - Forum: Data Science - Replies (2)

Dear all,
I am using seaborn clustermap to produce an heatmap with clustering starting with thousands of rows. Because of this not all the row names ..... More

Print this item

  list sum gives unexpected result
Posted by: Nesso - Feb-04-2020, 08:31 AM - Forum: General Coding Help - No Replies

I am trying to sum some lists in order to get this result:
[output]
\start5/8 e16 b16 c16 a2
\start3/8 e16 b2 a16 f16
\start6/8 c16 b8
\start6..... More

Print this item

  scipy interp2d doesn't work
Posted by: player1681 - Feb-04-2020, 08:27 AM - Forum: Data Science - Replies (4)

Hello everybody. I have a .txt file in which a grid of X and Y points and values of f(X, Y) in said grid are constructed as columns. I am trying to pr..... More

Print this item

  How to change part of the value string in Python Dictionary?
Posted by: sbabu - Feb-04-2020, 06:57 AM - Forum: Homework - Replies (11)

How to change part of the value string in Python Dictionary?

recs = {1: ['Susan Smith', 'ssmith@example.com'], 2: ['Cole Brown', 'cb@exampl..... More

Print this item

  Python stops without errors
Posted by: shahgourav - Feb-04-2020, 06:47 AM - Forum: General Coding Help - Replies (4)

Hi,

I have a program which collects data from MQTT broker and stores into SQL Database. When Connection to SQL DB is lost then it stores into local..... More

Print this item

  Update All Packages
Posted by: Evil_Patrick - Feb-04-2020, 04:52 AM - Forum: General Coding Help - Replies (4)

Is it Possible to update all Installed Python packages at once using Pip? Think Think

Print this item

  How can I use CRC libs in python?
Posted by: blodht - Feb-03-2020, 10:26 PM - Forum: General Coding Help - No Replies

Hi! I'm trying to use the checksum algorithm CRC in my code (python), but I'm facing several dificulties. I tried to implement a CRC algorithm by my o..... More

Print this item

  Type Hinting - who's using it?
Posted by: micseydel - Feb-03-2020, 09:50 PM - Forum: News and Discussions - Replies (7)

Who's using type hinting? What are your thoughts on it so far?

Print this item

  Python Starter-Looking for help!
Posted by: PythonStarter55561 - Feb-03-2020, 09:47 PM - Forum: General Coding Help - Replies (3)

,hello

I'm a new python starter and I need help in a script that I need to make.

In the script, the user needs to input the length of the square's r..... More

Print this item

  How to make input goto a different line
Posted by: mxl671 - Feb-03-2020, 09:35 PM - Forum: General Coding Help - Replies (2)

I'm relatively new to Python and coding and general although I've been doing batch and HTML for a while. My friend wants me to make a sales tax calcu..... More

Print this item

  Python3: how to read binary?
Posted by: alexel - Feb-03-2020, 09:18 PM - Forum: General Coding Help - No Replies

Hi!

I try to upload mp4 video file. When I use Python 2+ it works. When I use Python 3 - not

I read the file as binary.

[python]
def get_fil..... More

Print this item

  Creating a code to make unreadable pdf characters readable
Posted by: Tegendraads - Feb-03-2020, 09:10 PM - Forum: Data Science - Replies (1)

Hi There!

I just got into machine learning and data science and was wondering if it would be possible to create a code for the following:

In my dail..... More

Print this item

  Help with a for loop & json...
Posted by: t4keheart - Feb-03-2020, 09:07 PM - Forum: General Coding Help - Replies (1)

Hi everyone,
I'm still stuck trying to get a working function to iterate through a chunk of json, and add the relevant keys/values to a list or dict..... More

Print this item

  program crashing
Posted by: antonzachrisson - Feb-03-2020, 08:42 PM - Forum: General Coding Help - Replies (1)

This is a function that i made for showing all empty squares neighbouring a empty square when clicked. (the program is minesweeper)
[python]
def gra..... More

Print this item

  Not Getting the Desired value using json.dumps
Posted by: saurabh210 - Feb-03-2020, 06:46 PM - Forum: General Coding Help - No Replies

I am Trying to make a small code which will take values from excel and make a json file . I get the desired output except 1 issue . Below is my Code
..... More

Print this item

  TypeError: type str doesn't define __round__ method
Posted by: emmapaw24 - Feb-03-2020, 05:59 PM - Forum: General Coding Help - Replies (7)

Hi, I am unsure how to use the round function for my problem, I am trying to write code that finds the cost of electricity using the wattage, hours an..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Webscrapping sport bettin... 4 minutes ago KoinKoin Williamcaurb Web Scraping ...
  Parse Markdown / get the ... 10 minutes ago SpongeB0B Larz60+ General Codin...
  Error: cannot mix str wit... 9 hours ago ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 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...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
Most views
  The best Prog... 577444
  Tutorial Requ... 500952
  Web Scraping ... 441076
  Newbie with P... 385142
  New Users Int... 369695
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 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Williamcaurb Today
miriamwilliam Today
Davidkiplimo Today
Joliekeva Today
silversimon2 Yesterday

User Panel Messages

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