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,284
» Latest member: Stephenchers
» Forum threads: 38,793
» Forum posts: 175,876

Full Statistics

Online Users
There are currently 36 online users.
» 2 Member(s) | 28 Guest(s)
Bing, Google, AOL, Mojeek, Applebot, lovedeep, kshahzad1985

Latest Threads
LhanePulse
Forum: General Coding Help
Last Post: Gichardaxora
3 hours ago
» Replies: 0
» Views: 16
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 12:05 PM
» Replies: 5
» Views: 118
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 50
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,483
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 143
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 63
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,070
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,299
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 367
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 206

 
  How to change 0 based indexing to 1 based indexing in python..??
Posted by: Ruthra - Jan-22-2020, 04:12 PM - Forum: General Coding Help - Replies (2)

Python works in 0 based index. I have tried to change the python to work in 1 based index.

python_file_A.py
[python]def __getitem__(..... More

Print this item

  Send email to gmail after user fill up contact form and getting django database updat
Posted by: Man_from_India - Jan-22-2020, 03:59 PM - Forum: Web Scraping & Web Development - No Replies

I created a django app where inside an HTML file I created a contact form. And when any user fill up the form and press submit button, django database..... More

Print this item

  [PySimpleGUI]Install package on Conda not up-to-date
Posted by: RayJohnson - Jan-22-2020, 02:59 PM - Forum: GUI - Replies (4)

Hi,

If I install PySimpleGUI using Conda in a Conda (Miniconda / Anaconda) environment, the installed version is 4.6.0, while the current version o..... More

Print this item

  How to read json hierarchical with NO fix attributes
Posted by: hpbr21 - Jan-22-2020, 02:31 PM - Forum: General Coding Help - Replies (1)

My Json is as below:

{"Parties":[{"PartyRoleCode":"Customer","PartyBECountry":"GB","PartyBECode":"PRIMARK","PartyBEFunction":"HQ"},{"PartyRoleCode"..... More

Print this item

  Plotting axes help
Posted by: StillAnotherDave - Jan-22-2020, 02:00 PM - Forum: Homework - Replies (11)

Hello,

The question states:

As we will later be acting on the coordinate axes with passive transformations, we will need to have our axes stored..... More

Print this item

  finding class with only part of the name
Posted by: zarize - Jan-22-2020, 01:56 PM - Forum: Web Scraping & Web Development - Replies (2)

hi guys,

Let's say that i have:

1st Case

<div>
<class: test-abc-1>
2nd Case
<div>
<class: test-abc-2>
How to tel..... More

Print this item

  What To Build ?
Posted by: MrGoat - Jan-22-2020, 01:21 PM - Forum: News and Discussions - Replies (1)

So I am learning Python and finished the Python module on Codeacademy ...

I would like to build some interesting project that has real-world applic..... More

Print this item

  Simple flask rest api problem
Posted by: cancerboi - Jan-22-2020, 11:59 AM - Forum: Web Scraping & Web Development - Replies (4)

I have to write flask app for my project. It's meant to get photo from user, then induce openCV class that detects objects in the picture.

I've wat..... More

Print this item

  Plot data from list.
Posted by: Makada - Jan-22-2020, 10:57 AM - Forum: General Coding Help - No Replies

Hi,

Id like to know how i can plot data from a list.
I know how to plot data which is on one line, like 1,2,3,4,5,6. But not in a list.
Example d..... More

Print this item

  Beginner question: lxml's findall in an xml namespace
Posted by: aecklers - Jan-22-2020, 10:53 AM - Forum: General Coding Help - No Replies

Hi all,

I just learned the python basics and so I'm pretty sure that I have overseen something pretty obvious. Due to the fact that I'm trying to f..... More

Print this item

Lightbulb how to get improve coverage while using coverage.py
Posted by: sami23 - Jan-22-2020, 10:47 AM - Forum: General Coding Help - No Replies

Hello,

I am having a hard time getting a grasp of coverage.py
I've made the mistake to start writing code one month ago and almost completed the..... More

Print this item

  Scope of variable when using two classes
Posted by: AyJay - Jan-22-2020, 09:08 AM - Forum: GUI - Replies (2)

I have written a program (Python V3.7.4) for a games timer and there is a bug in it that I have not been able to fix. It contains one instance of clas..... More

Print this item

  repeated method call
Posted by: berckut72 - Jan-22-2020, 08:12 AM - Forum: GUI - Replies (4)

Hello!
Have a nice day, everyone!
There was a problem: previously did
change of time by functions, without classes - everything worked well. I deci..... More

Print this item

  Regarding import library in two different program file
Posted by: Rohit - Jan-22-2020, 04:30 AM - Forum: General Coding Help - Replies (3)

Hi,
I wrote two Python programs. One program has a class definition and other program importing that class to access its attributes and methods. In bo..... More

Print this item

  Chinese coding language ‘Mulan’ found to be Python fork
Posted by: buran - Jan-22-2020, 04:30 AM - Forum: News and Discussions - No Replies

https://technode.com/2020/01/20/self-pro...of-python/

Print this item

  MySQLdb._exceptions.ProgrammingError: not enough arguments for format string.
Posted by: farah97 - Jan-22-2020, 03:49 AM - Forum: General Coding Help - No Replies

Hi...I have created a button to copy data from table1 to table2. The problem is I got this error:
[error]MySQLdb._exceptions.ProgrammingError: not en..... More

Print this item

  Database Submit Entry Syntax Error
Posted by: Melford - Jan-22-2020, 03:02 AM - Forum: GUI - Replies (27)

Hi, hopefully quick and simple; I'm currently trying to assign a preexisting button to an execute function which uploads data filled in via GUI to an ..... More

Print this item

  Problem keeping the window up
Posted by: benlyboy - Jan-22-2020, 02:31 AM - Forum: General Coding Help - Replies (11)

Hi I'm no coder I'm teaching my self python just for the fun of it. So forgive me if the is a ridiculous question but here goes.
What I'm trying to d..... More

Print this item

  Passing a function to another function
Posted by: yulfmd1802 - Jan-22-2020, 01:30 AM - Forum: Homework - Replies (3)

How do you pass a certain value from a function to another function? Previously I know how to pass a value from a function to the main() function. Att..... More

Print this item

  Endovia Alpha 1.100
Posted by: Uriel_Nicotine_Jeremy - Jan-22-2020, 01:14 AM - Forum: Code sharing - No Replies

I'm making a roguelike and the only thing you can do in the game is kill rodents. But it's the first alpha release. Click ..... More

Print this item

  Changing Column dtypes in DataFrame
Posted by: Scott - Jan-22-2020, 01:10 AM - Forum: Data Science - Replies (5)

Hi everyone,

I have a DF with roughly 700 columns. I'd like to create a loop which loops through columns updating dtype category columns to object ..... More

Print this item

  Scraping problems with Python requests.
Posted by: gtlhbkkj - Jan-21-2020, 10:52 PM - Forum: Web Scraping & Web Development - Replies (1)

solved

Print this item

  Requests scraping
Posted by: julio2000 - Jan-21-2020, 10:27 PM - Forum: Web Scraping & Web Development - Replies (6)

[python]
headers = {'User-Agent': 'IDK IF THIS IS SMART TO SHARE SO I'M NOT SHARING IT:)}
gourl = requests.get('https://www.jdsports.nl/product/wit-..... More

Print this item

  binning data
Posted by: stephd - Jan-21-2020, 09:45 PM - Forum: Homework - Replies (2)

Hi,

I need to use a function called 'bin_data(data, binsize)' to take a list of floats (stored in the variable 'data') and a float (stored in the ..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  LhanePulse 3 hours ago Gichardaxora Gichardaxora General Codin...
  data fetching for indian ... Yesterday, 12:05 drakhsin snippsat Web Scraping ...
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
Most views
  The best Prog... 579259
  Tutorial Requ... 512108
  Web Scraping ... 442185
  Newbie with P... 386294
  New Users Int... 379614
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 7390
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Stephenchers Today
alexferrina Yesterday
MattCarters 11-22
drakhsin 11-22
MileHigh303 11-21

User Panel Messages

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