@@ -405,17 +405,17 @@ Deprecations
405
405
Enhancements
406
406
~~~~~~~~~~~~
407
407
408
- - DataFrame and Series will create MultiIndex if passed a list of tuples
408
+ - DataFrame and Series will create a MultiIndex object if passed a tuples dict (:issue:`4187`)
409
409
410
410
.. ipython:: python
411
411
412
412
Series({('a', 'b'): 1, ('a', 'a'): 0,
413
- ('a', 'c'): 2, ('b', 'a'): 3, ('b', 'b'): 4})
414
- pandas. DataFrame({('a', 'b'): {('A', 'B'): 1, ('A', 'C'): 2},
415
- ('a', 'a'): {('A', 'C'): 3, ('A', 'B'): 4},
416
- ('a', 'c'): {('A', 'B'): 5, ('A', 'C'): 6},
417
- ('b', 'a'): {('A', 'C'): 7, ('A', 'B'): 8},
418
- ('b', 'b'): {('A', 'D'): 9, ('A', 'B'): 10}})
413
+ ('a', 'c'): 2, ('b', 'a'): 3, ('b', 'b'): 4})
414
+ DataFrame({('a', 'b'): {('A', 'B'): 1, ('A', 'C'): 2},
415
+ ('a', 'a'): {('A', 'C'): 3, ('A', 'B'): 4},
416
+ ('a', 'c'): {('A', 'B'): 5, ('A', 'C'): 6},
417
+ ('b', 'a'): {('A', 'C'): 7, ('A', 'B'): 8},
418
+ ('b', 'b'): {('A', 'D'): 9, ('A', 'B'): 10}})
419
419
420
420
- ``DataFrame.to_latex`` now takes a longtable keyword, which if True will return a table in a longtable environment. (:issue:`6617`)
421
421
- ``pd.read_clipboard`` will, if 'sep' is unspecified, try to detect data copied from a spreadsheet
0 commit comments