R to Python

Buy me a coffeeBuy me a coffee


A Byte of Python

By Swaroopch

Added Sun Dec 12, 2021

What is this?

Excerpt from e-book: “A Byte of Python” is a free book on programming using the Python language. It serves as a tutorial or guide to the Python language for a beginner audience. If all you know about computers is how to save text files, then this is the book for you.”

  1. Link to e-book here: https://python.swaroopch.com/

Coming from R chapter from the book “Coding for Economics”

By Arthur Turrell

Added Sun Dec 12, 2021

What is this?

Excerpt from e-chapter: “There are Python equivalents that have very similar syntax to these that you can use to help you to become productive quickly in Python–though these libraries are not so popular in Python. Here are the Python equivalents to those R libraries.”

  1. Link to chapter here: https://aeturrell.github.io/coding-for-economists/coming-from-r.html#r-python
  2. Link to full e-book here: https://aeturrell.github.io/coding-for-economists/intro.html

Data Analysis for Business, Economics, and Policy

By Gábor Békés & Gábor Kézdi

Added Sun Dec 12, 2021

What is this?

Excerpt from e-book: “This textbook provides future data analysts with the tools, methods, and skills needed to answer data-focused, real life questions, to choose and apply appropriate methods to answer those questions, and to visualize and interpret results to support better decisions in business, economics, and public policy.”

  1. Link to textbook here: https://gabors-data-analysis.com/
  2. Link to github repo and case studies here: https://github.com/gabors-data-analysis/da_case_studies
  3. Link to datasets from textbook here: https://gabors-data-analysis.com/datasets/

Heuristics for Translating Ggplot2 Code to Plotnine Code

By Jeroen Janssens

Added Sun Dec 12, 2021

What is this?

Excerpt from site: “when it comes to the syntax, you can easily translate 95% of ggplot2 code to plotnine code if you take into account the heuristics listed below. But first, an example”.

  1. Link to post here: https://datascienceworkshops.com/blog/heuristics-for-translating-ggplot2-to-plotnine/

Plotnine: Grammar of Graphics for Python

By Jeroen Janssens

Added Sun Dec 12, 2021

What is this?

Excerpt from site: “plotnine is a data visualisation package for Python based on the grammar of graphics, created by Hassan Kibirige. Its API is similar to ggplot2, a widely successful R package by Hadley Wickham and others”.

  1. Link to post here: https://datascienceworkshops.com/blog/plotnine-grammar-of-graphics-for-python/

Pydon’ts – Write elegant Python code

By Rodrigo

Added Sun Dec 12, 2021

What is this?

Excerpt from site: “Would you like me to teach you how to write Python 🐍 code that is more elegant, more effective, and more expressive than what you have been writing until now… for free?”

  1. Link to post here: https://mathspp.gumroad.com/l/pydonts

Python Data Science Handbook

By Jake VanderPlas

Added Sun Dec 12, 2021

What is this?

Excerpt from site: “This website contains the full text of the Python Data Science Handbook by Jake VanderPlas; the content is available on GitHub in the form of Jupyter notebooks.”.

  1. Link to post here: https://jakevdp.github.io/PythonDataScienceHandbook/
  2. Link to repo here: https://github.com/jakevdp/PythonDataScienceHandbook
  3. Link to handbook to buy here: https://www.oreilly.com/library/view/python-data-science/9781491912126/

Python Exercises

Added Sun Dec 12, 2021
What is this?.
A collection of different sites that provide python exercises for people from all levels:

  1. Practice Python 🌱 : There are over 30 beginner Python exercises just waiting to be solved. Each exercise comes with a small discussion of a topic and a link to a solution. New exercises are posted monthly.
  2. Python exercises on Exercism 🌱 🌳
  3. Learn by example Exercises 🌱

Python & R for the Modern Data Scientist💯

By Rick J Scavetta & Boyan Angelov

Added Sun Dec 12, 2021

What is this?

Excerpt from site: “With this book, data scientists from the Python and R communities will learn how to speak the dialects of each language. By recognizing the strengths of working with both, you’ll discover new ways to accomplish data science tasks and expand your skill set.”

  1. Link to Appendix A: A Python - R Bilingual Dictionary by Rick J Scavetta here 💯: http://www.ylz.ncx.mybluehost.me/moderndata.design/PyR4MDS/
  2. Link to book to buy here: https://www.oreilly.com/library/view/python-and-r/9781492093398/
  3. Link to github repo and code: https://github.com/moderndatadesign/PyR4MDS

Python Tutorials

By Corey Schafer

Added Sun Dec 12, 2021

What is this?

Excerpt from site: “This channel is focused on creating tutorials and walkthroughs for software developers, programmers, and engineers. We cover topics for all different skill levels, so whether you are a beginner or have many years of experience, this channel will have something for you.”

  1. Link to the video tutorials here: https://www.youtube.com/c/Coreyms/featured

r-to-python-data-wrangling-basics.md

By Connor

Added Sun Dec 12, 2021
What is this?.
Excerpt from site: “The purpose of this document is to demonstrate how to execute the key dplyr verbs when manipulating data using Python (with the pandas package)”.

  1. Link to repo here: https://gist.github.com/conormm/fd8b1980c28dd21cfaf6975c86c74d07