#NEWLINE# def hist( self , bins = 10 , **kwargs ) : #NEWLINE# #INDENT# '\n        Render histogram with given `bins`.\n\n        Parameters\n        ----------\n        bins: int, default 10\n        ' #NEWLINE# self . marktype = 'bar' #NEWLINE# config = Config ( ) #NEWLINE# config . Y . type = 'Q' #NEWLINE# config . Y . aggregate = 'count' #NEWLINE# self . encoding = Encoding ( config = config , y = '' , ** self ) #NEWLINE# if isinstance ( kwargs . get ( 'x' ) , str ) : #NEWLINE# #INDENT# self . encoding . x . bin = Bin ( maxbins = bins ) #NEWLINE# #UNINDENT# self . encoding . y . name = self . encoding . x . name #NEWLINE# return self