How to delete instances with missing values in Python?

This recipe helps you delete instances with missing values in Python
In [1]:
## How to delete instances with missing values in Python 
def Kickstarter_Example_29():
    print()
    print(format('How to delete instances with missing values in Python', '*^82'))

    import warnings
    warnings.filterwarnings("ignore")

    # Load libraries
    import numpy as np

    # Create feature matrix
    X = np.array([[1.1, 11.1],
                  [2.2, 22.2],
                  [3.3, 33.3],
                  [4.4, 44.4],
                  [np.nan, 55]])

    # Remove observations with missing values
    X = X[~np.isnan(X).any(axis=1)]
    print(); print(X)

Kickstarter_Example_29()
**************How to delete instances with missing values in Python***************

[[ 1.1 11.1]
 [ 2.2 22.2]
 [ 3.3 33.3]
 [ 4.4 44.4]]