Skip to content

Commit

Permalink
removed transpose from df output
Browse files Browse the repository at this point in the history
timtreis committed Dec 11, 2024
1 parent 1a205bc commit cd9f934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spatialdata/_core/spatialdata.py
Original file line number Diff line number Diff line change
@@ -1709,7 +1709,7 @@ def _flatten_mapping(m: Mapping[str, Any], parent_key: str = "", sep: str = "_")

if return_as == "df":
try:
return pd.DataFrame([data]).T
return pd.DataFrame([data])
except Exception as e:
raise ValueError(f"Failed to convert data to DataFrame: {e}") from e

0 comments on commit cd9f934

Please sign in to comment.