xmarquez / democracyData

Access and manipulate most standard scholarly measures of democracy
https://xmarquez.github.io/democracyData/
84 stars 21 forks source link

Documentation: Usage in Python? #10

Closed BradKML closed 10 months ago

BradKML commented 2 years ago

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

xmarquez commented 2 years ago

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: @.***>

BradKML commented 2 years ago

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

JoeNoonan commented 2 years ago

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

BradKML commented 2 years ago

Can Python read Rda files directly?

xmarquez commented 2 years ago

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: @.***>