print(ua_df)
# show
ID      classification  years   Gender
347     member          070     female
597     member          050     male
s2 = sys.getsizeof(ua_df)
print(s2)
# 6974117328 [is 6.5G]
# Original file size:842.1M
# The memory size is not equal to the original file
print(uad_dff)
# show
ID  shopCD  distance
727     27      40.22
942     27      30.76
Under the same conditions
s3 = sys.getsizeof(uad_dff)
print(s3)
# 12483776 [is 11.9M]
# Original file size:11.9M
# Equal to the memory size of the original file
Why is the memory of original file much smaller than that of read data, There is no difference in the second example, can anyone tell me why? Thank you very much!
 
    