Skip to content

Commit

Permalink
Add a props parameter to dataframe and default to grabbing all non-sy…
Browse files Browse the repository at this point in the history
…stem props
  • Loading branch information
aazuspan committed Aug 27, 2022
1 parent 47368f6 commit 63bb869
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/test_time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,10 @@ def test_dataframe():
for i in range(3)
]
ts = wxee.TimeSeries(imgs).set("system:id", col_id)
df = ts.dataframe()
df = ts.dataframe(["system:time_start", "system:id"])

assert df.index.id == col_id
assert df.time_start.dt.strftime("%Y-%m-%d").values.tolist() == start_dates
assert df.id.values.tolist() == ids
assert (
df["system:time_start"].dt.strftime("%Y-%m-%d").values.tolist() == start_dates
)
assert df["system:id"].values.tolist() == ids

0 comments on commit 63bb869

Please sign in to comment.