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:
parent
4e0ee7cdd9
commit
1af7223f44
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user