Skip to content

Commit

Permalink
fix #1012
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Oct 26, 2017
1 parent 2b20569 commit 36f4c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/lightgbm/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def _label_from_pandas(label):

def _save_pandas_categorical(file_name, pandas_categorical):
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):
Expand Down

1 comment on commit 36f4c13

@wxchan
Copy link
Contributor

@wxchan wxchan commented on 36f4c13 Oct 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_load_pandas_categorical is using last line, it need changed too.

Please sign in to comment.