Skip to content

Instantly share code, notes, and snippets.

@pratik-choudhari
Last active November 15, 2021 14:54
Show Gist options
  • Select an option

  • Save pratik-choudhari/17ca2576a1161a97b92965cf994f9a50 to your computer and use it in GitHub Desktop.

Select an option

Save pratik-choudhari/17ca2576a1161a97b92965cf994f9a50 to your computer and use it in GitHub Desktop.
pythonji's translated version of 🐼.🐍
import pandas as __pythonji_panda__
# Define a dataframe and print it to the console
__pythonji_snake__ = __pythonji_panda__.DataFrame(
{
"animal": ["Panda", "Python", "Lion"],
"__pythonji_grinning_face__": ["__pythonji_panda__", "__pythonji_snake__", "__pythonji_lion__"],
"number": [1, 2, 3],
},
).set_index("__pythonji_grinning_face__")
print(__pythonji_snake__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment