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,305
» Latest member: jacklylee
» Forum threads: 38,798
» Forum posts: 175,901

Full Statistics

Online Users
There are currently 41 online users.
» 0 Member(s) | 33 Guest(s)
Applebot, Google, Bing, Facebook Dev

Latest Threads
Car dashboard with TKinte...
Forum: GUI
Last Post: jacklylee
1 hour ago
» Replies: 2
» Views: 9,809
Electric Car battery size...
Forum: General Coding Help
Last Post: novaCharger99
2 hours ago
» Replies: 3
» Views: 3,009
Python is not working on ...
Forum: General Coding Help
Last Post: lary_p
3 hours ago
» Replies: 0
» Views: 16
What role does IoT play i...
Forum: General Coding Help
Last Post: ShaneCorn
5 hours ago
» Replies: 0
» Views: 24
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ShaneCorn
5 hours ago
» Replies: 7
» Views: 7,785
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
Today, 02:09 AM
» Replies: 7
» Views: 615
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 09:58 PM
» Replies: 3
» Views: 110
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Yesterday, 03:53 PM
» Replies: 1
» Views: 87
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Yesterday, 08:47 AM
» Replies: 3
» Views: 157
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 04:40 AM
» Replies: 6
» Views: 3,203

 
  Is there similar function to lsqnonlin (in matlab) in python?
Posted by: Jay_Nerella - May-04-2019, 11:51 AM - Forum: Data Science - Replies (1)

I have done the curve fitting for a specific equation in matlab. I have got the coefficients of the equation. And when I plotted the implicit equation..... More

Print this item

  Can't load a png image tkinter
Posted by: Pythenx - May-04-2019, 11:24 AM - Forum: GUI - Replies (2)

I don't get any errors, but the image just won't show up. It just shows a blank window with canvas.

[python]
from tkinter import *


root = Tk(..... More

Print this item

  Multiple IF statements
Posted by: kamacaziYakuta - May-04-2019, 11:14 AM - Forum: General Coding Help - Replies (1)

so i want to be able to pick out keywords from an input and if all keywords are present i want it to output full marks!!! any help on what to do this ..... More

Print this item

  Data saving structure
Posted by: JosefFilosopio - May-04-2019, 10:44 AM - Forum: Data Science - No Replies

Dear forum users,

For a project I want to save data to a file. There will be certain parts of the screen. When the system detects something in that..... More

Print this item

  [split] What is a GUI's mainloop ?
Posted by: kom2 - May-04-2019, 10:39 AM - Forum: GUI - Replies (1)

what exactly is mainloop for? What is it´s purpose?

Print this item

  Inverse of singular matrix
Posted by: Divanova94 - May-04-2019, 10:12 AM - Forum: Data Science - Replies (4)

How one can invert this singular matrix?

[python]
m1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0, 0, ..... More

Print this item

  How to check HTTP error 500 and bypass
Posted by: SriMekala - May-04-2019, 10:10 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi

I want to catch dara from web, but some the web reload for ever (without any error), and some time it catch firewall isuse(HTTP error 500).

B..... More

Print this item

  creating an 'adress book' in python using dictionaries?
Posted by: apollo - May-04-2019, 10:10 AM - Forum: General Coding Help - Replies (6)

hello dear Python-experts


i am currently creating  an 'adress book' python where i want to use dictionaries?

the plan:
I'm trying to c..... More

Print this item

  Image with pillow on macos not showing
Posted by: rhoekstra - May-04-2019, 08:06 AM - Forum: GUI - Replies (3)

Hi there,

I'm fairly new to programming in Python and was going through a tutorial which came across GUI programming with tkinter (Python3).

I w..... More

Print this item

  Read CSV file into MySQL and use executemany instead of execute
Posted by: bluethundr - May-04-2019, 03:05 AM - Forum: General Coding Help - Replies (1)

I have a python script that reads a large (4GB!!!) CSV file into MySQL. It works as is, but is DOG slow. The CSV file has over 4 million rows. And it ..... More

Print this item

  print is showing non printable characters
Posted by: turtleman - May-04-2019, 02:58 AM - Forum: General Coding Help - Replies (5)

A simple code to call the Windows OS "dir" command:

[python]import subprocess

output = subprocess.run('dir',stdout=subprocess.PIPE,shell..... More

Print this item

  Need help with the while function(Beginner)
Posted by: ogobogo20 - May-03-2019, 11:34 PM - Forum: General Coding Help - Replies (1)

[python]while guess_count<guess_most:
answer=input('Guess a number ')
guess_count+=1
if str(answer)==str(winning_number):
..... More

Print this item

  [django] problems with tables
Posted by: SheeppOSU - May-03-2019, 08:38 PM - Forum: Web Scraping & Web Development - Replies (3)

There is bunch of code and stuff from the cmd too. Here is a link to the tutorial I was following - https://www.youtube.com/watch?v=aHC3uTkT9r8 - I di..... More

Print this item

  How to continue in loop until correct input received
Posted by: sunnyarora - May-03-2019, 08:27 PM - Forum: General Coding Help - Replies (10)

Hi Guys,
Pls help me out !
[python]while(1):
fname=input("Enter Father's First name")
fname = fname.lower()
i..... More

Print this item

  Merge 2 lines with delimiter
Posted by: Buddhism - May-03-2019, 07:54 PM - Forum: General Coding Help - Replies (9)

So I have code that prints out a into a file like this:
[quote]
xxx.xxx.xx.xx
yyyy
#5 blank line gap
xxx.xxx.xx.xx
yyyy
#5 blank line ga..... More

Print this item

  error: self.name = "NPC{}".format(num_of_NPCs + 1)
Posted by: Exsul - May-03-2019, 07:23 PM - Forum: General Coding Help - Replies (1)

Code:
[python]class NPC:

num_of_NPCs = 0

def __init__(self):
self.name = "NPC{}".format(num_of_NPCs + 1)
NPC.num_of_N..... More

Print this item

  PyCon 2019
Posted by: snippsat - May-03-2019, 06:52 PM - Forum: News and Discussions - No Replies

PyCon 2019 has started, YouTube chann[url=https://python-forum.io/thread-18048.html]..... More

Print this item

  Book: "Python in high school"
Posted by: arnbod - May-03-2019, 05:55 PM - Forum: News and Discussions - Replies (1)

Dear all,

I would like to promote the book "Python in high school - Algorithms and mathematics" (..... More

Print this item

  Reading one value from an array in reverse
Posted by: DreamingInsanity - May-03-2019, 05:50 PM - Forum: General Coding Help - Replies (10)

Take this array: [[100, 200, 0], [100, 300, 1], [100, 400, 2]]
It can be split into three things: [position1, position2, message]
I can reverse the ..... More

Print this item

  Help interpreting code
Posted by: schniefen - May-03-2019, 04:53 PM - Forum: Homework - Replies (1)

I'm trying to understand the following code that sets up the three term recursion ui+1=a1u1+a0u[sub]i-1[/s..... More

Print this item

  Convert C code to python
Posted by: mcvta - May-03-2019, 03:50 PM - Forum: Homework - Replies (3)

The following C code is used to stabilize temperature profiles in lakes, and I´m trying to convert it to python, but there is something wrong with my ..... More

Print this item

  How to create a delay for AI without freezing the GUI
Posted by: kom2 - May-03-2019, 03:30 PM - Forum: GUI - Replies (8)

I want to create an AI move into my game, after the player does one. Is there any function I could use in order to let AI wait for few seconds before ..... More

Print this item

  Importing a CSV loops to infinity in python
Posted by: bluethundr - May-03-2019, 03:19 PM - Forum: General Coding Help - Replies (2)

I've accidentally created an infinite loop importing a CSV file using python and importing it into MySQL. I don't see where the error is!

This is m..... More

Print this item

  Integration of Python with MatDeck software
Posted by: babicmatpy - May-03-2019, 02:17 PM - Forum: News and Discussions - Replies (4)

Hello everyone,

I discovered a new software MatDeck, which makes possible to write and execute the Python code in MatDeck documents.

As stated..... More

Print this item

  Python
Posted by: tanj74272 - May-03-2019, 02:06 PM - Forum: General Coding Help - Replies (5)

Hi, I need help for the python script.

Print this item

  Self re-initializing variable?
Posted by: python_user_n - May-03-2019, 01:35 PM - Forum: General Coding Help - Replies (6)

Hello,
I'm testing this snippet of code:
[python]
ld = [1, 2, 3]
ll = ['a', 'b', 'c']
loft = zip(ll, ld)
#for i in loft:
# print(i)
print(l..... More

Print this item

  How to fix and extract Google CSE JSON API using Python.exe
Posted by: venkatsrrecruiter - May-03-2019, 01:15 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi Friends,

I am newbie and came here with a an code error and needs some code corrections to my python script.
I been facing struggling find the ..... More

Print this item

  How "continue" in another indentation?
Posted by: CaptainCsaba - May-03-2019, 12:17 PM - Forum: General Coding Help - Replies (6)

hey!

I have the following part of a code. It basically does lots of things with PDFs in folders. For reasons I needed to add a criteria wheer if a ..... More

Print this item

  SQL module selection
Posted by: Nuzvee - May-03-2019, 12:00 PM - Forum: General Coding Help - No Replies

Hi,

I need help since i can't manage to make a decision since it will end up being a pretty uninformed selection.

I have written an extensive sc..... More

Print this item

  How to remove space between strings
Posted by: sunnyarora - May-03-2019, 11:42 AM - Forum: General Coding Help - Replies (2)

Hi there,
how can we remove space if there is a space between values in a string.
for example

'abcdef @gmail.com'

Print this item

  sqlite3 window functions support using python2.7
Posted by: Omkumar - May-03-2019, 11:22 AM - Forum: General Coding Help - Replies (2)

Hi,

I am using sqlite3 library in python2.7. I wanted to make use of the Window function(row_number) in the application I am working on.

I am us..... More

Print this item

  Read a folder with a multiple files
Posted by: NewBeie - May-03-2019, 11:17 AM - Forum: General Coding Help - Replies (7)

Hi,

I have a list

Quote:Names = ['John', 'Tom']
if I say [python] def ReadNames():
for name in Names:
print(name)[/python..... More

Print this item

  Coditional colormaps plotting
Posted by: Staph - May-03-2019, 10:53 AM - Forum: General Coding Help - Replies (5)

Dear all,
I need some help with regards to colormaps, I am new to python and unsure how to go about it.

I have three spatial correlation maps, let..... More

Print this item

  Add Variable to select query
Posted by: UtiliseIT - May-03-2019, 10:47 AM - Forum: General Coding Help - Replies (2)

Hi,

I cant quite work out how to add a variable into a SELECT query.

My attempt is

[python]

query = ("SELECT distinctrow UPC, ItemFri..... More

Print this item

  Pandas fillna based on conditions
Posted by: amyd - May-03-2019, 10:41 AM - Forum: Data Science - Replies (1)

I am pretty new at using Pandas, so I was wondering if anyone could help me with the below.

Let's say I have this dataframe:

[python]import pand..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] Car dashboard w... 1 hour ago TMJJ jacklylee GUI
  Electric Car battery size... 2 hours ago ridgerunnersjw novaCharger99 General Codin...
  Python is not working on ... 3 hours ago lary_p lary_p General Codin...
  What role does IoT play i... 5 hours ago ShaneCorn ShaneCorn General Codin...
  Can I develop a live vide... 5 hours ago mtrkhan ShaneCorn Web Scraping ...
  Help with Serial.write in... Today, 02:09 racingsubby racingsubby General Codin...
  silent deployment Python ... Yesterday, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP Yesterday, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... Yesterday, 08:47 Moltar1997 perfringo General Codin...
  best way to learn python Yesterday, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
Most views
  The best Prog... 579399
  Tutorial Requ... 512457
  Web Scraping ... 442300
  Newbie with P... 386353
  New Users Int... 380466
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+ 12111
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
jacklylee Today
novaCharger99 Today
cruisesfares Today
ShaneCorn Today
SNR Today

User Panel Messages

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