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 4b3e8f3 commit 578b37bCopy full SHA for 578b37b
pygmt/clib/session.py
@@ -1729,7 +1729,7 @@ def virtualfile_in( # noqa: PLR0912
1729
if hasattr(data, "items") and not hasattr(data, "to_frame"):
1730
# Dict, pandas.DataFrame or xarray.Dataset types.
1731
# pandas.Series will be handled below like a 1-D numpy.ndarray.
1732
- _data = [array for _, array in data.items()]
+ _data = [np.atleast_1d(array) for _, array in data.items()]
1733
else:
1734
# Python list, tuple, and pandas.Series types
1735
_data = np.atleast_2d(np.asanyarray(data).T)
0 commit comments