pandas substitute nan with 0. There are any references about pandas substitute nan with 0 in here. you can look below.