- Alphanumeric fancy word for char.lower() in "0123456789abcdefghijklmnopqrstuvwxyz". Fun fact, "6".lower() is still "6"
- You can get the size of your heap queue aka priority queue by taking the len() of the heapq variable. Example: heap = [] hq.heappush(heap, 3) len(heap) is now 1.
- import random random.random() returns a number between 0 and 1, want it bigger? multiply by an integer: random.random()*5 or 5*random.random()
- Python science, data, linear algebra library landscape: numpy for vectors matrices high level math functions. SciPy math classes and functions useful for scientists. PyLab combines other libraries to provide MATLAB like interface.
Your byte size news and commentary from Silicon Valley the land of startup vanities, coding, learn-to-code and unicorn billionaire stories.
Thursday, April 26, 2018
Python Beyond the Basics
Python tricks for Data Science
Subscribe to:
Post Comments (Atom)
Debug Google Cloud Error - Failed to enable API please make sure you have the IAM permission to enable API
If you are not expecting this message, and think you have the permission to enable API read on. Before using Google Cloud services, genera...

-
Can hack schools solve Silicon Valley's talent crunch? The truth about coding bootcamps and the students left behind http://t.co/xXNfqN...
-
In this downtown startup work space design the designers used fat boy bean bags and an extra wide step tiered staircase to create work space...
-
The bogus request from P2PU to hunt for HTML tags in real life has yielded a lot of good thoughts. My first impression was that this is stup...

No comments:
Post a Comment