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

Failed to parse csv for players and teams #129

Open
AlexKaryasov opened this issue Sep 1, 2024 · 0 comments
Open

Failed to parse csv for players and teams #129

AlexKaryasov opened this issue Sep 1, 2024 · 0 comments

Comments

@AlexKaryasov
Copy link
Contributor

Right now, the following command:

python manage.py import_release 1234

Returns the following error:

 File "parsers.pyx", line 2061, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 18, saw 5

The code which is responsible for producing such an error looks like this:

def get_players_release(release_id):
    """
    https://rating.chgk.info/players.php?release=1425&download_data=export_release
    :return:
    """
    players_pd = pd.read_csv(
        f"https://rating.chgk.info/players.php"
        f"?release={release_id}&download_data=export_release"
    )
    return players_pd

Depending on whether this functionality is deprecated or not, we can either fix it or clean this functionality up altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant