Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fixed worker not having pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorrento110 committed Jul 13, 2023
1 parent 2a1a4d4 commit 8230467
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ rq = "^1.15.1"
pydantic = "^2.0.2"
idna = "^3.4"
python-multipart = "^0.0.6"
pandas = "^2.0.3"

uvicorn = { version = "^0.22.0", optional = true }
fastapi = { version = "^0.100.0", optional = true }
pypdf = { version = "^3.12.0", optional = true }
pandas = { version = "^2.0.3", optional = true }


[tool.poetry.extras]
api = ["uvicorn", "fastapi", "pypdf", "pandas"]
Expand Down
11 changes: 1 addition & 10 deletions workers/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,7 @@ def data_profiling(dataset_id, document_text):
}
columns.append(col)

dataset["columns"] = columns

dataset["metadata"] = {
"document_textuments": [
{
"url": "https://github.com/reichlab/covid19-forecast-hub/blob/master/data-truth/README.md",
"title": "README: Ground truth data for the COVID-19 Forecast Hub",
}
]
}
dataset_json["columns"] = columns

resp = requests.post(f"{TDS_API}/datasets", json=dataset)
dataset_id = resp.json()["id"]
Expand Down

0 comments on commit 8230467

Please sign in to comment.