MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / test_pandas

Method test_pandas

functional/test/test_streams.py:248–259  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

246 self.assertListEqual(expected_2, result_2)
247
248 def test_pandas(self):
249 try:
250 import pandas
251
252 data = pandas.DataFrame([[1, 3], [4, 5]])
253 result = seq(data).list()
254 self.assertEqual(result[0][0], 1)
255 self.assertEqual(result[0][1], 3)
256 self.assertEqual(result[1][0], 4)
257 self.assertEqual(result[1][1], 5)
258 except ImportError:
259 pass
260
261 def test_to_file(self):
262 tmp_path = "functional/test/data/tmp/output.txt"

Callers

nothing calls this directly

Calls 1

listMethod · 0.80

Tested by

no test coverage detected