You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
755 B

import json
import os
import zipfile
from io import BytesIO
import pandas as pd
def addOneAthlete(df, file):
data = json.load(file)
df = df.append(data, ignore_index=True)
return df
def create_pcikle():
df = pd.DataFrame()
with zipfile.ZipFile('') as z:
for filename in z.namelist():
if filename.endswith('.zip'):
zfiledata = BytesIO(
with zipfile.ZipFile(zfiledata) as zfile2:
for name2 in zfile2.namelist():
with as f:
df = addOneAthlete(df, f)
if __name__ == '__main__':
data = pd.read_pickle('data.pkl')