My prophet model is running on test server. But the same model take error in production server. I used Python 3.7.6 and prophet libray is 0.6 version. Other libraries are the same version. But I take an this error in production.
Fatal Python error: Segmentation fault
Current thread 0x00007f5425728740 (most recent call first):
File "/vhosting/anaconda3/lib/python3.7/site-packages/pandas/core/indexers.py", line 211 in maybe_convert_indices
File "/vhosting/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 1386 in take
File "/vhosting/anaconda3/lib/python3.7/site-packages/pandas/core/frame.py", line 4937 in sort_values
File "/vhosting/GBYATANOMALY/scripts/GBYATANOMALY.py", line 109 in pre_processing
File "/vhosting/GBYATANOMALY/scripts/GBYATANOMALY.py", line 318 in <module>
There is no problem in data. It is running with production data on development server.
pre_processing function is below.
def pre_processing(df_upd):
df_notnull = df_upd
df_notnull['TIME'] = pd.to_datetime(df_notnull['TIME_X'], format='%Y-%m-%d %H:%M:%S.%f')
df_dt = df_notnull[['TIME', 'DIMENSION', 'TARGET']]
df_dt['TARGET'] = df_dt['TARGET'].astype('float32')
df_dt.sort_values(by='TIME', ascending=True, inplace=True)
df_dt = df_dt[df_dt['TARGET'] == df_dt.groupby(['TIME', 'DIMENSION'])['TARGET'].transform(max)]
return df_dt