Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some blank players appear in the log #3

Open
SoyBison opened this issue Aug 7, 2020 · 1 comment
Open

Some blank players appear in the log #3

SoyBison opened this issue Aug 7, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@SoyBison
Copy link

SoyBison commented Aug 7, 2020

File attached, generated with the following code:

import numpy as np
import pandas as pd
import json
from collections import defaultdict
import glob

with open('../../BIGGESTLOG.json', 'r') as f:
    sakistyle = json.load(f)

data = defaultdict(list)
for game in sakistyle:
    for batter in game['awayBatters']:
        for key in batter:
            data[key].append(batter[key])
    for batter in game['homeBatters']:
        for key in batter:
            data[key].append(batter[key])

df = pd.DataFrame(data)

df[df['_id'] == ''].to_csv('blanks_for_investigation.csv')

blanks_for_investigation.txt

Very very low priority, this is not load bearing in my data mine, just want it written down somewhere.
Don't worry about this until you have literally nothing better to do.

@Zhetadelta
Copy link
Owner

This was actually a known issue! I tried to figure out why but nothing I did worked without breaking, and I basically put it off to the side until I have nothing better to do.

@Zhetadelta Zhetadelta added the bug Something isn't working label Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants