Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,627
» Latest member: LauraTanner
» Forum threads: 37,386
» Forum posts: 169,897

Full Statistics

Online Users
There are currently 371 online users.
» 2 Member(s) | 362 Guest(s)
Bing, Google, Baidu, AOL, Applebot, Yandex, Gribouillis, sachin1361

Latest Threads
Loop through all files in...
Forum: General Coding Help
Last Post: Gribouillis
4 minutes ago
» Replies: 8
» Views: 148
Volume label
Forum: Bar
Last Post: DPaul
1 hour ago
» Replies: 1
» Views: 47
TypeError: Diagram.render...
Forum: Code Review
Last Post: sachin1361
2 hours ago
» Replies: 0
» Views: 28
match case
Forum: Code sharing
Last Post: main
8 hours ago
» Replies: 0
» Views: 58
Understand Named Tuples
Forum: Tutorial Requests and Submissions
Last Post: main
8 hours ago
» Replies: 0
» Views: 44
dict.setdefault()
Forum: Code sharing
Last Post: main
8 hours ago
» Replies: 0
» Views: 50
FutureWarning: The behavi...
Forum: General Coding Help
Last Post: deanhystad
10 hours ago
» Replies: 12
» Views: 231
Add NER output to pandas ...
Forum: Data Science
Last Post: dg3000
Yesterday, 08:14 PM
» Replies: 0
» Views: 38
Made a discord bot game t...
Forum: General Coding Help
Last Post: Dmcsdiscord
Yesterday, 02:27 PM
» Replies: 1
» Views: 125
What does .flush do? How ...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 01:15 PM
» Replies: 3
» Views: 142

 
  TypeError: a bytes-like object is required, not 'str' - Help Please.
Posted by: IanJ - May-19-2020, 02:49 PM - Forum: General Coding Help - Replies (3)

Hi,

I have inherited a number of python scripts for AWS Lambda that need upgrading from python 2.7 to v3. The following script has been through the..... More

Print this item

  key = getkey() opens platforms.py
Posted by: Toolman - May-19-2020, 02:38 PM - Forum: General Coding Help - Replies (1)

I'm attempting to use getkey. The little program debugs up to where the value for 'key' is set. At that..... More

Print this item

  Error message box and quit app
Posted by: Kumarkv - May-19-2020, 02:33 PM - Forum: GUI - Replies (1)

Hi,

I am doing a callback on OptionMenu. as per the below code when the condition if source == destination then i would like to generate an ..... More

Print this item

  Binary to decimal script
Posted by: ThorOdinson12521 - May-19-2020, 02:31 PM - Forum: General Coding Help - Replies (1)

Hey,
I missed a coding class today and I didn't understand at all the script we have been given for homework. We are supposed to write and input and ..... More

Print this item

  [split] NameError: name 'formats' is not defined
Posted by: shobhu123 - May-19-2020, 02:28 PM - Forum: General Coding Help - Replies (1)

soup = BeautifulSoup(response.content,formats[crawl_len])
Error:
NameError: name 'formats' is not defined
why should i ge..... More

Print this item

  Code starts slowing down? MemoryError
Posted by: AshkanDev - May-19-2020, 02:19 PM - Forum: General Coding Help - Replies (1)

(Information before reading: I am a native German speaker and i learned English in school, so i am sorry if something sounds incomprehensible)

Hell..... More

Print this item

  3D array manipulation
Posted by: ibmr19 - May-19-2020, 01:17 PM - Forum: Homework - Replies (3)

Dear all,

So for a homework assignment, I have trouble manipulating a 3D array (26,26,500). From the 300th element in the last row, all values shou..... More

Print this item

  Problems with modules
Posted by: mectos - May-19-2020, 12:51 PM - Forum: General Coding Help - No Replies

[align=left]

Hello :),

I'm a newbie, started messing around with python a few days ago.
I find myself sitting hours about this shit actually.
..... More

Print this item

  Multiple items of a matrix has been updated.
Posted by: Yoki91 - May-19-2020, 12:16 PM - Forum: General Coding Help - Replies (4)

Hey everyone, I an new in Python and I want to update an item of a matrix, but 3 items are updated. I am not sure why this happens.
Please check the ..... More

Print this item

  Instagram Phone Emulation
Posted by: kristianpython - May-19-2020, 11:54 AM - Forum: Web Scraping & Web Development - No Replies

Hi,

I am using selenium.webdriver to open my companies instagram.

I am having issues with getting a comment to input

[python]
import autoit..... More

Print this item

  Merging excel worksheets with balnk rows
Posted by: sauravksingh85 - May-19-2020, 11:36 AM - Forum: General Coding Help - Replies (1)

Hi,

There is a task where I have to merge multiple excel spread sheets. The column number do not start from the first column and it can lie & star..... More

Print this item

  How to make Python 3.7.6 accessible to users
Posted by: Doguhan - May-19-2020, 10:37 AM - Forum: General Coding Help - Replies (4)

Hello everyone

In our server, Python 3.7.6 has been installed, along with Anaconda3 and all the pip packages, including Pandas.

However, the..... More

Print this item

  How to get first two characters in a string
Posted by: scratchmyhead - May-19-2020, 10:33 AM - Forum: General Coding Help - Replies (2)

I have a tuple that I converted the first part of the tuple into a string and I want to get the first two characters of that variable. For example

..... More

Print this item

  Grouping algorithm
Posted by: riccardoob - May-19-2020, 09:58 AM - Forum: General Coding Help - Replies (7)

As the title says I'm trying to write a grouping algorithm, although I'm not sure if that is the right term to describe what I need. Here a better exp..... More

Print this item

  using element on a list as condition statement
Posted by: glennford49 - May-19-2020, 09:07 AM - Forum: General Coding Help - Replies (11)

how to implement this code ?
i want any value in the list1 be compared in variable sum
if has , statements will follow
if no , prints a string as ..... More

Print this item

  Classification and Regression tree (CART)
Posted by: kumarants - May-19-2020, 08:37 AM - Forum: Data Science - Replies (2)

[python]
import sklearn
from sklearn.preprocessing import LabelEncoder
import pandas as pd
import numpy as np
data=pd.read_excel('CART.xlsx')
le..... More

Print this item

  Having issue with regular expressions
Posted by: azulu - May-19-2020, 04:42 AM - Forum: Homework - Replies (5)

For this homework assignment I have been tasked with web scraping using regex (I know it isn't best practice). I believe the code I have is correct, a..... More

Print this item

  help with strip function
Posted by: gabejohnsonny21 - May-19-2020, 03:48 AM - Forum: Homework - Replies (2)

I have a text file which is written like this

a


I have a text file which is written like this:
a \t b \t c \t d
d \t c \t d \t a
a \t b \..... More

Print this item

  how to correctly index
Posted by: arman888 - May-19-2020, 02:47 AM - Forum: General Coding Help - Replies (1)

My goal is to print only 1 name out of 3 on the list. however, I end up with the wrong results like

ike
ohnson
ennedy

below is my code in pyt..... More

Print this item

  getting inputs efficiently
Posted by: arman888 - May-19-2020, 02:36 AM - Forum: General Coding Help - Replies (2)

Is is posssible to get several inputs at once in 1 request, not 1 by 1 in series of input requests. For example: how to get the input of name and ag..... More

Print this item

  Is it the right way to create a second window?
Posted by: aquerci - May-19-2020, 01:23 AM - Forum: GUI - Replies (3)

hi guys,

I'm writing a graphical interface with Tkinter for some of my scripts and I would very like to know what do you think about my code because..... More

Print this item

  'NavigableString' object has no attribute 'h2'
Posted by: RandomCoder - May-19-2020, 12:44 AM - Forum: Web Scraping & Web Development - Replies (5)

Good Afternoon!
I have been following a tutorial on beautiful soup by Corey Schafer, but I came across an error when writing the code, and I do not ..... More

Print this item

  Ending the Program
Posted by: Twoshawns - May-18-2020, 10:38 PM - Forum: General Coding Help - Replies (2)

So right now I am trying to figure out how to prompt the user to type in yes or no in order to either continue or end the game. I have the prompt but ..... More

Print this item

  Creating Nested Dictionaries Confusion
Posted by: gw1500se - May-18-2020, 07:52 PM - Forum: General Coding Help - Replies (2)

I'm afraid I am not understanding dictionaries. After reading various articles the only thing I learned is I don't know what I am doing. To start, I a..... More

Print this item

  Using Function in a For loop
Posted by: vp1989 - May-18-2020, 05:04 PM - Forum: General Coding Help - Replies (5)

Using function variable C from the previous iteration and then calculate VB for the current iteration. Then Use VB to calculate C from the next iterat..... More

Print this item

  Somebody help pls!!
Posted by: pauliinaw - May-18-2020, 04:03 PM - Forum: Homework - Replies (2)

I have a homework, which I cant do myself. It's so hard to do, and I have like three days to finish it. Aaaand I'm so sorry, I'm from Finland so my en..... More

Print this item

  Error: Couldn't open image
Posted by: DotGuy - May-18-2020, 03:49 PM - Forum: Game Development - Replies (2)

Hello, I have recently started following a pygame flappy bird tutorial series.
[align=left]In the code that he shows in the tuto..... More

Print this item

  Silly sentence generator (how to print the sentence in the app)
Posted by: pav1983 - May-18-2020, 03:37 PM - Forum: GUI - Replies (5)

Dear python Community, I am having a hard time trying to figure out how to print the result in the app for my silly sentence generator. I was able to ..... More

Print this item

  How to place scroll bar correctly
Posted by: scratchmyhead - May-18-2020, 03:07 PM - Forum: GUI - Replies (1)

I have a listbox that is inside of a frame and when I put a scrollbar with the listbox, I want it to be to the right of the listbox but instead is loc..... More


Attached Files

Thumbnail(s)
   
Print this item

  Show pressure data in a nice graphical way?
Posted by: EmG - May-18-2020, 01:43 PM - Forum: News and Discussions - Replies (3)

Hi everyone,

I want to read some pressure data over a serial connection but then I need the data shown in a "nice graphical way" like a graph. I'm..... More

Print this item

  Mandelbrot set in Python
Posted by: Snorku - May-18-2020, 01:02 PM - Forum: Homework - Replies (7)

0


I have a problem. I'm doing a task for my lessons and I'm doing my best, but the teacher does not seem to care and I need to look for the probl..... More

Print this item

  import numpy problem
Posted by: ptnb - May-18-2020, 12:52 PM - Forum: Data Science - Replies (1)

I guess this is basic issue, but lost some time on this, so I figured I should ask for help here.

Problem is that when I try to import numpy I get ..... More

Print this item

  Cant find root cause of thread.lock error
Posted by: burlyboys - May-18-2020, 12:49 PM - Forum: General Coding Help - No Replies

I am porting some python 3 code back to 2.7 to support a ROS implementation and am stuck on a thread.lock error when starting my process. The code tha..... More

Print this item

  browse a python prog on intranet
Posted by: joeydream - May-18-2020, 10:49 AM - Forum: Web Scraping & Web Development - No Replies

A thermal camera is installed on a raspberry pi and running on a python program smoothly.
The live video/image will be posted on a new frame when run..... More

Print this item

  Unable post request to AWS elasticsearch service
Posted by: Rupini - May-18-2020, 08:27 AM - Forum: General Coding Help - No Replies

When I try to use the below code to load data from S3 bucket into AWS ES, I am able to get request post status code as 201.

[python]
from __future..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Loop through all files in... 4 minutes ago Winfried Gribouillis General Codin...
  Volume label 1 hour ago DPaul DPaul Bar
  TypeError: Diagram.render... 2 hours ago sachin1361 sachin1361 Code Review
  match case 8 hours ago main main Code sharing
  [Intermediate] Understand... 8 hours ago main main Tutorial Requ...
  dict.setdefault() 8 hours ago main main Code sharing
  FutureWarning: The behavi... 10 hours ago sawtooth500 deanhystad General Codin...
  Add NER output to pandas ... Yesterday, 20:14 dg3000 dg3000 Data Science
  Made a discord bot game t... Yesterday, 14:27 Dmcsdiscord Dmcsdiscord General Codin...
  What does .flush do? How ... Yesterday, 13:15 Pedroski55 snippsat General Codin...
  Need help with Allure rep... Yesterday, 09:59 Nik1811 Nik1811 General Codin...
Most views
  The best Prog... 407395
  Web Scraping ... 298881
  Tutorial Requ... 289686
  Newbie with P... 248477
  Thread remain... 230252
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11871
buran 8090
snippsat 7084
deanhystad 6211
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
LauraTanner Today
main Yesterday
dg3000 Yesterday
FortuneCoins Yesterday
tolstonnee Yesterday

User Panel Messages

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