From d6fb598f7e53d204a2ba8ca880f91a61aa59e3b1 Mon Sep 17 00:00:00 2001 From: Boris Power <81998504+BorisPower@users.noreply.github.com> Date: Wed, 30 Jun 2021 02:05:01 +0100 Subject: [PATCH] ensure that pandas empty values are read as empty string, rather than a float (#42) * ensure that pandas empty values are read as empty string, rather than a float --- openai/validators.py | 2 ++ openai/version.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openai/validators.py b/openai/validators.py index ce34e2d76a..7e8a691344 100644 --- a/openai/validators.py +++ b/openai/validators.py @@ -480,6 +480,8 @@ def read_any_format(fname): ) else: 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." + else: + df.fillna("", inplace=True) else: error_msg = f"File {fname} does not exist." diff --git a/openai/version.py b/openai/version.py index 976684abd7..3efa2fa44e 100644 --- a/openai/version.py +++ b/openai/version.py @@ -1 +1 @@ -VERSION = "0.9.0" +VERSION = "0.9.1"