"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "5f5c61f31806dcdd2ef87f7d8a7420c7bfdfe369"
Commit 36f4c13e authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

fix #1012

parent 2b20569e
...@@ -277,7 +277,7 @@ def _label_from_pandas(label): ...@@ -277,7 +277,7 @@ def _label_from_pandas(label):
def _save_pandas_categorical(file_name, pandas_categorical): def _save_pandas_categorical(file_name, pandas_categorical):
with open(file_name, 'a') as f: with open(file_name, 'a') as f:
f.write('\npandas_categorical:' + json.dumps(pandas_categorical, default=json_default_with_numpy)) f.write('\npandas_categorical:' + json.dumps(pandas_categorical, default=json_default_with_numpy) + '\n')
def _load_pandas_categorical(file_name): def _load_pandas_categorical(file_name):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment