Commit 2656b040 authored by Cyril Monmouton's avatar Cyril Monmouton
Browse files

Transform list to generator + use correctly df.columns instead of values' type

parent 44a1e5f8
......@@ -49,7 +49,7 @@ BULK_URI_FIELD = "bulkURI"
def _check_df_columns_type(df: pd.DataFrame):
if any([type(t) is not str for t in df.dtypes]):
if any((type(t) is not str for t in df.columns)):
raise HTTPException(status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
detail=f'All columns type should be string')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment