A Python library for plotting hockey rinks with Matplotlib

Hockey Rink A Python library for plotting hockey rinks with Matplotlib. Installation pip install hockey_rink Current Rinks The following shows the custom rinks currently available for plotting. from hockey_rink import NHLRink, IIHFRink, NWHLRink import matplotlib.pyplot as plt fig, axs = plt.subplots(1, 3, sharey=True, figsize=(12, 6), gridspec_kw={“width_ratios”: [1, 98.4/85, 1]}) nhl_rink = NHLRink(rotation=90) iihf_rink = IIHFRink(rotation=90) nwhl_rink = NWHLRink(rotation=90) axs[0] = nhl_rink.draw(ax=axs[0]) axs[1] = iihf_rink.draw(ax=axs[1]) axs[2] = nwhl_rink.draw(ax=axs[2]) The NWHL logo comes from the NWHL site. Customization There is also room […]

Read more

A New, Interactive Approach to Learning Python

The Python Workshop This is the repository for The Python Workshop, published by Packt. It contains all the supporting project files necessary to work through the course from start to finish. Requirements and Setup To get started with the project files, you’ll need to: Install Jupyter on Windows, Mac, Linux Install Anaconda on Windows, Mac, Linux Install Docker About The Python Workshop More than just a Python guide for beginners, The Python Workshop takes you through the full spectrum of […]

Read more

Part 16 : Step by Step Guide to Master NLP – Topic Modelling using LSA

This article was published as a part of the Data Science Blogathon Introduction This article is part of an ongoing blog series on Natural Language Processing (NLP). In the previous article, we completed a basic technique of Topic Modeling named Non-Negative Matrix Factorization. So, In continuation of that part now we will start our discussion on another Topic modeling technique named Latent Semantic Analysis. So, In this article, we will deep dive into a Topic Modeling technique named Latent Semantic Analysis […]

Read more

Part 20: Step by Step Guide to Master NLP – Information Retrieval

This article was published as a part of the Data Science Blogathon Introduction This article is part of an ongoing blog series on Natural Language Processing (NLP). In the previous article, we completed our discussion on Topic Modelling Techniques. Now, in this article, we will be discussing an important application of NLP in Information Retrieval. So, In this article, we will discuss the basic concepts of Information Retrieval along with some of the models that are used in Information Retrieval. NOTE: […]

Read more

Bag-of-words vs TFIDF vectorization –A Hands-on Tutorial

This article was published as a part of the Data Science Blogathon Whenever we apply any algorithm to textual data, we need to convert the text to a numeric form. Hence, there arises a need for some pre-processing techniques that can convert our text to numbers. Both bag-of-words (BOW) and TFIDF are pre-processing techniques that can generate a numeric form from an input text. Bag-of-Words: The bag-of-words model converts text into fixed-length vectors by counting how many times each word appears. […]

Read more

Spam Detection – An application of Deep Learning

This article was published as a part of the Data Science Blogathon What each big tech company wants is the Security and Safety of its customers. By detecting spam alerts in emails and messages, they want to secure their network and enhance the trust of their customers. The official messaging app of Apple and the official chatting app of Google i.e Gmail is unbeatable examples of such applications where the process of spam detection and filtering works well to protect users […]

Read more

Saving memory with Pandas 1.3’s new string dtype

When you’re loading many strings into Pandas, you’re going to use a lot of memory. If you have only a limited number of strings, you can save memory with categoricals, but that’s only helpful in a limited number of situations. With Pandas 1.3, there’s a new option that can save memory on large number of strings as well, simply by changing to a new column type. Let’s see how. Pandas’ different string dtypes Every pandas.Series, and every column in a […]

Read more

Python library for science observations from the James Webb Space Telescope

JWST Calibration Pipeline JWST requires Python 3.7 or above and a C compiler for dependencies. Linux and MacOS platforms are tested and supported. Windows is not currently supported. Installation The easiest way to install the latest jwst release into a fresh virtualenv or conda environment is pip install jwst Detailed Installation The jwst package can be installed into a virtualenv or conda environment via pip.We recommend that for each installation you start by creating a freshenvironment that only has Python […]

Read more

view RedFlagDeals.com from the command line in python

RFD This is a CLI utility that allows you to view RedFlagDeals.com on the command line. Motivation It is often faster to use a CLI than to load up a web page and navigate web elements. This tool can search for deals and sort them based on score and views. It is also able to load entire threads (without pagination) for additional analysis. Installation :information_source: python2 may still work but it is no longer supported. python3 -m pip install –user […]

Read more
1 514 515 516 517 518 903