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,312
» Latest member: elizabethlittle6258
» Forum threads: 38,801
» Forum posts: 175,923

Full Statistics

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

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: noisefloor
9 hours ago
» Replies: 11
» Views: 319
Python compiler
Forum: General Coding Help
Last Post: noisefloor
10 hours ago
» Replies: 1
» Views: 75
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
Yesterday, 07:34 PM
» Replies: 5
» Views: 94
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
Yesterday, 05:51 PM
» Replies: 0
» Views: 53
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 07:39 AM
» Replies: 3
» Views: 11,132
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 206
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 734
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,840
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 216
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 172

 
  Draw a square-aspect log-linear plot via matplotlib
Posted by: Antonio - Jun-19-2018, 03:08 AM - Forum: Data Science - Replies (4)

So I have a plot with logarithmic x axis but linear y axis, and I want the plot to be square-aspect, but when I use plt.axis('equal') it does n..... More

Print this item

  Write a for loop on list of lists without changing the shape of the main list
Posted by: Antonio - Jun-18-2018, 10:17 PM - Forum: General Coding Help - Replies (3)

So I am new to python and am having difficulties on writing an efficient for loop on a list of lists. I have a list called "mylist" and I need ..... More


Attached Files

Thumbnail(s)
           
Print this item

  AttributeError: 'NoneType' object has no attribute 'n' in list of class objects
Posted by: jdrp - Jun-18-2018, 09:28 PM - Forum: General Coding Help - Replies (4)

So, I was trying to develop a game in PyGame and came across a problem. I tried it it on a much simpler code and it still returns an error, so I think..... More

Print this item

  My version GhostGame
Posted by: anickone - Jun-18-2018, 08:52 PM - Forum: Game Development - Replies (7)

[python]
from random import randint

def get_msg(msg, subject, subject_mark):
for i in range(1, doors+1):
if i in subject:
..... More

Print this item

  list and for
Posted by: Breex - Jun-18-2018, 07:56 PM - Forum: General Coding Help - Replies (3)

I'm new at python programing i read some basic and i have a question. Probably it is easy but i dont know how to do it. (im looking for answer for 2 d..... More

Print this item

  filtering on a paginated queryset
Posted by: garynobles - Jun-18-2018, 06:30 PM - Forum: Web Scraping & Web Development - No Replies

This code combines filtering and pagination, the pagination works, but I can't understand how to get the filtering to work. The containerlist gets fil..... More

Print this item

  Windows 10 Compatability
Posted by: hughmontgomery - Jun-18-2018, 05:01 PM - Forum: General Coding Help - Replies (3)

IMITS-PHSA (Provincial Health Services Authority) in British Columbia is planning the future workspace requirements for our users and require compatib..... More

Print this item

  How to extract previous and current rows if their value is equal
Posted by: SriRajesh - Jun-18-2018, 02:49 PM - Forum: Data Science - Replies (5)

Hi,

I want to extract rows if the previous row of Name column equal to 'MM' and current row of Name column is 'MA'

[python]import pandas as pd
..... More

Print this item

  libmdbx, prod-ready fork of LMDB: someone can wrap it for python?
Posted by: genryrar - Jun-18-2018, 02:34 PM - Forum: News and Discussions - Replies (5)

LMDB is awesome key-value in-disk db with lightning read speed and good write speed.
But as you know, it have some problems for using in production -..... More

Print this item

  Ioctl Interface
Posted by: mickib1 - Jun-18-2018, 02:11 PM - Forum: General Coding Help - Replies (3)

Hi
I am trying to implement IOCTL interface to driver
I have created a strcuture
[python]
class pass_cmd(Structure):
_fields_ = [
(..... More

Print this item

  Looking for someone to create a simple Python Code and a Flowchart!
Posted by: tedlee - Jun-18-2018, 11:09 AM - Forum: Jobs - Replies (2)

Looking for someone to create a simple Python Code and a Flowchart!, Willing to pay for the right work done.
I have made previous codes on different ..... More

Print this item

  ImportError: No module named django.core.exceptions in google app engine
Posted by: timtinan37 - Jun-18-2018, 10:52 AM - Forum: Web Scraping & Web Development - Replies (4)

djangoforms.py module was missing from google.appengine.ext.db. So I manually putted the module there from net. But it can't import django.core.except..... More

Print this item

  EYE LID RIG / PHYTON ERROR
Posted by: everend - Jun-18-2018, 10:02 AM - Forum: Homework - No Replies

Hello, I am in a process of doing an eye lid rigging. As I was following this note I run into a problem with phyton script.

HERE is a script. **..... More

Print this item

  Machine Leaning Programmer wanted
Posted by: markyugen - Jun-18-2018, 06:55 AM - Forum: Jobs - Replies (2)

I'm looking to work with somebody who can assist me in getting some Machine Learning GANs working on my computer. I will be working with Python/Tensor..... More

Print this item

  ValueError: could not broadcast input array from shape (1555200) into shape (0)
Posted by: promach - Jun-18-2018, 06:09 AM - Forum: General Coding Help - Replies (1)

For mxp_filters.ipynb , why do I have the following error ? [error]error "..... More

Print this item

  Count Letters in a Sentence (without using the Count Function)
Posted by: bhill - Jun-18-2018, 04:42 AM - Forum: Homework - Replies (3)

Hello all,

Newbie Pythoner here.

I have been tasked with Counting Letters in a Sentence. However, I cannot use the Count function. What I have..... More

Print this item

  PHP Gallery sorting by newest file
Posted by: Kimzer - Jun-18-2018, 03:49 AM - Forum: Web Scraping & Web Development - Replies (2)

Php Gallery

Found this neat php gallery, but im trying to get it to display t..... More

Print this item

  creating a 3x3 multiplication table
Posted by: aditvaddi - Jun-18-2018, 02:45 AM - Forum: Homework - Replies (1)

So im trying to get this as the output:

Output:
1 2 3 1| 1 2 3 2| 2 4 6 3| 3 6 9
Here's the code i'm using:
[python]
print(''' ..... More

Print this item

  Program does not end
Posted by: Cheezygrapes - Jun-18-2018, 12:02 AM - Forum: Homework - Replies (3)

Hello,

I'm working on a homework assignment and I'm having issues with the program not ending after an option other than "1" is selected. When I se..... More

Print this item

  For Loops & Variables
Posted by: aditvaddi - Jun-17-2018, 11:07 PM - Forum: Homework - Replies (4)

for i in range(3):
    for j in range(2):
        print(j)
I don't understand how the output of this is:
0
1
0
1
0
1

..... More

Print this item

  python variable issues - using spyder and opencv
Posted by: Afrodizzyjack - Jun-17-2018, 07:14 PM - Forum: General Coding Help - Replies (5)

Hello all! thank you for reading and hopefully helping with my issue.

trying to run OpenCV through python spyder on anaconda. I am following an onl..... More

Print this item

  Trouble with edX Python Final
Posted by: sarah_mb_sues - Jun-17-2018, 06:32 PM - Forum: Homework - Replies (11)

Hello Everyone,

I am currently taking the edX course "Introduction to Python: Absolute Beginner" through Microsoft (Course ID DEV236x), and am havi..... More

Print this item

  webscraping yahoo data - custom date implementation
Posted by: Jens89 - Jun-17-2018, 05:24 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi,

I'm trying to webscrape historical prices from yahoo finance.
I managed to get the data, however only for the most recent months (which is abo..... More

Print this item

  where i want to keep modules
Posted by: Skaperen - Jun-17-2018, 03:40 PM - Forum: News and Discussions - Replies (1)

i would like to start keeping my personal modules in a separate subdirectory than scripts. i have a "cmd" subdirectory that is much like a "bin" subd..... More

Print this item

  question on using for
Posted by: tryingtolearnpython - Jun-17-2018, 11:28 AM - Forum: General Coding Help - Replies (15)

[python]trials = 10000
successes = 0

for _ in np.arange(trials):
rolls = np.random.choice(dice, k)
if sum(rolls == 6) > 0:
succ..... More

Print this item

  Error message in Jupyter Notebook with json
Posted by: diet - Jun-17-2018, 09:37 AM - Forum: General Coding Help - Replies (4)

Hi,

I am new to Python and Jupyter Notebook and I get the error below in Jupyter Notebook while the code works in Spyder:

[python]
import base..... More

Print this item

  Table creating code
Posted by: qqqqqqqqqqqq - Jun-17-2018, 08:17 AM - Forum: General Coding Help - Replies (1)

hi all,
below is the code posted by me. I am getting the error of undefined token for the tabulate code while printing it in visual studio.
Kindly h..... More

Print this item

  How to make the python default language be 3.6 instead of 2.7
Posted by: sylas - Jun-17-2018, 06:22 AM - Forum: General Coding Help - Replies (4)

Hi all ! Now I am in Linux. On the terminal, if I type "python", python 2.7 appears. If I type "python3", python 3 appears. I should like very much th..... More

Print this item

  Converting user input to integers (retitled)
Posted by: rwood1875 - Jun-17-2018, 04:01 AM - Forum: Homework - Replies (1)

The homework initially left line 6 as 'if answer == number1 + number2' to show the error of trying to compare strings to integers, (ie. even if the us..... More

Print this item

  ImportError: No module named error
Posted by: oliver592 - Jun-17-2018, 02:43 AM - Forum: General Coding Help - Replies (2)

Hi all!

So I have a small Python program I'm trying to get working on my Mac downloaded from here: https://gitlab.com/bharadwaj-raju/WeatherDesk . ..... More

Print this item

  Traffic simulation - stopping a car
Posted by: darter - Jun-17-2018, 01:58 AM - Forum: Game Development - No Replies

Hey, I am just wondering how I might simulate an automobile traffic situation. For example, driving down a road, encountering an obstacle (maybe a sto..... More

Print this item

  Multiply entire column with a constant with pandas in python
Posted by: fyec - Jun-17-2018, 01:53 AM - Forum: Data Science - Replies (1)

I want to multiply '1' column which is numbered automatically as (0,1,2,3). I am getting "KeyError: 1".
What's wrong in my codes?
[python]inpExc..... More

Print this item

  Help with my assingment please !!
Posted by: rrodriguez0881 - Jun-17-2018, 12:44 AM - Forum: Homework - Replies (2)

[output]Enter 1 to start a new sale
Enter 2 to view the total of all sales
Enter 3 to view the total tax collected
Enter 4 to view the quantity of ..... More

Print this item

  python-nmap
Posted by: Skaperen - Jun-16-2018, 10:52 PM - Forum: News and Discussions - Replies (2)

i saw a package named python-nmap. but i could not find a description. i don't want to install it until i know what it is for. does anyone k..... More

Print this item

  Converting units in NetCdf Files in Python
Posted by: fyec - Jun-16-2018, 10:04 PM - Forum: General Coding Help - Replies (1)

I have a script that reads Netcdf (.nc) files and coordinates from a 'csv' file, then it extracts a txt file that includes values of different paramet..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 9 hours ago Lou noisefloor General Codin...
  Python compiler 10 hours ago NeoQuant noisefloor General Codin...
  Trading Risk management s... Yesterday, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... Yesterday, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler Yesterday, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579513
  Tutorial Requ... 512986
  Web Scraping ... 442377
  Newbie with P... 386403
  New Users Int... 381789
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+ 12113
buran 8196
snippsat 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
elizabethlittle6258 Today
StepanVoronin Today
QABOB Today
adityaN Today
NeoQuant Yesterday

User Panel Messages

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