Feng's Notes Isn't coding fun?

[Pandas]How to calculate datetime difference in years

Suppose you got a person’s regist time in one column and his birth date in another column, now you need to calculate his age when he did the registration. There are two ways to reach this result.

[Pandas]How to list all columns

[Pandas] How to import from Sql Server

We need to rely on pyodbc, the sample code is as belows.

Basics of words embedding

Why embedding

Natural language processing systems traditionally treat words as discrete atomic symbols, and this may lead to some obstacles in word preprocessing:

What is tf.data and how to use

Tf.data is a high level API provided by tensorflow, it performs as a pipeline for complex input and output. The core data structure of tf.data is Dataset which represents a potentially large set of elements.

[Pandas]Handle missing data

Missing data is a common problem in real data preprocessing, luckily pandas has done a lot to help us handle it. This article will show the codes on how to do it.

[Pandas]How to select data

This article shows the most common methods regarding data selection

What is Attention and how to use

Introduction

Attention or Bahdanau Attention is getting more and more interest in Neural Machine Translation(NMT) and other sequence prediction research, in this article I will briefly introduce what is Attention mechanism, why important it is and how do we use it(in Tensorflow)

[Pandas]How to drop columns/rows

[Pandas]How to rename columns