문제

in pandas tutorial, they use

http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/Chapter%202%20-%20Selecting%20data%20&%20finding%20the%20most%20common%20complaint%20type.ipynb

figsize(15,5) 

I assume this adjust the size of the figures. But where is this function imported from ?

I am just curious about this use, Normally, I use:

plt.rcParams['figure.figsize'] = 16, 12

Thanks

도움이 되었습니까?

해결책

That notebook was probably written for an IPython ran with the --pylab option, that imports figsize from IPython.core.pylabtools.

It's not a good practice to use it, though, as it imports tons of stuff you don't necessarily use and also may clobber some other variables.

Read more:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top