Skip to content

Commit

Permalink
Merge pull request #609 from dinal/v0.8.x
Browse files Browse the repository at this point in the history
passing list (instead of RepeatedScalarContainer) to pandas Series (#…
  • Loading branch information
dinal authored Jul 12, 2021
2 parents a6ed81d + ae68d93 commit 96f74ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clients/py/v3io_frames/pbutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,16 @@ def msg2df(frame, frame_factory, columns=None, do_reorder=True):
def col2series(col, index):
current_dtype = ""
if col.dtype == fpb.BOOLEAN:
data = col.bools
data = list(col.bools)
current_dtype = "bool"
elif col.dtype == fpb.FLOAT:
data = col.floats
data = list(col.floats)
current_dtype = "float"
elif col.dtype == fpb.INTEGER:
data = col.ints
data = list(col.ints)
current_dtype = "int"
elif col.dtype == fpb.STRING:
data = col.strings
data = list(col.strings)
current_dtype = "object"
elif col.dtype == fpb.TIME:
data = [pd.Timestamp(t, unit='ns') for t in col.times]
Expand Down

0 comments on commit 96f74ca

Please sign in to comment.