In [1]:
%matplotlib inline
from IPython.display import display
import pandas as pd
Conversion of the Data into OxCal-usable Form
In [6]:
df = pd.read_csv("https://raw.githubusercontent.com/dirkseidensticker/aDRAC/master/data/aDRAC.csv", encoding='utf8')
display(df.head())
Choosing only the first five entries as subsample:
In [3]:
df_sub = df.head()
Out[3]:
OxCal-compliant output:
In [5]:
print('''Plot()
{''')
for index, row in df_sub.iterrows():
print('R_Date("', row['SITE'],'/', row['FEATURE'], '-', row['LABNR'],'",', row['C14AGE'],',', row['C14STD'],');')
print('};')
In [ ]: