We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40dfd1e commit 1df9dfaCopy full SHA for 1df9dfa
bisect/30323.py
@@ -0,0 +1,13 @@
1
+# json_normalize skips an entry in a pymongo cursor #30323
2
+
3
+import pandas as pd
4
5
+print(pd.__version__)
6
7
+test_data = [{"_id": 1, "name": "Miriam"}, {"_id": 2, "name": "Peter"}]
8
+data_gen = (record for record in test_data)
9
+result = pd.json_normalize(data_gen)
10
+print(result)
11
12
+expected = pd.json_normalize(test_data)
13
+pd.testing.assert_frame_equal(result, expected)
0 commit comments