Skip to content

Won't be able to make tsfresh work on Windows #976

Answered by nils-braun
mkatgithub123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mkatgithub123 - sorry for the massive delay in the answer. If you are using if __name__ == '__main__': you want to put everything except the imports under it, like

from tsfresh.examples.robot_execution_failures import load_robot_execution_failures
import matplotlib.pyplot as plt
from tsfresh import extract_features

if __name__ == '__main__':
    timeseries, y = load_robot_execution_failures()
    print(timeseries.head())
    
    timeseries[timeseries['id'] == 3].plot(subplots=True, sharex=True, figsize=(10,10))
    plt.show()

    timeseries[timeseries['id'] == 20].plot(subplots=True, sharex=True, figsize=(10,10))
    plt.show()
    
    extracted_features = extract_features(timeseries

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nils-braun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants