Skip to content

Commit bb468f8

Browse files
committed
test is_list_like, pandas-dev#8188
1 parent caf507e commit bb468f8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pandas/io/tests/test_excel.py

+11
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,17 @@ def test_to_excel_float_format(self):
930930
index=['A', 'B'], columns=['X', 'Y', 'Z'])
931931
tm.assert_frame_equal(rs, xp)
932932

933+
def test_to_excel_list_format(self):
934+
_skip_if_no_xlrd()
935+
936+
df = DataFrame([0.0, ['0.0',0.0]],
937+
columns=['not_list','list'])
938+
939+
with ensure_clean(self.ext) as filename:
940+
df.to_excel(filename, sheetname='TestList')
941+
result = read_excel(filename,'TestList')
942+
tm.assert_equal(result,df)
943+
933944
def test_to_excel_output_encoding(self):
934945
_skip_if_no_xlrd()
935946
ext = self.ext

0 commit comments

Comments
 (0)