docs: fix broken doc example
This commit is contained in:
@@ -1337,7 +1337,7 @@ Entries will be validated, and won't be passed to the UI if they don't correspon
|
|||||||
while start_dt < end_date:
|
while start_dt < end_date:
|
||||||
start_dt += timedelta(hours=1)
|
start_dt += timedelta(hours=1)
|
||||||
if (start_dt.hour % 4) == 0:
|
if (start_dt.hour % 4) == 0:
|
||||||
mark_areas.append(
|
annotations.append(
|
||||||
{
|
{
|
||||||
"type": "area",
|
"type": "area",
|
||||||
"label": "4h",
|
"label": "4h",
|
||||||
@@ -1348,7 +1348,7 @@ Entries will be validated, and won't be passed to the UI if they don't correspon
|
|||||||
)
|
)
|
||||||
elif (start_dt.hour % 2) == 0:
|
elif (start_dt.hour % 2) == 0:
|
||||||
price = dataframe.loc[dataframe["date"] == start_dt, ["close"]].mean()
|
price = dataframe.loc[dataframe["date"] == start_dt, ["close"]].mean()
|
||||||
mark_areas.append(
|
annotations.append(
|
||||||
{
|
{
|
||||||
"type": "area",
|
"type": "area",
|
||||||
"label": "2h",
|
"label": "2h",
|
||||||
|
|||||||
Reference in New Issue
Block a user