@@ -405,17 +405,17 @@ Deprecations
405405Enhancements
406406~~~~~~~~~~~~
407407
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`)
409409
410410 .. ipython:: python
411411
412412 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}})
419419
420420- ``DataFrame.to_latex`` now takes a longtable keyword, which if True will return a table in a longtable environment. (:issue:`6617`)
421421- ``pd.read_clipboard`` will, if 'sep' is unspecified, try to detect data copied from a spreadsheet
0 commit comments