Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
AnhTruong committed Jul 19, 2021
1 parent 10a5450 commit 0cb1cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataprofiler/profilers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def get_memory_size(data, unit='M'):
if unit not in unit_map:
raise ValueError('Currently only supports the '
'memory size unit in {}'.format(list(unit_map.keys())))
memory_size = 0
memory_size = 0
for sentence in data:
memory_size += len(sentence.encode('utf-8'))
memory_size /= 1024.0 ** unit_map[unit] # Conversion based on unit_map
Expand Down

0 comments on commit 0cb1cb9

Please sign in to comment.