Hi,Blogger,I wish to consult you on a few questions.
First, I want to the name above 8 characters, and labels above 40 characters. Can I do it?
Second, if I want to let the label variable become chinese, for example : xport.Dataset(df, name='MAX8CHRS', label='我我我'), what can I do to achieve it. By the way, I find in xport=3.2.1and pandas=1.0.3 the label is a description for dataset, however, in xport=3.5.0 and pandas=1.3.5 the label add every column.
I want to achieve as follow:
Third, I want to add labels for every column, I find I can use as below:
for k, v in ds.items():
v.label = k.title()
if v.dtype == 'object':
v.format = '$CHAR20.'
else:
v.format = '10.2'
however, I find v.label only is English characters, I want to let it become Chinese characters, for example:
for k, v in ds.items():
v.label = "您您您"
if v.dtype == 'object':
v.format = '$CHAR20.'
else:
v.format = '10.2'
the result picture as follow:
Now,I am use xport=3.2.1and pandas=1.0.3 and write use xport.v56.dump(ds, f)
Please help me ! Thank you very much!
Because I am a Chinese developer, my English is poor, so there may be errors in the expression. Please forgive me.
Hi,Blogger,I wish to consult you on a few questions. First, I want to the name above 8 characters, and labels above 40 characters. Can I do it? Second, if I want to let the label variable become chinese, for example : xport.Dataset(df, name='MAX8CHRS', label='我我我'), what can I do to achieve it. By the way, I find in xport=3.2.1and pandas=1.0.3 the label is a description for dataset, however, in xport=3.5.0 and pandas=1.3.5 the label add every column. I want to achieve as follow:
Third, I want to add labels for every column, I find I can use as below: for k, v in ds.items(): v.label = k.title() if v.dtype == 'object': v.format = '$CHAR20.' else: v.format = '10.2'
however, I find v.label only is English characters, I want to let it become Chinese characters, for example: for k, v in ds.items(): v.label = "您您您" if v.dtype == 'object': v.format = '$CHAR20.' else: v.format = '10.2' the result picture as follow:
Now,I am use xport=3.2.1and pandas=1.0.3 and write use xport.v56.dump(ds, f) Please help me ! Thank you very much!
Because I am a Chinese developer, my English is poor, so there may be errors in the expression. Please forgive me.