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

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.egg-info

Diff for: dist/plotly-0.5.6.tar.gz

2.91 KB
Binary file not shown.

Diff for: plotly/plotly.py

+2-2
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

Diff for: plotly/version.py

+2-1
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)