Skip to content
Snippets Groups Projects
Commit 6c08b2d2 authored by Guido Sterbini's avatar Guido Sterbini
Browse files

Few typos

parent 1fb270e2
No related branches found
No related tags found
No related merge requests found
Pipeline #2592215 failed
......@@ -243,7 +243,7 @@ def pyarrow_to_dict(input_pa):
def dict_to_pandas(input_dict):
if not isinstance(input_dict, list):
input_dict = [input_dict]
return = pd.DataFrame(input_dict)
return pd.DataFrame(input_dict)
def dict_to_awkward(input_dict):
return ak.from_arrow(dict_to_pyarrow(input_dict))
......@@ -262,7 +262,8 @@ def dict_to_json(input_dict, filename):
Function provided for convenience, but not of interest for typical use case...
'''
dict_to_pandas(input_dict).to_json(filename+'.json')
def json_to_pandas(filename)
def json_to_pandas(filename):
'''
Function provided for convenience, but not of interest for typical use case...
'''
......@@ -278,7 +279,7 @@ def awkward_to_dict(input_awkward, row_index=0):
'''
it converts the specified row of an awkward array into a pyjapcscout-like dict
'''
return = convert_parrow_data(ak.to_arrow(input_awkward)[row_index])
return convert_parrow_data(ak.to_arrow(input_awkward)[row_index])
def pickle_to_dict(filename):
with open(filename, 'rb') as handle:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment