Skip to content

Commit 8e8bdd9

Browse files
authored
as_matrix replaced
as_matrix() got removed with Pandas 1.0.0 (pandas-dev/pandas#18458), replaced with values
1 parent 90b1859 commit 8e8bdd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lstnet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def build_iters(data_dir, max_records, q, horizon, splits, batch_size):
7979
# Read in data as numpy array
8080
df = pd.read_csv(os.path.join(data_dir, "electricity.txt"), sep=",", header=None)
8181
feature_df = df.iloc[:, :].astype(float)
82-
x = feature_df.as_matrix()
82+
x = feature_df.values
8383
x = x[:max_records] if max_records else x
8484

8585
# Construct training examples based on horizon and window

0 commit comments

Comments
 (0)