robertwb commented on a change in pull request #15073:
URL: https://github.com/apache/beam/pull/15073#discussion_r660189531
##########
File path: sdks/python/apache_beam/dataframe/schemas_test.py
##########
@@ -290,6 +290,29 @@ def
test_unbatch_include_index_column_conflict_raises(self):
with self.assertRaisesRegex(ValueError, 'foo'):
_ = pc | schemas.UnbatchPandas(proxy, include_indexes=True)
+ def test_unbatch_datetime(self):
+
+ s = pd.Series(
+ pd.date_range(
+ '1/1/2000', periods=100, freq='m', tz='America/Los_Angeles'))
+ proxy = s[:0]
+
+ with TestPipeline() as p:
+ res = (
+ p | beam.Create([s[::2], s[1::2]])
+ | schemas.UnbatchPandas(proxy, include_indexes=True))
+
+ assert_that(
+ res,
+ equal_to(
+ list(
Review comment:
Can we just do `equal_to(list(s))`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]