We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72a2a2a commit 0071de3Copy full SHA for 0071de3
bisect/42456.py
@@ -0,0 +1,13 @@
1
+# BUG: Regression on DataFrame.from_records #42456
2
+
3
+from numpy import empty, array
4
+import pandas as pd
5
+print(pd.__version__)
6
7
+structured_dtype = [("prop", int)]
8
9
+# Does NOT work any more
10
+result = empty((0, len(structured_dtype)))
11
+structured_array = array(result, dtype=structured_dtype)
12
+result = pd.DataFrame.from_records(structured_array)
13
+print(result)
0 commit comments