from dios import * import numpy as np if __name__ == '__main__': # dios_options[OptsFields.mixed_itype_policy] = 'error' # df = pd.DataFrame([1,24,5,456,45], index=pd.date_range(periods=5, freq='1y', start='2000-01-01')) # df[[True, False]] df1 = pd.DataFrame(dict(a=range(5), b=range(0,50,10))) df2 = pd.DataFrame(dict(b=[99], a=[888732727]), index=range(3,8)) d1 = DictOfSeries(df1) d2 = DictOfSeries(df2) df1.to_string() d = DictOfSeries(dict(a=[1,2], b=[12,38,32,32,323], ss=[2,23,3,2,3,], z=pd.Series([1,2,3], index=list("abc")))) print(d, type(d)) d = d.loc[:,:] print(d, type(d)) a = d.loc[:,'a'] print(a, type(a)) x = d.loc[1,['a', 'ss', 'z']] print(x, type(x))