Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataframe can not plot #148

Open
f5-ansible opened this issue Jul 3, 2023 · 3 comments
Open

dataframe can not plot #148

f5-ansible opened this issue Jul 3, 2023 · 3 comments

Comments

@f5-ansible
Copy link

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
Copy link
Author

version 0.6.2

@TonyEinstein
Copy link

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants