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

Full Statistics

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

Latest Threads
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: SpongeB0B
4 hours ago
» Replies: 2
» Views: 103
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Today, 03:05 AM
» Replies: 4
» Views: 2,023
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 431
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,074
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,134
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 800
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,092
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,540
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,126
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,584

 
  How to find index of a particular value in a dataframe
Posted by: ankitawadhwa - Jan-21-2020, 09:45 PM - Forum: Data Science - No Replies

Hi,
I need to find index of a particular value in a dataframe.

for ata9 in ATA9_list:
ATA_Data = data[data['ATA9'] == ata9]
..... More

Print this item

  open file from listbox to Text
Posted by: elstolbo - Jan-21-2020, 09:36 PM - Forum: Homework - No Replies

hello programmers. I would like advice on opening a file from a listbox and reading it in the Text box. I have a listbox in which I have listed all th..... More

Print this item

  TypeError: 'Table' object is not callable
Posted by: Melford - Jan-21-2020, 07:41 PM - Forum: GUI - Replies (17)

Hi, I've been trying to make a GUI interface which is updatable and connected to SQLite however I'm receiving the following error:
TypeError: 'Table'..... More

Print this item

  numpy.str bytes issue
Posted by: jrmusiov - Jan-21-2020, 07:09 PM - Forum: Data Science - No Replies

I'm currently using Vizier Query to call the SAO catalog. I've successfully created a script that calls each spectral type, but when I try to plot the..... More

Print this item

  time.sleep works erratically, a bug in Python?
Posted by: stipcevic - Jan-21-2020, 06:58 PM - Forum: General Coding Help - Replies (2)

Hi!

I have a very fast desktop running Windows 10 and Python 3.7.5 (also checked with 3.81 and on other computers and fast laptops).

I used time..... More

Print this item

  How to properly close db connection, best practice
Posted by: t4keheart - Jan-21-2020, 06:15 PM - Forum: General Coding Help - Replies (6)

Hi everyone,
I have a module that connects to a db to check for new entries, and if new, trigger more functions etc.

My question is regarding th..... More

Print this item

  [split] Need help solving this
Posted by: RobinFire136 - Jan-21-2020, 03:20 PM - Forum: General Coding Help - Replies (3)

What's wrong in this why isn't it working?
[python]franko = input("Please enter the text you want to translate")
if franko == "A" or "a":
print..... More

Print this item

  GUI
Posted by: arbondioxide - Jan-21-2020, 02:51 PM - Forum: GUI - Replies (3)

Hello, im creating a code for main menu for a game. Im using tkinter and want to make my buttons open a new window and so on . Basically making my but..... More

Print this item

  Replace words in a file
Posted by: bitwo - Jan-21-2020, 02:27 PM - Forum: General Coding Help - Replies (3)

I have problems with words with backslash in a given text that have a meaning in python. And characters inside words are unwantedly replaced as well. ..... More

Print this item

  cv2 problem when saving image
Posted by: majstr - Jan-21-2020, 01:17 PM - Forum: General Coding Help - Replies (7)

Hello. I'm wiriting a program that saves the first and the last frame from a video file. Everything is woking perfectly until I try to save the first ..... More

Print this item

  How to create image quotes from scratch with nider open source python package
Posted by: janoroot - Jan-21-2020, 01:00 PM - Forum: Tutorial Requests and Submissions - Replies (1)

https://hackerporn.blogspot.com/2020/01/...ratch.html

Print this item

  Order of operations for reassignment of a variable
Posted by: StillAnotherDave - Jan-21-2020, 12:10 PM - Forum: Homework - Replies (1)

Hello folks,

A quick question about the following lines:

x=x**3+2
x=3*x+1
If I were to write this as an equivalent sing..... More

Print this item

  Matrix Search and Calculation Pandas
Posted by: luxlambo227 - Jan-21-2020, 11:19 AM - Forum: Data Science - Replies (5)

Dear all,

I have problems with a matrix search and calculation. This is my problem.
I have a df1 with different year values for each indicator and c..... More

Print this item

  Need help solving this
Posted by: Houston222 - Jan-21-2020, 09:02 AM - Forum: General Coding Help - Replies (3)

[Image: BRzRZMR]

Hi ,rather new at python and need help solving this

It would seems that i am not able to generate more than 2 ..... More

Print this item

  Spawning platforms that don't touch
Posted by: michael1789 - Jan-21-2020, 07:21 AM - Forum: Game Development - Replies (15)

I have this from a "doodle jump" type game.

[python]
while len(self.platforms) < 7:
width = random.randrange(50, 100)
Pl..... More

Print this item

  json.dumps output error in python3
Posted by: prayuktibid - Jan-21-2020, 06:23 AM - Forum: General Coding Help - Replies (2)

I am trying to send a dict file in JSON fromat usin "ujson.dumps" method to local http server. After executing ujson.dumps the output get changes.
..... More

Print this item

  Best compiler for windows or mac linux
Posted by: Shadowdevelopment - Jan-21-2020, 02:25 AM - Forum: News and Discussions - No Replies

Guys i have just made an account as i have seen a lot of programing around the linux O/S which i find fun as i would find windows is great implementat..... More

Print this item

  flask show while calculating
Posted by: keuninkske - Jan-20-2020, 10:04 PM - Forum: Web Scraping & Web Development - Replies (7)

hello,

i am wondering if flask has the ability to render the template already halfway trough the calculation
following is example code

[python]..... More

Print this item

  0 - 1 KnapSack problem
Posted by: Stryker - Jan-20-2020, 09:27 PM - Forum: Homework - Replies (1)

Hey folks, at the moment I am desperately trying to solve a problem with the well known KnapSack problem.
For those who don't know about it: The knap..... More

Print this item

  Missing Python Library
Posted by: Novecento99 - Jan-20-2020, 08:53 PM - Forum: General Coding Help - Replies (8)

Hi everyone:)
I'm playing around with my raspberry, precisly I'm trying to retrieve some info from the mic with python.
I found this library which a..... More

Print this item

  How to plot data from live datasource?
Posted by: Makada - Jan-20-2020, 08:38 PM - Forum: General Coding Help - Replies (14)

Hi,

Ive managed to get live data from the web in code below.
Now i try to make a graph from that data.
Im getting data in numbers and when i run..... More

Print this item

  handling and focus in a window
Posted by: cimerio - Jan-20-2020, 08:19 PM - Forum: General Coding Help - Replies (3)

Hi there.

I need to learn how to access window of other programs, to send data and manipulate.
below its what I need. I made the script with autoh..... More

Print this item

  TypeError: '<' not supported between instances of 'str' and 'int'
Posted by: Svensation - Jan-20-2020, 07:28 PM - Forum: General Coding Help - Replies (5)

Dear all

I just tried my first steps with Python and found a - on the first sight - simple example in the internet. I tried to do it exactly the sa..... More

Print this item

  Raspberry pi to computer
Posted by: RandomCoder - Jan-20-2020, 07:15 PM - Forum: General Coding Help - Replies (1)

Is it possible to connect a raspberry pi to a computer, so that if a certain function is triggered on the raspberry pi, i can output results on the co..... More

Print this item

  ISS Location Finder problem
Posted by: birdwatcher - Jan-20-2020, 06:22 PM - Forum: General Coding Help - Replies (7)

Hey guys,

I have been doing the 'Where is the Space Station?' project on the wonderful Raspberry Pi website and have encountered a problem. When I ..... More

Print this item

  tkinter checkbutton if checked
Posted by: MC2020 - Jan-20-2020, 05:45 PM - Forum: GUI - Replies (2)

Hi - I am learning python and need help with this code. I have researched online, but haven't been able to find an answer for what I'm looking for.
..... More

Print this item

  IndexError: tuple index out of range ?
Posted by: JohnnyCoffee - Jan-20-2020, 05:06 PM - Forum: Web Scraping & Web Development - Replies (4)

I have a perfectly functioning code that accesses certain array indexes with problems!

The following message appears in the terminal: IndexError: t..... More

Print this item

  open cv ->pygame: turn image into location
Posted by: Gamedeveloper - Jan-20-2020, 03:59 PM - Forum: Game Development - Replies (1)

Hi.

I have built a physical maze (black background, white walls) and want to make it digital.
I have used edge detection in open cv and it detects al..... More

Print this item

  output mismatching when porting a python from python2 env to python3 env
Posted by: prayuktibid - Jan-20-2020, 03:46 PM - Forum: General Coding Help - Replies (2)

I am porting a python code which was written in python2 into the latest python3.8. I made some minor changes in syntax without changing the main logic..... More

Print this item

  Extracting hole-coordinates from a STEP-file
Posted by: Saksa - Jan-20-2020, 03:14 PM - Forum: General Coding Help - Replies (1)

Hi!

This might not be 100% Python specific, but since I am writing the script in Python, I thought to post this here.

I am trying to create a s..... More

Print this item

  Concatenate/Join/Merge two Dataframes
Posted by: karlito - Jan-20-2020, 01:05 PM - Forum: Data Science - Replies (4)

Hi,

I'm trying to concatenate two Dataframes with the same size but doesn't seem to work. any ideas? links to images
- my Dataframes: [url=https:/..... More

Print this item

  Downloading Images - Unable to find correct selector
Posted by: Brompy - Jan-20-2020, 08:01 AM - Forum: Web Scraping & Web Development - Replies (4)

I'm trying to write a script that 1) goes to a website 2) downloads and parses the HTML 3) downloads a comic image 4) selects the "previous comic butt..... More

Print this item

  App for excel sheet analysis
Posted by: awookado - Jan-20-2020, 08:00 AM - Forum: Homework - Replies (6)

Hey all,


A python beginner here. I need to create an app that will analyze excel sheets. The idea is:

1. A user inputs 2 excel sheets, one wil..... More

Print this item

  Should you include uneven data
Posted by: donnertrud - Jan-20-2020, 07:42 AM - Forum: Data Science - No Replies

Hi guys,

I am trying to make this post very short, because its a very general and simple question. I have a dataset which includes date as a feature...... More

Print this item

  please help me to install mysqlclient!!!
Posted by: njnkhanal - Jan-20-2020, 07:17 AM - Forum: General Coding Help - Replies (1)

i am having trouble,
when i inter 'pip install mysqlclient'
then it responce:

Collecting mysql
Downloading https://files.pythonhosted.org/pa..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 4 hours ago SpongeB0B SpongeB0B General Codin...
  Error: cannot mix str wit... Today, 03:05 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
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
Most views
  The best Prog... 577449
  Tutorial Requ... 501009
  Web Scraping ... 441078
  Newbie with P... 385146
  New Users Int... 369741
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
kyleconor797 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