Open leewi9 opened 5 months ago
Thank you for making yagmail, it is awesome.
By this code,
gdp_dict = {'Country1': ['United States', 'China', 'Japan', 'Germany', 'India'], 'GDP1': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'], 'Country2': ['United States', 'China', 'Japan', 'Germany', 'India'], 'GDP2': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'], 'Country3': ['United States', 'China', 'Japan', 'Germany', 'India'], 'GDP3': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'], 'Country4': ['United States', 'China', 'Japan', 'Germany', 'India'], 'GDP4': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'], 'Country5': ['United States', 'China', 'Japan', 'Germany', 'India'], 'GDP5': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'], 'Country6': ['United States', 'China', 'Japan', 'Germany', 'India'], 'GDP6': ['$21.44 trillion', '$14.14 trillion', '$5.15 trillion', '$3.86 trillion', '$2.94 trillion'], } df = pd.DataFrame(gdp_dict) html = build_table(df, color='blue_light') yag.send(to=address, subject=subject, contents=[html])
I did received mail, but two issues spotted
first, there is large margin between table and title, looks like a large empty area, don't know why
second, how to make text middle in the table, and don not wrap text if it is long
thanks
Thank you for making yagmail, it is awesome.
By this code,
I did received mail, but two issues spotted
first, there is large margin between table and title, looks like a large empty area, don't know why
second, how to make text middle in the table, and don not wrap text if it is long
thanks