Re: "min( arg1, arg2, *args )" vs. "print( value, ... )"?

2020-04-07 Thread Luuk
On 6-4-2020 22:57, Stefan Ram wrote: The documentation ("help" under CPython 3.9) for "min" reads (simplified): min( arg1, arg2, *args ) , for "print" it reads (simplified): print( value, ... ). The caller can place an arbitrary number of arguments at the place of "value, ..."

Re: kill a window

2020-04-07 Thread Terry Reedy
On 4/7/2020 12:37 PM, J Conrado wrote: plt,close(1) You must have meant 'plt.close(1)', with a period. and to kil the window I have to click on the "X" in the top my window. What can I do to kil the window and plot other windows in squence. You code omits the definition of 'plt', so I won

Re: kill a window

2020-04-07 Thread DL Neil via Python-list
On 8/04/20 4:37 AM, J Conrado wrote: ... plt.title("RegiĆ£o a Ser Setorizada") plt.show() plt,close(1) and to kil the window I have to click on the "X" in the top my window. What can I do to kil the window and plot other windows in squence. Ola, perhaps use dotted-notation: plt.close( 1

Re: kill a window

2020-04-07 Thread Souvik Dutta
Are you doing it in tkinter? If so then close will be quit. Souvik flutter dev On Wed, Apr 8, 2020, 1:22 AM J Conrado wrote: > > > Hi, > > I have a script that read a netcdf data. I enter with keiboard two > values for latitude initial an final and same for longitude and I plot a > map. I use t

kill a window

2020-04-07 Thread J Conrado
Hi, I have a script that read a netcdf data. I enter with keiboard two values for latitude initial an final and same for longitude and I plot a map. I use the command plt.close(1) to kill the window. But, my window is not closed. This is a small par o my script: m = Basemap(llcrnrlon=loni

Re: print small DataFrame to STDOUT and read it back into dataframe

2020-04-07 Thread Luca
On 4/6/2020 11:05 PM, Luca wrote: On 4/6/2020 8:51 PM, Reto wrote: out = df.to_csv(None) new = pd.read_csv(io.StringIO(out), index_col=0) Thank you, brother. It works BTW, a little gotcha (I write this in case someone gets here in the future through Google or something) """ import pandas