Last active
November 15, 2021 14:54
-
-
Save pratik-choudhari/e1a30d8ab257bdf99400400d005be384 to your computer and use it in GitHub Desktop.
pythonji code to create a pandas dataframe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as πΌ | |
| # Define a dataframe and print it to the console | |
| π = πΌ.DataFrame( | |
| { | |
| "animal": ["Panda", "Python", "Lion"], | |
| "π": ["πΌ", "π", "π¦"], | |
| "number": [1, 2, 3], | |
| }, | |
| ).set_index("π") | |
| print(π) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment