Skip to content

Commit 918aecf

Browse files
committed
Fix typo in DataFrame initialization
Pull from Collab Guide [PR 70](Imageomics/Collaborative-distributed-science-guide#70)
1 parent bd69f9a commit 918aecf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/wiki-guide/The-Hugging-Face-Dataset-Upload-Guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ repo_id = "<org-name>/<repo-name>"
110110
repo_type = "dataset"
111111

112112
file_list = api.list_repo_files(repo_id=repo_id, repo_type=repo_type)
113-
file_df = pd.Dataframe(columns = {"filepath": file_list})
113+
file_df = pd.DataFrame(data = {"filepath": file_list})
114114
metadata = pd.read_csv("path/to/metadata/file")
115115

116116
# assuming you use the same filepath in your system as in the repo

0 commit comments

Comments
 (0)