@prem raj :
Based on the error message, it seems that the input date format is not compatible with the model for inference. The error message suggests that the input date format is timezone-aware, while the model expects a timezone-naive format.
To fix this issue, you can try converting the input date to a timezone-naive format before sending it to the REST endpoint. You can use the tz_localize and tz_convert methods from the pandas library to perform this conversion. Here's an example of how you can modify your input JSON request:
{
"dataframe_split": {
"columns": [
"DATE",
"TYPE"
],
"data": [
[
"1973-12-02T00:00:00.000Z", // convert to UTC timezone
"RadioActive"
]
]
}
}
Note that the date string has been modified to include a timezone offset of Z, which indicates UTC timezone. You can also remove the timezone information altogether, and convert the date string to a timezone-naive format using the tz_localize method:
{
"dataframe_split": {
"columns": [
"DATE",
"TYPE"
],
"data": [
[
"1973-12-02 00:00:00", // remove timezone information
"RadioActive"
]
]
}
}
You can also modify the model code to handle timezone-aware dates, but that would require changes to the code and may not be feasible depending on your use case.