Re: Converting images to PDF. Final file has blank pages before and after.

2020-12-03 Thread MRAB
On 2020-12-03 03:32, Michael Baca wrote: On Monday, November 30, 2020 at 7:15:37 PM UTC-7, MRAB wrote: On 2020-12-01 01:20, Michael Baca wrote: > Hello, new to the group, rather new to programming. > > I'm writing a program that takes images and converts them into PDF's. It works after quite a

Unable to read .xlsx file using pandas

2020-12-03 Thread A. M. Thomas [PETech MIET MBA]
Kindly help manage read .xlsx files using pandas, thank you import numpy as np import pandas as pd from pandas import Series, DataFrame excelfile = pd.ExcelFile('C:\Users\THOMAS\Documents/Hash Analytics Internship - DemoS2.xlsx') dframe = excelfile.parse('Sheet10') print (dframe) C:\Users\THOMA

Re: Unable to read .xlsx file using pandas

2020-12-03 Thread MRAB
On 2020-12-03 12:13, A. M. Thomas [PETech MIET MBA] wrote: Kindly help manage read .xlsx files using pandas, thank you import numpy as np import pandas as pd from pandas import Series, DataFrame excelfile = pd.ExcelFile('C:\Users\THOMAS\Documents/Hash Analytics Internship - DemoS2.xlsx') dframe

Observing long running processes of Jupyter Notebook

2020-12-03 Thread Shaozhong SHI
We have been running Jupyter Notebook processes, which take long time to run. We use nbconvert to run these in commandline. Nbconvert only writes output into a file at the end. We just wonder whether there is a way to observe the progress and printing messages when nbconvert is running. Regards

Re: Observing long running processes of Jupyter Notebook

2020-12-03 Thread Marco Sulla
On Thu, 3 Dec 2020 at 14:12, Shaozhong SHI wrote: > > We have been running Jupyter Notebook processes, which take long time to > run. > > We use nbconvert to run these in commandline. Nbconvert only writes output > into a file at the end. > > We just wonder whether there is a way to observe the p

help(list[int]) → TypeError

2020-12-03 Thread Paul Bryan
Is this the correct behavior? Python 3.9.0 (default, Oct 7 2020, 23:09:01) [GCC 10.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> help(list[int]) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.9/_sitebuiltins.py", line

list[type, type, ...] ?!

2020-12-03 Thread Paul Bryan
Using the typing.List generic alias, I can only specify a single type. Example: >>> typing.List[int] typing.List[int] When I try to specify additional types, it fails. Example: >>> typing.List[int, int] Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.9/typing.p

Re: list[type, type, ...] ?!

2020-12-03 Thread Greg Ewing
On 3/12/20 7:37 pm, Paul Bryan wrote: list[int, int] list[int, int] In fact, it appears I can specify an indeterminate number of types. I think the built-in generic alias just provides the minimum necessary to be able to write sometype[arg, ...]. It doesn't know anything about the semantics w

Re: list[type, type, ...] ?!

2020-12-03 Thread Greg Ewing
On 4/12/20 12:31 pm, Paul Bryan wrote: Would it make sense for list's __class_getitem__ (GenericAlias?) to perform similar checking as typing._SpecialGenericAlias (nparams)? Maybe. It's a slippery slope -- how much of the typing module do we want to drag into the core of the interpreter? -- G

Re: list[type, type, ...] ?!

2020-12-03 Thread Paul Bryan
Thanks, Greg. Would it make sense for list's __class_getitem__ (GenericAlias?) to perform similar checking as typing._SpecialGenericAlias (nparams)? On Fri, 2020-12-04 at 12:15 +1300, Greg Ewing wrote: > On 3/12/20 7:37 pm, Paul Bryan wrote: > > > > > list[int, int] > > list[int, int] > > > > In