mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-11 09:14:39 +02:00
Add hre.csv to this repo directly
This commit is contained in:
1
hre.csv
Normal file
1
hre.csv
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Ix,Dynasty,Name,Birth,Death,Coronation 1,Coronation 2,Ceased to be Emperor
|
|
@@ -146,7 +146,7 @@ ggplot(aes(x="age",y="weight"), data=pets) + geom_point() + labs(title="pets")
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# load some data on Holy Roman Emperors
|
# load some data on Holy Roman Emperors
|
||||||
url = "https://raw.githubusercontent.com/e99n09/R-notes/master/data/hre.csv"
|
url = "https://raw.githubusercontent.com/adambard/learnxinyminutes-docs/master/hre.csv"
|
||||||
r = requests.get(url)
|
r = requests.get(url)
|
||||||
fp = "hre.csv"
|
fp = "hre.csv"
|
||||||
with open(fp, "wb") as f:
|
with open(fp, "wb") as f:
|
||||||
@@ -156,26 +156,19 @@ hre = pd.read_csv(fp)
|
|||||||
|
|
||||||
hre.head()
|
hre.head()
|
||||||
"""
|
"""
|
||||||
Ix Dynasty Name Birth Death Election 1
|
Ix Dynasty Name Birth Death
|
||||||
0 NaN Carolingian Charles I 2 April 742 28 January 814 NaN
|
0 NaN Carolingian Charles I 2 April 742 28 January 814
|
||||||
1 NaN Carolingian Louis I 778 20 June 840 NaN
|
1 NaN Carolingian Louis I 778 20 June 840
|
||||||
2 NaN Carolingian Lothair I 795 29 September 855 NaN
|
2 NaN Carolingian Lothair I 795 29 September 855
|
||||||
3 NaN Carolingian Louis II 825 12 August 875 NaN
|
3 NaN Carolingian Louis II 825 12 August 875
|
||||||
4 NaN Carolingian Charles II 13 June 823 6 October 877 NaN
|
4 NaN Carolingian Charles II 13 June 823 6 October 877
|
||||||
|
|
||||||
Election 2 Coronation 1 Coronation 2 Ceased to be Emperor
|
Coronation 1 Coronation 2 Ceased to be Emperor
|
||||||
0 NaN 25 December 800 NaN 28 January 814
|
0 25 December 800 NaN 28 January 814
|
||||||
1 NaN 11 September 813 5 October 816 20 June 840
|
1 11 September 813 5 October 816 20 June 840
|
||||||
2 NaN 5 April 823 NaN 29 September 855
|
2 5 April 823 NaN 29 September 855
|
||||||
3 NaN Easter 850 18 May 872 12 August 875
|
3 Easter 850 18 May 872 12 August 875
|
||||||
4 NaN 29 December 875 NaN 6 October 877
|
4 29 December 875 NaN 6 October 877
|
||||||
|
|
||||||
Descent from whom 1 Descent how 1 Descent from whom 2 Descent how 2
|
|
||||||
0 NaN NaN NaN NaN
|
|
||||||
1 Charles I son NaN NaN
|
|
||||||
2 Louis I son NaN NaN
|
|
||||||
3 Lothair I son NaN NaN
|
|
||||||
4 Louis I son NaN NaN
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# clean the Birth and Death columns
|
# clean the Birth and Death columns
|
||||||
|
Reference in New Issue
Block a user