adtk icon indicating copy to clipboard operation
adtk copied to clipboard

dataframe can not plot

Open f5-ansible opened this issue 2 years ago • 3 comments

run my code as doc write, nothing happen in win or mac:

import pandas as pd import matplotlib.pyplot as plt import numpy as np from adtk.data import validate_series from adtk.visualization import plot from adtk.transformer import RollingAggregate from adtk.transformer import DoubleRollingAggregate from adtk.detector import ThresholdAD #dt1 = pd.date_range(start="20190101", end="20190831", freq="D") dt2 = pd.date_range(start="20190101", periods=10, freq="10D") df2 = pd.DataFrame(np.arange(20).reshape((10, 2)), index=dt2,columns=['A','B']) print(df2) #print(df2.index) df2 = validate_series(df2) plot(df2)

f5-ansible avatar Jul 03 '23 05:07 f5-ansible

version 0.6.2

f5-ansible avatar Jul 03 '23 05:07 f5-ansible

I encountered the same problem, and I reported an error. How to solve this problem temporarily?

My question link: ValueError: Multi-dimensional indexing (e.g. obj[:, None]) is no longer supported. Convert to a numpy array before indexing instead.

TonyEinstein avatar Oct 08 '23 08:10 TonyEinstein

In the file of https://github.com/arundo/adtk/blob/v0.6.2/tests/test_visualization.ipynb, The example does not use df, does it mean it does not support df?

TonyEinstein avatar Oct 08 '23 08:10 TonyEinstein