Thanks Dan and Xander
Sorry for my impolite > Dan
Xander's code worked well and the code below also worked ...
arcpy.CalculateField_management(in_table="C:/Work01/scratch_00.gdb/tmp_table",
field="test",
expression="[COUNT]",
expression_type="VB")
But, only this code doesn't work. Of course, it works well for other tables.
(I done it manually for the one that worked(Only changed table name) and copied the python snippet from the results window.)
arcpy.CalculateField_management(in_table="C:/Work01/scratch_00.gdb/tmp_table",
field="test",
expression="!COUNT!",
expression_type="PYTHON_9.3")
tmp_table:
OID | Value | COUNT | SUM | test |
-1 | 6 | 5E+08 | 1.61E+09 |
For example, this code works well (copied the python snippet from the results window).
arcpy.CalculateField_management(in_table="C:/Work01/scratch_00.gdb/tmp_table2",
field="test",
expression="!COUNT!",
expression_type="PYTHON_9.3")
tmp_table2:
OID | Value | COUNT | SUM | test |
-1 | 6 | 5.1E+08 | 1.61E+09 |
Thanks again Dan and Xander