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,507
» Latest member: DichaelLoaCk
» Forum threads: 38,588
» Forum posts: 174,840

Full Statistics

Online Users
There are currently 713 online users.
» 1 Member(s) | 706 Guest(s)
Bing, Yandex, Mojeek, Apple, deanhystad

Latest Threads
Earnestjoymn
Forum: General Coding Help
Last Post: DichaelLoaCk
31 minutes ago
» Replies: 0
» Views: 31
GichardPoerm
Forum: General Coding Help
Last Post: Lewisquene
45 minutes ago
» Replies: 0
» Views: 36
Stephenisobe
Forum: General Coding Help
Last Post: EarnestJah
1 hour ago
» Replies: 0
» Views: 63
Earnestmaw
Forum: General Coding Help
Last Post: Gichardkip
2 hours ago
» Replies: 0
» Views: 55
Is Python used to make po...
Forum: Game Development
Last Post: RogereK
Today, 04:17 AM
» Replies: 17
» Views: 31,738
Unequal values when added...
Forum: General Coding Help
Last Post: deanhystad
Today, 12:24 AM
» Replies: 1
» Views: 146
Call CLI app with input?
Forum: General Coding Help
Last Post: snippsat
Yesterday, 07:52 PM
» Replies: 5
» Views: 340
backtesting can't optimiz...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 07:46 PM
» Replies: 1
» Views: 124
Looking for ideas
Forum: Bar
Last Post: Larz60+
Yesterday, 10:55 AM
» Replies: 2
» Views: 461
How to put my game loop i...
Forum: Game Development
Last Post: RogereK
Yesterday, 12:35 AM
» Replies: 9
» Views: 2,699

 
  Turn list of arrays into an array of lists
Posted by: Cola_Reb - Jul-19-2022, 04:08 PM - Forum: Data Science - Replies (6)

Hey everyone,

I am currently struggling with the structure of data I receive. As a result of another (not important here) function I get a list fil..... More

Print this item

  is there an itertor of chunks?
Posted by: Skaperen - Jul-19-2022, 04:11 AM - Forum: General Coding Help - Replies (8)

i have a list (or tuple) of many items. here is a very simple case:

foo = (9,8,7,6,5,4,3,2,1,0)
what i want to do is step thro..... More

Print this item

  search a list or tuple for a specific type ot class
Posted by: Skaperen - Jul-19-2022, 01:07 AM - Forum: General Coding Help - Replies (8)

i can easily search a list to find the position of a specific value if i have the exact value using the index function. if i know only ..... More

Print this item

Exclamation Function Not Working
Posted by: Alivegamer - Jul-19-2022, 12:55 AM - Forum: General Coding Help - Replies (7)

I am making a text game. And what I am doing is using another python file as a module in the Main python file(Mod File). And The main file calls The I..... More

Print this item

  Laggy Game Movement
Posted by: game_slayer_99 - Jul-18-2022, 09:55 PM - Forum: Game Development - Replies (11)

I've noticed that the movement in my Pong game is experiencing a strange amount of lag when I start the game up in Python, despite coding it to run at..... More

Print this item

  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'"
Posted by: kalle - Jul-18-2022, 07:00 PM - Forum: Data Science - Replies (2)

Hi

I have equation that i want to execute, but i cannot get it to run.

[python]import numpy as np

x = (np.abs((np.sign)*(90)-0.5)-0.5) * (np...... More

Print this item

  Very First Table
Posted by: drunkenneo - Jul-18-2022, 04:53 PM - Forum: General Coding Help - Replies (1)

Hi

I am trying to create a survey app where user will be asked some questions and they need to answer.

I am creating it in Django.

I have cre..... More

Print this item

  Stripping numbers from text
Posted by: ebolisa - Jul-18-2022, 01:26 PM - Forum: General Coding Help - Replies (4)

Hi,

The response from a web form fills an array. Its content may average from empty to several strings.
I need to extract data from said strings s..... More

Print this item

  Substitue multiple substrings in one command
Posted by: Pavel_47 - Jul-18-2022, 01:24 PM - Forum: General Coding Help - No Replies

Hello,

I have been looking for a solution to replace several different string fragments with different other fragments.
Here's a solution I found,..... More

Print this item

  KivyMD App to APK Convert Error
Posted by: Nick_MC - Jul-18-2022, 08:59 AM - Forum: General Coding Help - No Replies

I'm trying to convert my kivymd app to apk using Google Colab. I also use firebase for this app. However, it runs into an error and I don't know how t..... More

Print this item

  breaking out of nested loops
Posted by: Skaperen - Jul-17-2022, 10:53 PM - Forum: General Coding Help - Replies (3)

deep in some nested loops and a condition test, i need to break out of all of those loops. is there an easy way to do this? i can't use [i]go..... More

Print this item

  [Solved]Display PyQtTable results from A->Z & Z->A
Posted by: Extra - Jul-17-2022, 09:28 PM - Forum: GUI - Replies (2)

Hello,

How do I get my table display to sort the results depending on what header I click.

For ex:
If I click the "Categories" header it shou..... More


Attached Files

Thumbnail(s)
   
Print this item

  Scaping pages created by javascript
Posted by: mbizzl - Jul-17-2022, 07:09 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi all, thanks in advance for any help or advice.

I am trying to create a script to scrape data from a website that contains status for childcare f..... More

Print this item

  Writing to json file
Posted by: ebolisa - Jul-17-2022, 04:13 PM - Forum: General Coding Help - Replies (1)

Hi
At times, the below function writes an extra "}" in the json file and I cannot see where the problem may lie. I appreciate some guidance.
Micropy..... More

Print this item

  I have written a program that outputs data based on GPS signal
Posted by: kalle - Jul-17-2022, 02:14 PM - Forum: General Coding Help - Replies (1)

Hi guys, new member here!

Im seeking for some advice regarding my program. What does it do? It reads the output from a USB GPS dongle, and calculat..... More

Print this item

  Match substring using regex
Posted by: Pavel_47 - Jul-17-2022, 12:36 PM - Forum: General Coding Help - Replies (6)

Hello,

Here is case that doesn't work:

[python]import re
video_info = 'Réalisation :\nPierre Lazarus\nScénario :\nEmmanuelle Moreau\nNoémie Par..... More

Print this item

  Code running many times nad not just one?
Posted by: korenron - Jul-17-2022, 07:56 AM - Forum: General Coding Help - Replies (4)

hello,
something isn't understaood for me
I have this code :

[python]my_os = platform.system()
print("OS in my system : ", my_os)

if my_os ..... More

Print this item

  Get the image's coordinates not the canvas' when navigate on an image
Posted by: hobbyist - Jul-17-2022, 07:39 AM - Forum: General Coding Help - Replies (9)

So, the idea is that I try to load an image, navigate Up, Down, Right, Left with the arrows and each time I press the mouse button to get the image's ..... More

Print this item

  [Solved] Trying to rerun a snippet of code
Posted by: paracel - Jul-17-2022, 02:25 AM - Forum: General Coding Help - Replies (3)

Hello, I'm still fairly new to Python3. I'm tyring to figure out the best way to rerun this code when a key ins't pushed correctly. Appreciate any hel..... More

Print this item

  Find and Replace numbers in String
Posted by: giddyhead - Jul-16-2022, 10:39 PM - Forum: General Coding Help - Replies (2)

Hello everyone

I am looking for a way to take out numbers attached to concat string in paragraphs.

Before:
For example Paragraph:

1
It was ..... More

Print this item

  Complete Guide to Shodan
Posted by: Calli - Jul-16-2022, 04:32 PM - Forum: General Coding Help - Replies (4)

I am going through this Book "Complete Guide to Shodan" and there is this code but it doesn't work

[python]import shodan
api = shodan.Shodan('mya..... More

Print this item

  Click on a button on web page using Selenium
Posted by: Pavel_47 - Jul-16-2022, 02:34 PM - Forum: Web Scraping & Web Development - Replies (7)

Hello,

Here is example where I'm looking for a solution to click on button "Lire plus" on this page:
..... More

Print this item

  Inserting line feeds and comments into a beautifulsoup string
Posted by: arbiel - Jul-16-2022, 09:15 AM - Forum: General Coding Help - Replies (1)

Hi

In a python script which creates html documents using beautifulsoup, I want to insert new lines and html comments between some tags, at specific..... More

Print this item

  Opening CMD from Python
Posted by: Oshadha - Jul-16-2022, 02:54 AM - Forum: General Coding Help - Replies (2)

I want to open a cmd terminal at a specific directory, and run a command, then get the output to a variable in python. I searched the internet but cou..... More

Print this item

  Why my function is returning None?
Posted by: PauloDAS - Jul-16-2022, 12:57 AM - Forum: General Coding Help - Replies (6)

Hello,

Someone can explain why my function is returning None, please? I know that, if I add a "return(word)" in the last line of the "else" block,..... More

Print this item

  How to get a job as a Software Developer in the UK - complete guide
Posted by: jharp - Jul-15-2022, 01:38 PM - Forum: Bar - No Replies

Quick summary:

[Image: developer-find-job-in-the-uk-guide.svg]

In this guide, we will try to answer all t..... More

Print this item

  [split] .delete and .insert not working
Posted by: brigette - Jul-15-2022, 12:20 PM - Forum: GUI - Replies (5)

Yoriz Wrote:Split from https://python-forum.io/thread-27861-post-118832.html into its own thread

Hello. Can anyone help me too? .delete ..... More

Print this item

  InvalidIndexError: (slice(None, None, None), slice(None, -1, None))
Posted by: SuperNinja3I3 - Jul-15-2022, 04:54 AM - Forum: General Coding Help - Replies (1)

[python]data = pd.read_csv('data.csv')

X = data[:,:-1]
Y = data['Outcome']

X_train,X_test,Y_train,Y_test = train_test_split(X,Y, test_size=0.3)..... More


Attached Files

.csv   diabetes.csv (Size: 23.31 KB / Downloads: 294)
Print this item

  TypeError: unsupported operand type(s) for +: 'dict' and 'int'
Posted by: nick12341234 - Jul-14-2022, 09:07 PM - Forum: General Coding Help - Replies (1)

Hello, can anyone explain me why this happens?


[error]Traceback (most recent call last):
File "/Users/nick/Documents/yo.py", line 1661, in <mo..... More

Print this item

  Rolling window and apply code
Posted by: JunkBoy - Jul-14-2022, 06:00 PM - Forum: Data Science - Replies (6)

Hey
I have many large data frames that I need to split into several new data frames.
they need to be split in rolling window split. In this case th..... More

Print this item

  python can - general question
Posted by: caslor - Jul-14-2022, 05:21 PM - Forum: General Coding Help - No Replies

Hi to all.
recently i start to experiment with a python-can (can bus) as i want in the future to make a communication between a raspberry pi with can ..... More

Print this item

  [Solved]Help comparing 2 databases
Posted by: Extra - Jul-14-2022, 02:11 PM - Forum: General Coding Help - Replies (2)

Hello,

I have two SQLite databases that I want to compare (My 'inventory.db' and my 'categories.db').

So, my Inventory Database stores the Name,..... More

Print this item

  If 2nd input in the game is correct, replace with 1st input and loop the game
Posted by: tylerdurdane - Jul-14-2022, 12:40 PM - Forum: Game Development - Replies (11)

Trying to write a simple game to improve my Python knowledge as a newbie.

The game starts with asking a first country name Then asking another cou..... More

Print this item

  Figure Gets Larger Every time I click a show button
Posted by: joshuagreineder - Jul-14-2022, 12:09 PM - Forum: GUI - Replies (2)

Hello,
I am using a template I found to create a python GUI that allows me to navigate through my MatPlotlib plots, however, when I try to show a new..... More

Print this item

  For Word, Count in List (Counts.Items())
Posted by: new_coder_231013 - Jul-14-2022, 12:04 PM - Forum: General Coding Help - Replies (6)

Hello,

I'm going through an introductory Python book and there's some code for a program that finds the most common word in a text file. Please see..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Earnestjoymn 31 minutes ago DichaelLoaCk DichaelLoaCk General Codin...
  GichardPoerm 45 minutes ago Lewisquene Lewisquene General Codin...
  Stephenisobe 1 hour ago EarnestJah EarnestJah General Codin...
  Earnestmaw 2 hours ago Gichardkip Gichardkip General Codin...
  Is Python used to make po... Today, 04:17 ironsheep RogereK Game Developm...
  Unequal values when added... Today, 00:24 Azdaghost deanhystad General Codin...
  Call CLI app with input? Yesterday, 19:52 Winfried snippsat General Codin...
  backtesting can't optimiz... Yesterday, 19:46 Running_Code snippsat General Codin...
  Looking for ideas Yesterday, 10:55 Azdaghost Larz60+ Bar
  How to put my game loop i... Yesterday, 00:35 temlotresid6 RogereK Game Developm...
  Languages 05-22, 18:51 Azdaghost Arush General Codin...
Most views
  The best Prog... 567866
  Tutorial Requ... 467017
  Web Scraping ... 432715
  Newbie with P... 371337
  Thread remain... 343357
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12053
buran 8171
snippsat 7328
deanhystad 6828
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
DichaelLoaCk Today
Lewisquene Today
helena Today
EarnestJah Today
Gichardkip Today

User Panel Messages

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