Photo by Aditya Vyas on Unsplash

Using the investpy library

I have recently come across another interesting source of financial data — Investing.com. In short, it is a financial platform and news website. Actually, Wikipedia names it as “one of the top three global financial websites in the world”. …


Photo by Jeffrey Blum on Unsplash

Artificial intelligence (AI) is not a new kid on the block anymore and the field is developing at a constantly increasing pace. …


Photo by Isaac Smith on Unsplash

And how to do it in Python using plotly

As the old adage goes, a picture is worth a thousand words. In data science, we often use different kinds of plots to either explore the data or tell a story, frequently to a non-technical audience.

Data visualization is often considered a separate skill that needs dedicated time and effort…


Photo by Austin Distel on Unsplash

Using Binance’s API for getting order book data

If you have ever ventured into any of the cryptocurrency exchanges, I am sure you have already seen a depth chart, just like the one in the image above. …


Photo by veeterzy on Unsplash

Yes, you read that right — the same API for both Neural Networks and tree-based models!

In this article, I will briefly describe what decision forests are and how to train tree-based models (such as Random Forest or Gradient Boosted Trees) using the same Keras API as you would normally use for Neural Networks. Let’s dive into it!

What is a Decision Forest?

I will get straight to the point, it…


Photo by Ganapathy Kumar on Unsplash

Hands-on Tutorials

That is also consistent between categorical, ordinal, and interval variables!

Recently I was doing EDA using pandas-profiling and something piqued my interest. In the correlations tab, I saw many known metrics I have known since university — Pearson’s r, Spearman’s ρ, and so on. However, among those I have seen something new — Phik (𝜙k). …


Photo by Chiara F on Unsplash

In a few lines of Python code

I have been using Medium regularly since 2018 and I have to admit that I bookmark quite a lot of articles. Given the platform’s and its key publications’ impressive growth in the last years, there is just tons of great articles to read. I often see something that piques my…


Photo by AltumCode on Unsplash

Take your documentation to the next level with charts designed using Mermaid — a markdown-like script!

Documentation — undoubtedly one of the crucial tasks of every data scientist, yet most likely also in the lowest ranks in terms of how enjoyable it is. I will not try to persuade you about the benefits of keeping an up-to-date documentation, that is a topic for another time.

In…


Photo by Sara Kurfeß on Unsplash

With the cpi library, you can do it with a single line of code!

Inflation — the word we hear in the news pretty much on a daily basis. We know that, long story short, inflation means that our money is worth less over time. But how much less and how to adjust the values for inflation? I will answer those questions in this…


Photo by Yiorgos Ntrahas on Unsplash

Including quick ways to create charts such as candlestick, Renko, or Point and Figure

It is a well-known fact that matplotlib is very versatile and can be used to create pretty much any kind of chart you want. It might not be the simplest or prettiest, but after viewing enough questions on StackOverflow it will most likely work out quite well in the end.

Eryk Lewinson

Data Scientist, ML/DL enthusiast, quantitative finance, gamer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store