Created
August 7, 2020 03:29
-
-
Save SolClover/9a77b9481a132515c3a6605b306b46f9 to your computer and use it in GitHub Desktop.
Create Pandas DataFrame
This file contains 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
# Initialise list of lists | |
my_data = [['X', 2, 3], ['Y', 5, 6], ['Z', 12, 13]] | |
# Create Pandas DataFrame | |
df = pd.DataFrame(my_data, columns = ['Col_A', 'Col_B', 'Col_C']) | |
# Print DataFrame | |
df |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment