Top python stuff of the week![August 4th]
Here are the hottest python blog posts and publications of the week👇
Introduction to Data Structures and Algorithms With Python.
Stealth Web Scraping in Python: Avoid Blocking Like a Ninja.
Getting Started with Python Web Development.
Generating images using text: The dawn of the AI dreamers.
Top 15 Cheat Sheets for Machine Learning, Data Science & Big Data!
Learn how to easily create face-recognition models in python using EQFace.
Easily visualize image datasets in python with this library:
Here are the hottest python projects and Github repos of the week👇
Mega Music Downloader - A tool to easily download music.(written 100% in python)
Online machine learning in Python using River 🌊
An Instagram bot that unfollows people who didn't follow me back.
A Reddit bot to deliver MMA fighter stats when mentioned
A self hosted slack bot to conduct standups & generate reports.
❗️pypi.org is having security problems at the moment and has detected several new malicious packages, so it’s better if I don’t include any in today’s issue.❗️
Instead, here are this week’s hidden gems all about python 👇
Difference between overfitting, underfitting and right fit.
What's the most simple & elegant piece of Python code you've seen?
And to top it off, here are 3 neat python tips👇
Easily remove duplicate array items in python using “set()”
lst=[1,2,2,2,3,4,4,5,6,7,7]
a=set(lst)
print(a)
#output:
{1, 2, 3, 4, 5, 6, 7}
Easily find the largest or smallest values in a dataset with heapq
import heapq
grades = [5, 60, 8, 47, 90, 98, 74, 29, 12, 80]
print(heapq.nlargest(2, grades)) #print the 2 largest values
print(heapq.nsmallest(5, grades)) #print the 5 smallest values
#output:
[98, 90]
[5, 8, 12, 29, 47]
Easily count the number of occurrences in a dataset using Counter
from collections import Counter
counter = Counter(['Tesla', 'BMW', 'Kia', 'Tesla', 'Kia', 'BMW', 'BMW', 'Tesla', 'Tesla'])
print(counter)
#output: Counter({'Tesla': 4, 'BMW': 3, 'Kia': 2})
That’s it for this Python_Explore issue.