democracyData icon indicating copy to clipboard operation
democracyData copied to clipboard

Documentation: Usage in Python?

Open BradKML opened this issue 3 years ago • 5 comments

This dataset looks useful, are there ways to have this work in Python instead of R? https://github.com/xmarquez/democracyData#installation

BradKML avatar Feb 07 '22 05:02 BradKML

At the moment I'm not planning to do this, sorry!

On Mon, Feb 7, 2022 at 6:57 PM BrandonKMLee @.***> wrote:

This dataset looks useful, are there ways to have this work in Python instead of R? https://github.com/xmarquez/democracyData#installation

— Reply to this email directly, view it on GitHub https://github.com/xmarquez/democracyData/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKUD2B3ANLM2PJO22I6SSTUZ5NLVANCNFSM5NWPIOWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

xmarquez avatar Feb 07 '22 18:02 xmarquez

Apologies but can Rda be converted to CSV or some other more usable format? https://github.com/xmarquez/democracyData/tree/master/data

BradKML avatar Feb 08 '22 09:02 BradKML

Yes. Just load it into R then export it as a CSV using write.csv().

JoeNoonan avatar Feb 08 '22 11:02 JoeNoonan

Can Python read Rda files directly?

BradKML avatar Feb 08 '22 12:02 BradKML

Yes, you will need the pyreadr package. See https://stackoverflow.com/questions/47833692/converting-rda-to-pandas-dataframe

On Wed, Feb 9, 2022 at 1:02 AM BrandonKMLee @.***> wrote:

Can Python read Rda files?

— Reply to this email directly, view it on GitHub https://github.com/xmarquez/democracyData/issues/10#issuecomment-1032532748, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKUD2EAOW3K65FLP3DXYVTU2EA5DANCNFSM5NWPIOWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

xmarquez avatar Feb 08 '22 22:02 xmarquez