import random
import pandas as pd
import numpy as np
heart_rate = [random.randrange(45,125) for _ in range(100)]
blood_pressure_systolic = [random.randrange(140,230) for _ in range(100)]
blood_pressure_dyastolic = [random.randrange(90,140) for _ in range(100)]
temperature = [random.randrange(34,42) for _ in range(100)]
respiratory_rate = [random.randrange(8,35) for _ in range(100)]
pulse_oximetry = [random.randrange(95,100) for _ in range(100)]
vitalsign = {'HR' : 'heart_rate',
'BPS' : 'blood_pressure_systolic',
'BPD' : 'blood_pressure_dyastolic',
'T' : 'temperature',
'RR' : 'respiratory_rate',
'PO' : 'pulse_oximetry'}
pd.DataFrame(vitalsign)
我想要一个像这样的输出
heart blood pulse temp
5.1 3.5 1.4 0.2
4.9 3 1.4 0.2
答案 0 :(得分:0)
你几乎就在那里。你想要的是:
neo4j-2.2.9/data/graph.db
将此转换为.csv:
neo4j-3.0.3/data/databases/graph.db