Skip to content

Commit

Permalink
fix dtype-str concatenation bug in empty() (#902)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Durant <[email protected]>
  • Loading branch information
cshaley and martindurant authored Nov 17, 2023
1 parent 9d7ee90 commit cea4afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastparquet/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def cat(col):
# funky pandas not-dtype
t = t.base
if ("M" in str(t) or "time" in str(t)) and "[" not in str(t):
t = t + "[ns]"
t = str(t) + "[ns]"
d = np.empty(0, dtype=t)
if d.dtype.kind == "M" and str(col) in timezones:
try:
Expand Down

0 comments on commit cea4afe

Please sign in to comment.