pandarallel_apply crashes with OverflowError: int too big to convert
See original GitHub issueHi everyone,
I am getting this error here using parallel_apply in pandas:
File "extract_specifications.py", line 156, in <module>
extracted_data = df.parallel_apply(extract_raw_infos, axis=1)
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/pandarallel.py", line 367, in closure
kwargs,
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/pandarallel.py", line 239, in get_workers_args
zip(input_files, output_files, chunk_lengths)
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/pandarallel.py", line 238, in <listcomp>
for index, (input_file, output_file, chunk_length) in enumerate(
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/pandarallel.py", line 169, in wrapper
time=time,
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/utils/inliner.py", line 34, in wrapper
return function(*args, **kwargs)
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/utils/inliner.py", line 464, in inline
func_instructions, len(b"".join(pinned_pre_func_instructions_without_return))
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/utils/inliner.py", line 34, in wrapper
return function(*args, **kwargs)
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/utils/inliner.py", line 314, in shift_instructions
for instruction in instructions
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/utils/inliner.py", line 314, in <genexpr>
for instruction in instructions
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/utils/inliner.py", line 34, in wrapper
return function(*args, **kwargs)
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/utils/inliner.py", line 293, in shift_instruction
return bytes((operation,)) + int2python_bytes(python_ints2int(values) + qty)
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/utils/inliner.py", line 34, in wrapper
return function(*args, **kwargs)
File "/home/tom/.local/lib/python3.6/site-packages/pandarallel/utils/inliner.py", line 71, in int2python_bytes
return int.to_bytes(item, nb_bytes, "little")
OverflowError: int too big to convert
I am using
pandarallel == 1.4.2
pandas == 0.24.2
python == 3.6.9
Any idea how to proceed from here? I have basically no idea what could cause this bug. I suspect it might be related to the size of the data I have in one column (I save html from web pages in there). But otherwise no idea. I would help removing this bug(?) if I had some guidance here. Thx for helping.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:23
- Comments:21 (4 by maintainers)
Top Results From Across the Web
int too big to convert when formatting date on pandas series ...
I'm trying to plot a pandas series, but I'm encountering an error when I attempt to format the x-axis date. (A related issue...
Read more >OverflowError: int too big to convert : r/learnpython - Reddit
The error occurs because you can't represent a number bigger than 25565 using two bytes. In your case you'd need at least 8....
Read more >[Solved] OverflowError: Python int too large to convert to C long
OverflowError: Python int too large to convert to C long error occurs when data type value storage exceeds the range.
Read more >pandarallel_apply crashes with OverflowError: int too big to ...
Hi everyone,. I am getting this error here using parallel_apply in pandas: File "extract_specifications.py", line 156, ...
Read more >terms.teach: OverflowError: Python int too large to convert to ...
OverflowError : Python int too large to convert to SQLite INTEGER. image. I get this error if I feed in more than 1...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
same here, any way to make it work with progress bar?
Same error also. It woud be nice to have the progress bar.