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 e9e1b32 commit f106d91Copy full SHA for f106d91
pandas/core/frame.py
@@ -1914,11 +1914,11 @@ def from_dict(
1914
orient = orient.lower() # type: ignore[assignment]
1915
if orient == "index":
1916
if len(data) > 0:
1917
+ index = list(data.keys())
1918
# TODO speed up Series case
1919
if isinstance(next(iter(data.values())), (Series, dict)):
1920
data = _from_nested_dict(data)
1921
else:
- index = list(data.keys())
1922
# error: Incompatible types in assignment (expression has type
1923
# "List[Any]", variable has type "Dict[Any, Any]")
1924
data = list(data.values()) # type: ignore[assignment]
0 commit comments