Pylenin Weekly #17

Python generators, if else statements and data engineering topics.

Pylenin Weekly #17

Welcome to Pylenin Weekly #17, a newsletter dedicated to improving the lives of my fellow peers through knowledge sharing in the field of programming and data.

I would say that I have made up for my slack the last few weeks!

I would like to share some really interesting articles that I have written on Python and Data Engineering topics.

Python articles

Python Generators

A generator is a special type of function which returns an iterator object with a sequence of values. In a generator function, a yield statement is used rather than a return statement.

Learn in-depth about Python generators!

The beauty of Python Generators (With Examples)
Learn to benefits and usage of generators in Python 3 with examples.

How efficient are Python generators?

I had posted my article on Python generators on Reddit. That post got a humongous response from the community members.

However, some of the members also asked a very obvious question!

What would be a real life example of generator application? And, are they really useful?

This encouraged me to write an article on demonstrating the true powers of Python generators by running a performance comparison with the return statement.

And the results are just fab!

Learn about the entire experiment in this article!

How efficient are Python generators?
Assess the performance of generators compared to normal functions using the resource module.

How many ways can you write if else statements?

I can write them 3 ways!

The first way is the obvious way!

The second is a bit shorter!

The third is really short!!

Check out all the 3 ways in this article.

Writing If-else multiple ways in Python 3
Learn different ways to write if else statement in Python 3.

Data Engineering articles

I recently started blogging about Data Engineering with Python on my new blog - 100 days of data. Go ahead and give it some love!

Python File I/O

This article is an introduction to performing various file operations in Python. It covers -

  1. How to open files in read-only mode?
  2. How to write to files?
  3. How to append to a file?
  4. How to close a file?
  5. How to read and write to a file at the same time?
  6. Commonly used file methods in Python

This is one of those fundamental topics that you really need to grasp before moving on to more advanced data engineering applications in Python.

Check out this article here!

Python File I/O
A comprehensive guide to perform various file operations in Python.

Data Analysis of Kaggle's Titanic dataset from a CSV in Python

CSV files are very common. If you ever want to work as a Data Analyst, you should be skilled in the business of working with huge CSV files.

In this article, you will learn the ins and out of working with CSV files in Python using both the csv and pandas library.

You will also perform data analysis on the Kaggle's famous Titanic dataset.

Check out this article here!

Data analysis from a CSV file in Python
Learn to perform data analysis on CSV files easily with Python.

We are on Discord!

Both Pylenin and 100 days of data

Join us

Something important!!

I am realizing that my newsletter is ending up in your promotion tab. Now, if you want to keep it that way, feel free to! However, if you think my newsletters are worthy of reaching your inbox, do follow the instructions below!

  1. Add to your safe senders list.
  2. Drag the Pylenin Weekly issue from the Promotions tab to Primary tab.

You will never miss any updates!

You can support me by becoming a paid member of my website! The subscription is very cheap and will prove to be a real value for your money.

If not, just follow me on Twitter! Its free!

Thank you for your attention and see you next week!

Subscribe to Pylenin

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.