-
Notifications
You must be signed in to change notification settings - Fork 879
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
Better test case for normalizing from no time index to time index #1113
Conversation
A couple things I'm unsure about:
|
Codecov Report
@@ Coverage Diff @@
## main #1113 +/- ##
=======================================
Coverage 98.36% 98.36%
=======================================
Files 126 126
Lines 13257 13268 +11
=======================================
+ Hits 13040 13051 +11
Misses 217 217
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Update the changelog.
16fec8a
to
fedc197
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
df = pd.DataFrame({ | ||
"id": [0, 1, 2, 3], | ||
"A": [5, 4, 2, 3], | ||
'time': [datetime(2020, 6, 3), (datetime(2020, 3, 12)), datetime(2020, 5, 1), datetime(2020, 4, 22)] | ||
}) | ||
es = ft.EntitySet("es") | ||
es = es.entity_from_dataframe( | ||
entity_id="data", | ||
dataframe=df, | ||
index="id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the old version of this test is testing both a dask entityset and a pandas one. We could make a parametrized entityset fixture similar to es
with this portion of the code, and keep the rest of the code to test the entityset
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in the fixtures so we now have params=['dd_normalize_es', 'pd_normalize_es']
for this test-- let me know if it looks ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
2f581e9
to
10c8b3a
Compare
Updated test case
Creates an entity set with one entity that does not have a
time_index
but does have a column of datetimes. That column,time
is used viamake_time_index
as the time index of an entity built from normalization.