name                 type          date                               condition                ownership
0    borthwick castle          tower house          1430                                occupied                  private
1     crichton castle     courtyard castle  14th century                               preserved        historic scotland
2    dalhousie castle       historic house  16th century                                occupied                  private
3     dalkeith palace       historic house  18th century                                occupied        duke of buccleuch
4  hawthornden castle          tower house  17th century                                occupied                  private
5     melville castle  castellated mansion  18th century                                restored                  private
6     newbattle abbey      fortified house  17th century                                 altered  newbattle abbey college
7       roslin castle        keep & ranges  14th century  keep is a ruin , later ranges occupied          earl of rosslyn

Table as JSON:
{"name":{"0":"borthwick castle","1":"crichton castle","2":"dalhousie castle","3":"dalkeith palace","4":"hawthornden castle","5":"melville castle","6":"newbattle abbey","7":"roslin castle"},"type":{"0":"tower house","1":"courtyard castle","2":"historic house","3":"historic house","4":"tower house","5":"castellated mansion","6":"fortified house","7":"keep & ranges"},"date":{"0":"1430","1":"14th century","2":"16th century","3":"18th century","4":"17th century","5":"18th century","6":"17th century","7":"14th century"},"condition":{"0":"occupied","1":"preserved","2":"occupied","3":"occupied","4":"occupied","5":"restored","6":"altered","7":"keep is a ruin , later ranges occupied"},"ownership":{"0":"private","1":"historic scotland","2":"private","3":"duke of buccleuch","4":"private","5":"private","6":"newbattle abbey college","7":"earl of rosslyn"}}