getting rid of pandas import of datetime class when pandas does not contain datetime class that can be imported

removing import of 
```
from pandas import datetime
```
This commit is contained in:
Muhammad Nurwidya Bahari 2024-08-02 09:33:14 +07:00 committed by GitHub
parent 4e0ee7cdd9
commit 1af7223f44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,8 +1,15 @@
from pyFTS.common.transformations.transformation import Transformation from pyFTS.common.transformations.transformation import Transformation
from pandas import datetime """
pandas lib does not have datetime class
this throw error for code that uses LinearTrend Class
"""
# from pandas import datetime
from sklearn.linear_model import LinearRegression from sklearn.linear_model import LinearRegression
import numpy as np import numpy as np
import pandas as pd import pandas as pd
# adding datetime incase it breaks functionality
import datetime
from datetime import datetime
class LinearTrend(Transformation): class LinearTrend(Transformation):