googledatalab / datalab

Interactive tools and developer experiences for Big Data on Google Cloud Platform.
Apache License 2.0
975 stars 249 forks source link

chart fields produce: 'NoneType' object has no attribute 'mode' error #2118

Open tbbooher opened 5 years ago

tbbooher commented 5 years ago

try to execute:

%%chart line --fields foo,bar,baz --data data
title: 'Expenses'
curveType: 'function'
legend:
  position: 'bottom'

Result is:

'NoneType' object has no attribute 'mode'

In general, the documentation on charts is missing. For example, the format for the --data is challenging to figure out. Sometimes dataframes work natively, other times you have to do python manipulation.