@@ -411,6 +411,22 @@ def test_read_excel_with_style_comments_styler_objects(self):
411411 for row_in_excel , row_in_self in zip (rows_in_excel , rows_in_self )
412412 for excel_cell , self_cell in zip (row_in_excel [1 :], row_in_self [1 :])))
413413
414+ def test_read_excel_with_style_header_arg_none (self ):
415+ self .sf = StyleFrame ({0 : ['A1' , 'A2' , 'A3' , 'A4' , 'A5' ]})
416+ self .sf .apply_style_by_indexes (self .sf [self .sf .data_df [0 ].isin (('A2' , 'A5' ))], Styler (bold = True ))
417+ self .export_and_get_default_sheet (save = True )
418+ sf_from_excel = StyleFrame .read_excel (TEST_FILENAME , read_style = True , header = None )
419+ # making sure content is the same
420+ self .assertTrue (all (list (self .sf [col ]) == list (sf_from_excel [col ])[1 :] for col in self .sf .columns ))
421+
422+ rows_in_excel = list (sf_from_excel .data_df .itertuples ())
423+ rows_in_self = self .sf .data_df .itertuples ()
424+
425+ # making sure styles are the same
426+ self .assertTrue (all (excel_cell .style == self_cell .style
427+ for row_in_excel , row_in_self in zip (rows_in_excel [1 :], rows_in_self )
428+ for excel_cell , self_cell in zip (row_in_excel [1 :], row_in_self [1 :])))
429+
414430 def test_read_excel_template_equal_boundaries (self ):
415431 template_sf = StyleFrame (
416432 obj = {
0 commit comments