You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 2, 2024. It is now read-only.
HPAT unable to handle non-existent dataframe index name. #132
HPAT crashes if it gets a Pandas dataframe with non-existent dataframe index. Many users create ones without such indexes (as is shown in Pandas docs), so it would be useful to fix this bug.
@akharche perhaps the changes to indexing made this behavior happen?
import pandas as pd
import numpy as np
import hpat
df = pd.DataFrame({'0':[100,200,300,400,200,100]})
df2 = pd.DataFrame([100,200,300,400,200,100])
df3 = pd.DataFrame({'A':[100,200,300,400,200,100]})
@hpat.jit
def test_func(data_frame):
return data_frame
test_func(df) # works with warnings
test_func(df2) # fails and crashes kernel
test_func(df3) # works with warnings
HPAT crashes if it gets a Pandas dataframe with non-existent dataframe index. Many users create ones without such indexes (as is shown in Pandas docs), so it would be useful to fix this bug.
@akharche perhaps the changes to indexing made this behavior happen?