First, we need to prepare our environment:
- From the command console, install pandas and numpy:
$ pip install pandas
$ pip install numpy
$ pip install matplotlib
$ pip install seaborn
$ pip install scipy
- Download NASA's dataset into a folder named data
- In the same directory, create a new file called my_anomaly_detection.py
- 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