Preparing the environment

First, we need to prepare our environment:

  1. From the command console, install pandas and numpy:
$ pip install pandas
$ pip install numpy
$ pip install matplotlib
$ pip install seaborn
$ pip install scipy
  1. Download NASA's dataset into a folder named data
  2. In the same directory, create a new file called my_anomaly_detection.py
  3. Finally, write the following lines of code to import the dataset:
import pandas as pd
import numpy as np
# read the dataset
df = pd.read_csv('./data/data.csv')
print(df.head)

From the command console, run the Python code again:

$ python my_anomaly_detection.py
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset