Skip to content

dataframe can not plot #148

@f5-ansible

Description

@f5-ansible

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions