Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eefa824

Browse files
committed
pandas series support
1 parent 1a1b52a commit eefa824

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.egg-info

dist/plotly-0.5.6.tar.gz

2.91 KB
Binary file not shown.

plotly/plotly.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ def datetimeJSONEncoder(self, obj):
164164
def pandasJSONEncoder(self, obj):
165165
try:
166166
import pandas
167-
if isinstance(obj, pandas.DataFrame):
168-
return obj.to_json()
167+
if isinstance(obj, pandas.Series):
168+
return obj.tolist()
169169
except:
170170
pass
171171
return None

plotly/version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
__version__ = '0.5.5'
1+
2+
__version__ = '0.5.6'

0 commit comments

Comments
 (0)