Skip to content

Instantly share code, notes, and snippets.

@e-io
Last active October 15, 2021 10:50
Show Gist options
  • Save e-io/ae533fa37ebb98a56f492cd6091762a2 to your computer and use it in GitHub Desktop.
Save e-io/ae533fa37ebb98a56f492cd6091762a2 to your computer and use it in GitHub Desktop.
Creation of a data frame in pandas. Name of library is derived from derived from 'Panel Data'.
import pandas as pd
favorite_music = [
['Нейромонах Феофан', 'В душе драм, в сердце светлая Русь'],
['НТР', 'Тыжпрограммист'],
['LinDi', '裂帛'],
['Yann Tiersen', 'Amelie'],
['Баста', 'ЧП'],
]
entries = ['artist', 'track']
playlist = pd.DataFrame(data = favorite_music, columns = entries)
print(playlist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment