Skip to content
Snippets Groups Projects
Commit 620a4133 authored by Dworatzyk, Katharina's avatar Dworatzyk, Katharina
Browse files

Merge branch 'fix-data-type-for-q007' into 'master'

Convert float to int (Q007)

See merge request !13
parents b7d675dd d1326117
No related branches found
No related tags found
1 merge request!13Convert float to int (Q007)
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -19,6 +19,7 @@ def _load_data(path: str) -> DataFrame:
data_df: DataFrame = read_csv(filepath_or_buffer=path, sep=",")
# Set LimeSurvey IDs as index
data_df.set_index(keys="id", drop=True, inplace=True)
data_df.loc[:, "Q007"] = data_df.loc[:, "Q007"].astype("Int32")
return data_df
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment