File tree 1 file changed +7
-2
lines changed 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2726,9 +2726,11 @@ def to_dataframe(
2726
2726
"""Convert this array and its coordinates into a tidy pandas.DataFrame.
2727
2727
2728
2728
The DataFrame is indexed by the Cartesian product of index coordinates
2729
- (in the form of a :py:class:`pandas.MultiIndex`).
2729
+ (in the form of a :py:class:`pandas.MultiIndex`). Other coordinates are
2730
+ included as columns in the DataFrame.
2730
2731
2731
- Other coordinates are included as columns in the DataFrame.
2732
+ For 1D and 2D DataArrays, see also :py:func:`DataArray.to_pandas` which
2733
+ doesn't rely on a MultiIndex to build the DataFrame.
2732
2734
2733
2735
Parameters
2734
2736
----------
@@ -2750,6 +2752,9 @@ def to_dataframe(
2750
2752
result
2751
2753
DataArray as a pandas DataFrame.
2752
2754
2755
+ See also
2756
+ --------
2757
+ DataArray.to_pandas
2753
2758
"""
2754
2759
if name is None :
2755
2760
name = self .name
You can’t perform that action at this time.
0 commit comments