Skip to content

Commit 2e23b27

Browse files
bugfix
* ensure that pandas empty values are read as empty string, rather than a float Co-authored-by: Boris Power <[email protected]>
1 parent 7ddcba1 commit 2e23b27

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

openai/validators.py

+2
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ def read_any_format(fname):
480480
)
481481
else:
482482
error_msg += f" Your file `{fname}` does not appear to have a file ending. Please ensure your filename ends with one of the supported file endings."
483+
else:
484+
df.fillna("", inplace=True)
483485
else:
484486
error_msg = f"File {fname} does not exist."
485487

openai/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "0.9.0"
1+
VERSION = "0.9.1"

0 commit comments

Comments
 (0)