Python

Programming Image
Python

Mastering DataFrame – 3 tips for DataFrame.rolling function

Introduce 3 tips in DataFrame about the parameters center and min_periods, how to change the weight of window with win_type, how to use apply function.

Read More
Machine learning Image
DataScience
Python

How to build Sentiment Analysis with NLTK and Sciki-learn in Python

Sentiment Analysis is one of major applicatioin in machine learning and natural language processing space. This is a guide how to code it in Python.

Read More
Analytics Image
DataScience
Python

How to compute price correlation for financial data in Python

We learn how to use Pandas rolling function to calculate rolling change, rolling standard deviation and rolling correlation for financial assets.

Read More
BigData Image
DataScience
Python

Mastering DataFrame – how to aggregate OHLCV data in a different time period

OHLCV stands for Open, High, Low, Close and Volume (Volume is optional). It’s used for market data such as stock, forex, commodity and crypto and consists of a series of rows that represent 5 data points: the opening and closing price, the highest and lowest price during a certain period of time. Volume is the […]

Read More
Trading market Image
DataScience
Python

How to get a distribution of returns and draw a probability plot for the distribution in Python

It’s crucial to understand the distribution curve of data (asset returns) and if it conforms to the normal distribution. You can learn how to do this in Python.

Read More
Why it's confusing? datetime and unix time (POSIX) in Python
Python

Why it’s confusing? datetime and unix time (POSIX) in Python

To explain what native and aware objects in datetime module are and how to convert naive and aware objects to unix time (POSIX) in the right way.

Read More
Trading chart Image
DataScience

How to calculate historical volatility and sharpe ratio in Python

To understand what historical volatility and sharpe ratio are in the markets. It is a how-to guide how to compute volatility and sharpe ratio in Python.

Read More
Computer Analysis Image
Crypto
DataScience

How to get cumulative return for your asset and portfolio in Python

To explain how to use cumprod in Pandas library to calculate cumulative portfolio return and single asset return in an efficient code with Python.

Read More
Analytics Image
Blockchain
Crypto

How to get ohlcv data for your exchange with ccxt library?

Overview about OHLCV and ccxt library. How to use ccxt library to obtain OHLCV data from crypto exchange that you’re using in Python.

Read More