Skip to content

OverflowError when calculating average response time per tag #13

@Hk-tang

Description

@Hk-tang

This stack trace shows an Overflow error when calculating average response time per tag.

src/main.py:89: DtypeWarning: Columns (0) have mixed types. Specify dtype option on import or set low_memory=False.
  full(arg_clean, arg_filter_user, arg_naive)
Traceback (most recent call last):
  File "src/main.py", line 94, in <module>
    main()
  File "src/main.py", line 89, in main
    full(arg_clean, arg_filter_user, arg_naive)
  File "src/main.py", line 56, in full
    stats()
  File "src/main.py", line 62, in stats
    generate_result_stats()
  File "/local/NVMe2/home/hktang/projects/java/src/generate.py", line 85, in generate_result_stats
    sum(tag_dict[tag]["response_times"], datetime.timedelta(0)) / len(tag_dict[tag]["response_times"])
  File "pandas/_libs/tslibs/timedeltas.pyx", line 616, in pandas._libs.tslibs.timedeltas._binary_op_method_timedeltalike.f
  File "pandas/_libs/tslibs/timedeltas.pyx", line 1193, in pandas._libs.tslibs.timedeltas.Timedelta.__new__
  File "pandas/_libs/tslibs/timedeltas.pyx", line 184, in pandas._libs.tslibs.timedeltas.convert_to_timedelta64
  File "pandas/_libs/tslibs/timedeltas.pyx", line 308, in pandas._libs.tslibs.timedeltas.cast_from_unit
OverflowError: Python int too large to convert to C long

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions