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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,277
» Latest member: jackhunter
» Forum threads: 38,792
» Forum posts: 175,868

Full Statistics

Online Users
There are currently 30 online users.
» 0 Member(s) | 27 Guest(s)
Google, Bing, AOL

Latest Threads
Insightful Guidance for M...
Forum: News and Discussions
Last Post: jackhunter
56 minutes ago
» Replies: 0
» Views: 8
How expensive is a Carniv...
Forum: News and Discussions
Last Post: cruisesfares
1 hour ago
» Replies: 0
» Views: 4
[BeautifulSoup] A few que...
Forum: Web Scraping & Web Development
Last Post: Larz60+
1 hour ago
» Replies: 1
» Views: 55
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
4 hours ago
» Replies: 0
» Views: 12
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
6 hours ago
» Replies: 11
» Views: 5,959
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
6 hours ago
» Replies: 2
» Views: 4,278
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 08:34 PM
» Replies: 3
» Views: 265
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:03 AM
» Replies: 1
» Views: 123
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 197
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,104

 
  Extracting rows based on condition on one column
Posted by: Robotguy - Aug-06-2020, 04:22 PM - Forum: Data Science - Replies (2)

Hi Everyone,

Here is an interesting problem I am trying to solve.

I have a (Nx4) array and want to extract those rows which have their third co..... More

Print this item

  HELP!!!
Posted by: munirh070 - Aug-06-2020, 04:13 PM - Forum: General Coding Help - Replies (6)

#######################################
[python]number = [1,1,1,1,1,1,1,1,1,1]

for i in car:
if(i == 1):
number.remove(i)

print(c..... More

Print this item

  Bullet firing
Posted by: skillamac - Aug-06-2020, 04:00 PM - Forum: Game Development - Replies (3)

I'm working on a python game for uni and Im having an issue. I cant seem to get the bullets to fire from my spaceship and I dont know why? Ive checked..... More

Print this item

  IndexError in Project Euler attempt
Posted by: CRISPRmetoopls - Aug-06-2020, 03:33 PM - Forum: General Coding Help - Replies (3)

Hi everyone!
I'm trying to familiarise myself with maths and CS, so I started doing these little Project Euler challenges.
This is the one I tried t..... More

Print this item

  WinError 87 while running .exe file
Posted by: Timych - Aug-06-2020, 02:36 PM - Forum: General Coding Help - No Replies

Hello everyone! Maybe it is an offtop but I am a bit puzzled.. Just generated exe file for my GUI python program for working with some geospatial data..... More

Print this item

  Excel password recovery tool for work
Posted by: OTH - Aug-06-2020, 02:29 PM - Forum: General Coding Help - Replies (6)

Hi,

I am new to this forum and have only posted one other post but i am working on a few codes at once, I am still not sure whether I am completing..... More

Print this item

  need to define date range of files to copy over
Posted by: OTH - Aug-06-2020, 02:06 PM - Forum: General Coding Help - Replies (4)

Hi,

This is my first post so really sorry if I have done this incorrectly.

I have added raw_input that lets the user choose file extension.
Th..... More

Print this item

  Extracting year from a string using strptime and datetime builtin
Posted by: Drone4four - Aug-06-2020, 02:04 PM - Forum: General Coding Help - Replies (3)

I’m trying to extract the year from a date of a string. One way of doing it would be to use string slicing which is easy and obvious. But I am trying..... More

Print this item

  Updating dictionary with tuple
Posted by: Mark17 - Aug-06-2020, 02:02 PM - Forum: General Coding Help - Replies (2)

I'm trying to understand the update method by adding a tuple to a dictionary. Can someone please the Traceback here? I was able to add a list of two..... More

Print this item

  how to retain time format in df.to_csv
Posted by: Mekala - Aug-06-2020, 01:50 PM - Forum: General Coding Help - Replies (2)

Hi,
I have below data in csv file, and I read the file and rewrite. When write to csv using df.to_csv, it lossing time format, I want to show full ti..... More

Print this item

  Windows 10 Python Version
Posted by: DevSrc8 - Aug-06-2020, 01:45 PM - Forum: General Coding Help - Replies (6)

I have a new 64 bit windows 10 machine and downloaded python 3.8.5 along with anaconda's spider IDE and was unable to get PyPDF2 or Camelot to work fo..... More

Print this item

  Need help with a code
Posted by: saratha - Aug-06-2020, 10:57 AM - Forum: Homework - Replies (5)

Hey everyone,
I have a problem solving this code, so can you help?

The problem is: to do a repetition count and give the result as a dictionary. ..... More

Print this item

  Preference based sorting
Posted by: hrefamid - Aug-06-2020, 07:31 AM - Forum: General Coding Help - Replies (3)

Given a text file as input with each line representing an element (a, b, c, d... for the sake of this example), how would you write a python script th..... More

Print this item

  Flask, Display a picture outisde the static
Posted by: SpongeB0B - Aug-06-2020, 05:40 AM - Forum: Web Scraping & Web Development - Replies (6)

Hi everyone,

I have a html page under template\about\index.html

Is it possible to display an image who is located in the same path -> template\a..... More

Print this item

  how to install pyramid.arima in jupyter notebook
Posted by: bntayfur - Aug-06-2020, 04:29 AM - Forum: General Coding Help - Replies (1)

!pip install pyramid.arima
from pyramid.arima import auto_arima
[error]
....

error: Microsoft Visual C++ 14.0 is required..... More

Print this item

  How to run diskpart from python script
Posted by: obgocs - Aug-06-2020, 04:26 AM - Forum: General Coding Help - Replies (1)

Hello Everyone,

I'm looking to wipe several laptop drives using a bootable usb and a python script that will run diskpart and the list disk, select..... More

Print this item

  New to this! Looking for tips and critique please!
Posted by: juanhunnit - Aug-05-2020, 11:38 PM - Forum: Code Review - Replies (1)

HEY, THE CODE BELOW IS AN EXPERIMENT WITH A SIMPLE PREDICTION MODEL. IT IS MY FIRST CODING, SO I'M LOOKING FOR OPINIONS ON THE QUALITY AND ANY ADVICE ..... More

Print this item

  Help with getting a led to flash.
Posted by: corsasri - Aug-05-2020, 07:21 PM - Forum: General Coding Help - Replies (10)

I’m looking for a bit of help trying to get a led to blink on and off. I have tried adding a bit of code to different locations in the script but just..... More

Print this item

  Adding an image to a tkinter window
Posted by: djwilson0495 - Aug-05-2020, 04:54 PM - Forum: GUI - Replies (2)

Hi I'm trying to add an image to a tkinter window using the following code
[python]
from tkinter import * # gives access to tkinter GUI library

d..... More

Print this item

  RuntimeError: Optimal parameters not found: Number of calls to function has reached m
Posted by: bntayfur - Aug-05-2020, 04:38 PM - Forum: General Coding Help - No Replies

[python]
population = float(46750238)
country_df = pd.DataFrame()
country_df['ConfirmedCases'] = train.loc[train['Country_Region']=='Spain'].Confir..... More

Print this item

  Delete line of file
Posted by: dionatandiego11 - Aug-05-2020, 02:27 PM - Forum: Homework - Replies (2)

Hi,

I would like to create a function that when triggered deletes line from a txt file

ex:
[python]a = input ("which movie would you like to ..... More

Print this item

  Quotes vs. no quotes around numbers
Posted by: Mark17 - Aug-05-2020, 01:40 PM - Forum: General Coding Help - Replies (6)

This code works:
[Python]
if '2011' in baby_names:
print('Found 2011')

if 1 in baby_names[2012]:
print('Found Rank 1 in 2012')
el..... More

Print this item

  Extract data from a table
Posted by: Bob_M - Aug-05-2020, 12:49 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi everyone, I am a novice with Python and learning BeautifulSoup. I understand (at least I think) the basics and have done some succesfull scraping (..... More

Print this item

  absolute imports between folders
Posted by: mikisDW - Aug-05-2020, 12:26 PM - Forum: General Coding Help - No Replies

Hello,

I'm working on a tkinter gui, and I keep having issues with imports.
I've spent quite some time reading about imports, but I guess it still..... More

Print this item

  problem with libspatialindex using tkinter
Posted by: Timych - Aug-05-2020, 11:35 AM - Forum: General Coding Help - Replies (1)

I am trying to generate .exe with the help of pyinstaller. However, when I try to run my executable file it generates an error :

[python]in exec_mo..... More

Print this item

  _tkinter.TclError: bitmap "Icon.gif" not defined
Posted by: djwilson0495 - Aug-05-2020, 09:47 AM - Forum: GUI - Replies (2)

I'm trying to change the icon of the tkinter window for the following code:
[python]
from tkinter import * # gives access to tkinter GUI library

..... More

Print this item

  How to denoise ECG Signal with median filter using WFDB for Python?
Posted by: fhp0223 - Aug-05-2020, 07:10 AM - Forum: Data Science - No Replies

Anybody familiar with WFDB application for Python?

So I'm trying to denoise MIT-BIH Arrhythmia Data[url=https://python-forum.io/thread-28832.html]..... More

Print this item

  Ask for explaining wmd-relax
Posted by: AndrzejB - Aug-05-2020, 06:11 AM - Forum: Data Science - No Replies

In https://github.com/src-d/wmd-relax is implemented Fast Word Mover's Distance.
Distance between words..... More

Print this item

  Python Scrapy Date Extraction Issue
Posted by: tr8585 - Aug-05-2020, 02:06 AM - Forum: Web Scraping & Web Development - Replies (1)

I am struggling with how to properly extract an oddly formatted date that exists on the page in one location using Python Scrapy.

[b]What needs to ..... More

Print this item

  Best module for creating a web based form?
Posted by: t4keheart - Aug-05-2020, 12:48 AM - Forum: Web Scraping & Web Development - Replies (12)

Hi guys,
I have a requirement to code a form for my users. This form needs to be able to interact with a database to autofill fields based on user i..... More

Print this item

  Command button, then more command buttons
Posted by: Heyjoe - Aug-04-2020, 11:58 PM - Forum: GUI - Replies (4)

I am a beginner trying to learn Tkinter.

The objectives of the following code are to
1) Show a red "Press here to start button."
2) After the ..... More

Print this item

  range as a command
Posted by: Skaperen - Aug-04-2020, 11:55 PM - Forum: Code sharing - Replies (8)

i tried this on Ubuntu Linux. i hope it works in other places you can have commands in Python like Windows.

[python]
#!/usr/bin/env python3
# -*..... More

Print this item

  Tkinter Python: How to make sure tkSimpleDialog takes in No value entered
Posted by: rcmanu95 - Aug-04-2020, 10:12 PM - Forum: GUI - Replies (3)

I am making a GUI in Python 2.7 and I am using Tkinter. Right now what this simple dialog box is doing is it is taking the answer that we are typing e..... More

Print this item

  Append root directory folder and subdirectory to filename
Posted by: glittergirl - Aug-04-2020, 06:51 PM - Forum: General Coding Help - Replies (9)

I have a few text files, such as a.txt and b.txt, in a location called dir/test2. I would like to rename those two files to dir_test2_a.txt and dir_te..... More

Print this item

  "could not access network location _\"
Posted by: MrMiyagi - Aug-04-2020, 06:47 PM - Forum: General Coding Help - No Replies

Hello guys, I'm new in python coding and I'm trying to install Python 3.8.5 for windows 10 64bit due to error "could not access to network location _\..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Insightful Guidance for M... 56 minutes ago jackhunter jackhunter News and Disc...
  How expensive is a Carniv... 1 hour ago cruisesfares cruisesfares News and Disc...
  [BeautifulSoup] A few que... 1 hour ago Winfried Larz60+ Web Scraping ...
  How to Implement Real-Tim... 4 hours ago ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 6 hours ago temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 6 hours ago Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... Yesterday, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... Yesterday, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
Most views
  The best Prog... 579166
  Tutorial Requ... 511754
  Web Scraping ... 442129
  Newbie with P... 386196
  New Users Int... 378948
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12109
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
jackhunter Today
eastnoob Yesterday
cruisesfares Yesterday
SavingSquirrel199835 11-18
Astrobert 11-18

User Panel Messages

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