Dear xlSlim supports,
I hope this email finds you well.
I am a new user of your product and is exploring the functionalities. May I know if you have answers/solutions to the following points please ?
, rather than the more natural format of . Is there a way to achieve the later please?
def echo_list_of_lists(int_list_of_lists: List[List[int]]) -> List[List[int]]:
return int_list_of_lists
Thank you very much.
Regards,
Peihong
Classification: Internal - ADIA Only
Thank you for your reply to my last email on your website. I just replied with follow up questions there. Please check. Thank you.
I have more questions here:
It does support python time – however it returns a handle of the time object, and when I display the handle view , it shows the following, which is not reusable immediately
Excel has direct support of type Time, would you consider supporting this in future releases please?
Code:
def get_length_of_optional_list_of_datetime(list_of_dts: Optional[List[datetime]] = None) -> int:
if not list_of_dts:
return 0
else:
return len(list_of_dts)
Same error if the type is an optional list of user defined types.
Code:
def df_datetime_mixing_NaT() -> pd.DataFrame:
col1 = ['a', 'b', 'c']
col2 = [datetime(2021, 1, 1), datetime(2022, 1, 1), pd.NaT]
return pd.DataFrame(zip(col1, col2), columns=['col1', 'col2'])
i. None is treated as 0 when it is in a column of type int/bool
ii. None is treated as 2.6965E+308 when it is in a column of type int/float
Code:
def df_primitive_types_mixing_None() -> pd.DataFrame:
strs = ['a', 'b', None] # None displayed as 0
ints = [1, 2, None] # None displayed as 2.6965E+308
floats = [1.1, 2.2, None] # None displayed as 2.6965E+308
bools = [True, False, None] # None displayed as 0
return pd.DataFrame(zip(strs, ints, floats, bools), columns=['str', 'int', 'float', 'bool'])
Code:
def df_datetime_with_mixed_types() -> pd.DataFrame:
col1 = ['abc', 1.2, 1, True, datetime(2027,1,1), float('nan'), None]
return pd.DataFrame(col1, columns=['mixed_types'], index = ['str', 'float', 'int', 'bool', 'datetime', 'nan', 'None'])
Regards,
Peihong
Classification: Internal - ADIA Only
Dear xlSlim supports,
I hope this email finds you well.
I am a new user of your product and is exploring the functionalities. May I know if you have answers/solutions to the following points please ?
, rather than the more natural format of . Is there a way to achieve the later please?
def echo_list_of_lists(int_list_of_lists: List[List[int]]) -> List[List[int]]:
return int_list_of_lists
Thank you very much.
Regards,
Peihong
--
You received this message because you are subscribed to the Google Groups "xlSlim Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xlslim-suppor...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/xlslim-support/6f875cc0-6ec9-457c-b350-7774f594e3e5n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "xlSlim Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xlslim-suppor...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/xlslim-support/DU0PR01MB907130993DAE74BF570EB3A58F36A%40DU0PR01MB9071.eurprd01.prod.exchangelabs.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/xlslim-support/bbaf334c-b1eb-4eb9-9911-964de362cf87n%40googlegroups.com.