def set_eng_float_format(accuracy=3, use_eng_prefix=False):
 set_option('display.float_format', EngFormatter(accuracy, use_eng_prefix))
 set_option('display.column_space', max(12, (accuracy + 9)))

def set_eng_float_format ( accuracy = 3 , use_eng_prefix = False ) : set_option ( 'display.float_format' , EngFormatter ( accuracy , use_eng_prefix ) ) set_option ( 'display.column_space' , max ( 12 , ( accuracy + 9 ) ) )
alter default behavior on how float is formatted in dataframe .