pandas - Cleveland's dotplot using Python ggplot -
i new ggplot. try create dotplot in fashion.
https://stackoverflow.com/a/20621581/229075
i don't have luck far. trial below
df=dataframe({'label':['a','b','c'],'value':[7,2,4]}) ggplot(aes(x="value",y="label"),df) + geom_point()
gives me error
c:\anaconda\lib\site-packages\numpy\core\numeric.pyc in asanyarray(a, dtype, order) 510 511 """ --> 512 return array(a, dtype, copy=false, order=order, subok=true) 513 514 def ascontiguousarray(a, dtype=none): valueerror: not convert string float:
i've lookup number of docs on r's ggplot. have trouble using construct such as
stat="identity" coord_flip() geom_bar(weight=?)
are these not yet implemented?
i have python ggplot version 0.5.0.
Comments
Post a Comment