Is there a way to auto post on Facebook?

There is a nice package that I started to use recently called StyleFrame.

it gets DataFrame and lets you to style it very easily...

by default the columns width is auto-adjusting.

for example:

from StyleFrame import StyleFrame
import pandas as pd

df = pd.DataFrame({'aaaaaaaaaaa': [1, 2, 3], 
                   'bbbbbbbbb': [1, 1, 1],
                   'ccccccccccc': [2, 3, 4]})
excel_writer = StyleFrame.ExcelWriter('example.xlsx')
sf = StyleFrame(df)
sf.to_excel(excel_writer=excel_writer, row_to_add_filters=0,
            columns_and_rows_to_freeze='B2')
excel_writer.save()

you can also change the columns width:

sf.set_column_width(columns=['aaaaaaaaaaa', 'bbbbbbbbb'],
                    width=35.3)

UPDATE 1

In version 1.4 best_fit argument was added to StyleFrame.to_excel. See the documentation.

UPDATE 2

Here's a sample of code that works for StyleFrame 3.x.x

from styleframe import StyleFrame
import pandas as pd

columns = ['aaaaaaaaaaa', 'bbbbbbbbb', 'ccccccccccc', ]
df = pd.DataFrame(data={
        'aaaaaaaaaaa': [1, 2, 3, ],
        'bbbbbbbbb': [1, 1, 1, ],
        'ccccccccccc': [2, 3, 4, ],
    }, columns=columns,
)
excel_writer = StyleFrame.ExcelWriter('example.xlsx')
sf = StyleFrame(df)
sf.to_excel(
    excel_writer=excel_writer, 
    best_fit=columns,
    columns_and_rows_to_freeze='B2', 
    row_to_add_filters=0,
)
excel_writer.save()

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

const FP = {“featured_posts_nonce”:”0f9eb6df6c”,”featured_posts”:[{“description”:”The Federal Reserve just raised rates. Here\u2019s what it could mean for inflation and interest rates in the new year.”,”hub”:{“hub_title”:”Banking”,”hub_link”:”https:\/\/time.com\/nextadvisor\/banking\/”},”ID”:64233,”image”:”https:\/\/time.com\/nextadvisor\/wp-content\/uploads\/2022\/12\/Fed-Just-Raised-Rates-What-That-Means-for-Savers.jpg”,”link”:”https:\/\/time.com\/nextadvisor\/banking\/fed-meeting-interest-rate-hike-december-15-2022\/”,”post_title”:”The Fed Just Hiked Rates Again. Why This Time Is Different and What it Means for Your Wallet”,”reading_time”:5},{“description”:”Thomas Cirignano has been saving money in CDs for the past 40 years \u2014 which means he\u2019s had to make some adjustments to his plan along the way.  In the 1980s, when CD interest rates averaged about 13%, Cirignano opened an IRA which he funded partially with a series of long-term CDs. Cirignano made his […]”,”hub”:{“hub_title”:”Banking”,”hub_link”:”https:\/\/time.com\/nextadvisor\/banking\/”},”ID”:64499,”image”:”https:\/\/time.com\/nextadvisor\/wp-content\/uploads\/2022\/12\/When-Is-a-CD-Withdrawal-Penalty-Worth-It.jpg”,”link”:”https:\/\/time.com\/nextadvisor\/banking\/cds\/how-to-decide-if-a-cd-withdrawal-penalty-is-worth-it\/”,”post_title”:”Should You Ever Pay a CD Withdrawal Fee? This 70-Year-Old Retiree Did, and He Doesn\u2019t Regret It”,”reading_time”:8},{“description”:”Homebuyers might have an easier time in 2023 than they\u2019ve had in late 2022, with mortgage rates and home prices both perhaps heading down.  One problem: Buyers might be chasing fewer houses for sale.  \u201cWe still have a fundamental supply shortage in the United States,\u201d says Odeta Kushi, deputy chief economist at First American Financial […]”,”hub”:{“hub_title”:”Mortgage News”,”hub_link”:”https:\/\/time.com\/nextadvisor\/mortgages\/mortgage-news\/”},”ID”:64276,”image”:”https:\/\/time.com\/nextadvisor\/wp-content\/uploads\/2022\/12\/NA-2023-Housing-Market-Predictions.jpg”,”link”:”https:\/\/time.com\/nextadvisor\/mortgages\/mortgage-news\/2023-housing-market-predictions\/”,”post_title”:”The Housing Market Will ‘Rebalance’ in 2023, Experts Predict. What That Means for You”,”reading_time”:17}]};

Unfortunately, the footnote ends there, so there's not much in the way of detail about what these restrictions are or how long they'd remain in effect in a potential post-acquisition world. Given COD's continued non-appearance on Game Pass, you've got to imagine the restrictions are fairly significant if they're not an outright block on COD coming to the service. Either way, the simple fact that Microsoft is apparently willing to maintain any restrictions on its own ability to put first-party games on Game Pass is rather remarkable, given that making Game Pass more appealing is one of the reasons for its acquisition spree.

The irony of Sony making deals like this one while fretting about COD's future on PlayStation probably isn't lost on Microsoft's lawyers, which is no doubt part of why they brought it up to the CMA. While it's absolutely reasonable to worry about a world in which more and more properties are concentrated in the hands of singular, giant megacorps, it does look a bit odd if you're complaining about losing access to games while stopping them from joining competing services.