File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,8 @@ def data_kind(
203
203
(e.g., geopandas.GeoDataFrame or shapely.geometry)
204
204
- ``"grid"``: a :class:`xarray.DataArray` object with dimensions not equal to 3
205
205
- ``"image"``: a :class:`xarray.DataArray` object with 3 dimensions
206
- - ``"matrix"``: a :class:`pandas.DataFrame` object, a 2-D :class:`numpy.ndarray`
207
- or a sequence of sequences
206
+ - ``"matrix"``: a :class:`pandas.DataFrame` object, a 2-D :class:`numpy.ndarray`,
207
+ a dictionary with array-like values, or a sequence of sequences
208
208
209
209
In addition, the data can be given via a series of vectors (e.g., x/y/z). In this
210
210
case, the ``data`` argument is ``None`` and the data kind is determined by the
@@ -252,6 +252,8 @@ def data_kind(
252
252
'matrix'
253
253
>>> data_kind(data=pd.DataFrame(data={"col1": [1, 2], "col2": [3, 4]}))
254
254
'matrix'
255
+ >>> data_kind(data={"x": [1, 2], "y": [3, 4]})
256
+ 'matrix'
255
257
>>> data_kind(data=[1, 2, 3])
256
258
'matrix'
257
259
"""
You can’t perform that action at this time.
0 commit comments