@@ -1243,8 +1243,8 @@ def from_dict(cls, data, orient="columns", dtype=None, columns=None) -> "DataFra
1243
1243
If 'tight', assume a dict with keys ['index', 'columns', 'data',
1244
1244
'index_names', 'column_names']
1245
1245
1246
- .. versionadded:: 1.1.0
1247
- 'tight' as an allowed value for the ``orient`` argument
1246
+ .. versionadded:: 1.1.0
1247
+ 'tight' as an allowed value for the ``orient`` argument
1248
1248
1249
1249
dtype : dtype, default None
1250
1250
Data type to force, otherwise infer.
@@ -1289,10 +1289,10 @@ def from_dict(cls, data, orient="columns", dtype=None, columns=None) -> "DataFra
1289
1289
Specify ``orient='tight'`` to create the DataFrame using a 'tight'
1290
1290
format.
1291
1291
>>> data = {'index': [('a', 'b'), ('a', 'c')],
1292
- 'columns': [('x', 1), ('y', 2)],
1293
- 'data': [[1, 3], [2, 4]],
1294
- 'index_names': ['n1', 'n2'],
1295
- 'column_names': ['z1', 'z2']}
1292
+ ... 'columns': [('x', 1), ('y', 2)],
1293
+ ... 'data': [[1, 3], [2, 4]],
1294
+ ... 'index_names': ['n1', 'n2'],
1295
+ ... 'column_names': ['z1', 'z2']}
1296
1296
>>> pd.DataFrame.from_dict(data, orient='tight')
1297
1297
z1 x y
1298
1298
z2 1 2
@@ -1433,8 +1433,8 @@ def to_dict(self, orient="dict", into=dict):
1433
1433
Abbreviations are allowed. `s` indicates `series` and `sp`
1434
1434
indicates `split`.
1435
1435
1436
- .. versionadded:: 1.1.0
1437
- 'tight' as an allowed value for the ``orient`` argument
1436
+ .. versionadded:: 1.1.0
1437
+ 'tight' as an allowed value for the ``orient`` argument
1438
1438
1439
1439
into : class, default dict
1440
1440
The collections.abc.Mapping subclass used for all Mappings
0 commit comments