Here are some details:
NebulaGraph version is v3.4.0 and the cluster includes 3 machines.
My problem is that how to convert data read by Python to the dataframe format?
def result_to_df(result: ResultSet) -> pd.DataFrame:
"""
build list for each column, and transform to dataframe
"""
assert result.is_succeeded()
columns = result.keys()
d: Dict[str, list] = {}
for col_num in range(result.col_size()):
col_name = columns[col_num]
col_list = result.column_values(col_name)
d[col_name] = [x.cast() for x in col_list]
return pd.DataFrame.from_dict(d, columns=columns)
I tried the function result_to_df of ResultSet, but it does not work.