
| Current Path : /proc/thread-self/root/usr/local/lib/python3.8/dist-packages/ravenclaw/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //proc/thread-self/root/usr/local/lib/python3.8/dist-packages/ravenclaw/example_dataframes.py |
from collections import OrderedDict
import pandas as pd
from datetime import datetime
lotr = pd.DataFrame(OrderedDict({
'number': range(11),
'firstname': [
'Frodo', 'Aragorn', 'Gandalf', 'Legolas', 'Saruman',
'Bilbo', 'Gollum', 'Arwen', 'Galadriel', 'Boromir', 'other'],
'lastname': [
'Baggins', 'Gorn', None, None, None,
'Baggins', None, None, None, None, 'Other'
],
'date': pd.Series(pd.date_range(start=datetime.today(), periods=11)).dt.date
}))