Spaces:
Sleeping
Sleeping
Update data_to_parquet.py
Browse files- data_to_parquet.py +4 -4
data_to_parquet.py
CHANGED
@@ -20,10 +20,10 @@ schema = {'username': {'_type': 'Value', 'dtype': 'string'},
|
|
20 |
def to_parquet(api,repo,username="",unit1=0.,unit2=0.,unit3=0.,unit4=0.,certified=0):
|
21 |
data = {
|
22 |
"username": username,
|
23 |
-
"unit1": unit1,
|
24 |
-
"unit2" : unit2,
|
25 |
-
"unit3" : unit3,
|
26 |
-
"unit4" : unit4,
|
27 |
"certified" : certified,
|
28 |
}
|
29 |
# Export data to Arrow format
|
|
|
20 |
def to_parquet(api,repo,username="",unit1=0.,unit2=0.,unit3=0.,unit4=0.,certified=0):
|
21 |
data = {
|
22 |
"username": username,
|
23 |
+
"unit1": float(unit1),
|
24 |
+
"unit2" : float(unit2),
|
25 |
+
"unit3" : float(unit3),
|
26 |
+
"unit4" : float(unit4),
|
27 |
"certified" : certified,
|
28 |
}
|
29 |
# Export data to Arrow format
|