lucashusted / pystout

A Package To Make Publication Quality Latex Tables From Python Regression Output
GNU General Public License v3.0
43 stars 12 forks source link

pd.append depreciated #6

Open mattwood-astro opened 2 years ago

mattwood-astro commented 2 years ago

When running recently Python threw warning that pd.append() is depreciated, and to switch to .append. If you replace the current line (near bottom of file, commented out here) with the second line, the warning message disappears and the output is identical.

        #options = options.append(pd.DataFrame([r],index=[value]))
        options = pd.concat([options,pd.DataFrame([r],index=[value])])

As always, thanks for a very useful package!

masact commented 1 year ago

Yes, confirmed: I was getting "AttributeError: 'DataFrame' object has no attribute 'append'" and found this post. Thanks for the great package and the fix!

mwood7 commented 6 months ago

Hi, Lucas: It looks like you updated your code to include concat instead of append, but when I do pip install pystout for some reason I'm getting the old version (?). We're writing a book where we point the readers to pystout, but does pip install not pull directly from your GitHub (?). I don't know anything about how that works.

Cheers, and thanks again for a very useful and easy-to-use package. Matt

lucashusted commented 6 months ago

Hi Matt, thanks for reaching out. This has been fixed. The package was updated by a different user and I hadn't gotten around to uploading to pypi. Should work now with version 0.0.8

mattwood-astro commented 6 months ago

Great - thanks so much!

Hope you’re doing well.

Cheers, Matt

Matt A. Wood, Ph.D. Regents Professor of Physics & Astronomy Texas A&M University-Commerce Commerce, TX 75429 O: 903.886.5486 M: 903.269.6682

On May 4, 2024, at 9:12 AM, Lucas Husted @.***> wrote:

External Email

Hi Matt, thanks for reaching out. This has been fixed. The package was updated by a different user and I hadn't gotten around to uploading to pypi. Should work now with version 0.0.8

— Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_lucashusted_pystout_issues_6-23issuecomment-2D2094216243&d=DwMCaQ&c=oqyuZuih6ykib6aKiBq22_bich4AVfYGoLertJN0bEc&r=oPHX933s0QxGh0LKaD80CQbTBmY6tYbw-FCePPPwFYM&m=PZVu5l8L9MBQ4t4JQ3fu_LakIBE84AlyMdymm0fCzgkQjT8x5FMqsGen5sW6dqWO&s=iRLEfQ10h7IYHHC8tfiyUxmswve459Dt6M_ZxH05TOs&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AUOERUOWWS44GT7UD45FP7DZATUGPAVCNFSM6AAAAAAQ47KOK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGIYTMMRUGM&d=DwMCaQ&c=oqyuZuih6ykib6aKiBq22_bich4AVfYGoLertJN0bEc&r=oPHX933s0QxGh0LKaD80CQbTBmY6tYbw-FCePPPwFYM&m=PZVu5l8L9MBQ4t4JQ3fu_LakIBE84AlyMdymm0fCzgkQjT8x5FMqsGen5sW6dqWO&s=2sgjqaALUATMR-I8NRZIH69nyigjAVV7UHYGQyweV0I&e=. You are receiving this because you authored the thread.Message ID: @.***>