Tag: python

Home / python
Building Actuarial Functions in Python
Post

Building Actuarial Functions in Python

In college, I studied Actuarial Science. When I graduated I decided to learn more about data science and programming as I had always been interested in computer science. Soon after I began studying data science at the Flatiron School, I wrote a blog about the potential overlap between these two studies of actuarial science and data...

Three Ways to Use the Walrus Operator in Python
Post

Three Ways to Use the Walrus Operator in Python

Expand your toolkit with this new operator With the release of Python 3.8, the assignment-expression operator—also known as the walrus operator—was released. The operator enables the assignment of a value to be passed into an expression. This generally reduces the number of statements by one. For example: my_list = [1,2,3]count = len(my_list) if count >...

What Does the “Yield” Keyword Do?
Post

What Does the “Yield” Keyword Do?

Iterables, functions, and generators in Python To learn about the yield keyword, there are a variety of other terms and concepts that you must be comfortable with first. Before we dive into all of that, let’s keep the end in mind and talk through why yield is beneficial. Using yield will improve the memory efficiency — and subsequently, the speed/performance — when...

3 Essential Python Skills for Data Scientists
Post

3 Essential Python Skills for Data Scientists

Learning Pandas is great. Numpy is also tons of fun. But have you maybe started using libraries to early? Maybe you are still not aware of everything pure Python has to offer. If that sounds like you, you’ll like this article. Photo by fabio on Unsplash This article will cover a couple of pretty cool pure Python functionalities that I use the most often...

Multiprocessing vs. Threading in Python: What Every Data Scientist Needs to Know
Post

Multiprocessing vs. Threading in Python: What Every Data Scientist Needs to Know

Sooner or later, every data science project faces an inevitable challenge: speed. Working with larger data sets leads to slower processing thereof, so you’ll eventually have to think about optimizing your algorithm’s run time. As most of you already know, parallelization is a necessary step of this optimization. Python offers two built-in libraries for parallelization:...

Best IDE for Python
Post

Best IDE for Python

We’ve picked our five favorite Integrated Development Environments Our first baby steps with Python, which typically involve making a ‘Hello World’ program and a couple of typos, don’t require much in the way of specialist tools. It’s fine to hammer out the code in a text editor, switch to a terminal, and then run it....

Awesome Python: A curated list of awesome Python frameworks, libraries, software and resources
Post

Awesome Python: A curated list of awesome Python frameworks, libraries, software and resources

Inspired by awesome-php. Awesome Python Admin Panels Algorithms and Design Patterns Audio Authentication Build Tools Built-in Classes Enhancement Caching ChatOps Tools CMS Code Analysis Command-line Interface Development Command-line Tools Compatibility Computer Vision Concurrency and Parallelism Configuration Cryptography Data Analysis Data Validation Data Visualization Database Database Drivers Date and Time Debugging Tools Deep Learning DevOps Tools Distributed...

Data Preprocessing in Python
Post

Data Preprocessing in Python

for Machine Learning with working code example… Inone of my previous posts, I talked about Data Preprocessing in Data Mining & Machine Learning conceptually. This will continue on that, if you haven’t read it, read it here in order to have a proper grasp of the topics and concepts I am going to talk about in the article. Data...

How to write your first Quine program
Post

How to write your first Quine program

A quick guide to self replicating programs in Python A quine-relays: a Python program generates a Java program that generates a Ruby program that generates the first Python program Aim of this guide is to show how to write a program that outputs its own source code with no input. This family of programs is called Quine....

Get Rid of BORING stuff using Python
Post

Get Rid of BORING stuff using Python

Get It Done in 5 seconds! Are you bored of doing same stuff again? Feeling your life is just doing the same thing over and over again? Here is the thing, today I am going to introduce a tool to automate your BORING stuff — Python. Python is perhaps the most easiest language to learn. Because of...

What to expect in Python 3.8
Post

What to expect in Python 3.8

The upcoming version on Python is on its way. The Python 3.8 beta cycle begun with Python 3.8.0b1 last month. Earlier this month, the second beta was released, making Python 3.8 feature complete. Python 3.8 will go through two more planned beta release previews before the official version is released in October. According to the...

Classify Hand-Written Digits Using Python and Convolutional Neural Networks
Post

Classify Hand-Written Digits Using Python and Convolutional Neural Networks

In this article, I will show you how to classify hand written digits from the MNIST database using the python programming language and a machine learning technique called Convolutional Neural Networks! If you prefer not to read this article and would like a video representation of it, you can check out the video below. It goes through everything in this article...

How to extract online data using Python
Post

How to extract online data using Python

Basic concepts about HTML, XPath, Scrapy, and spiders Euge Inzaugarat Jul 2 “I would be nice to have all the documents of the website” — One of her colleagues said “Yeah, that could give us a lot of information” — Said another colleague “Can you do the scraper?” — They both turn to look at her “Ehhhh… I could….” — She started mumbling “Perfect” — They...

Here’s how you can get some free speed on your Python code with Numba
Post

Here’s how you can get some free speed on your Python code with Numba

Easily turn your Python code into fast machine code “We can’t use Python, it’s too slow.” Anyone who’s worked with Python long enough has probably heard a statement like that at one point. The person who said it isn’t wrong either. Relative to many other programming languages, Python is slow. Benchmark game has some solid benchmarks for comparing...