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

Adding get_constructors() #60

Merged
merged 6 commits into from
Oct 6, 2022
Merged

Adding get_constructors() #60

merged 6 commits into from
Oct 6, 2022

Conversation

dan-pavlov
Copy link
Contributor

Description

Implemented get_constructors() function, that takes year as an optional parameter, and returns a DataFrame of participating constructors in that year, and their nationality. If the year is not provided, return all constructors in F1 history.

Related Issue(s)

Fixes #40

User-facing Changes

Users are now able to get a list of constructors by calling additional function from F1PyStats package.

Screenshots (If necessary)

image

Copy link
Owner

@alec-kr alec-kr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems good. I will test the changes locally and get back to you.

Previous link only returned about 30 constructors. New link returns all 211 teams in a single JSON file.
Copy link
Owner

@alec-kr alec-kr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job on completing this function 💯 . You have followed all style guides, and also implemented tests as required.

I will merge it shortly.

@alec-kr alec-kr added the hacktoberfest-accepted Hacktoberfest PR has been accepted label Oct 6, 2022
@alec-kr alec-kr merged commit 46d4441 into alec-kr:main Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hacktoberfest PR has been accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create get_constructors()
2 participants