
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
A library for processing sports features over a dataframe containing sports data.
A library for processing sports features over a dataframe containing sports data.
Python 3.11.6:
sportsfeatures
aims to process features relevant to predicting aspects of sporting games.
sportsfeatures
is a functional library, meaning that each phase of feature extraction gets put through a different function until the final output. It contains some caching when the processing is heavy (such as skill processing). The features its computes are as follows:
This is a python package hosted on pypi, so to install simply run the following command:
pip install sportsfeatures
or install using this local repository:
python setup.py install --old-and-unmanageable
The use of sportsfeatures
is entirely through code due to it being a library. It attempts to hide most of its complexity from the user, so it only has a few functions of relevance in its outward API.
To generate features:
import datetime
import pandas as pd
from sportsfeatures.process import process
from sportsfeatures.identifier import Identifier
from sportsfeatures.entity_type import EntityType
df = ... # Your sports data
identifiers = [
Identifier(EntityType.TEAM, "teams/0/id", ["teams/0/kicks"], "teams/0"),
Identifier(EntityType.TEAM, "teams/1/id", ["teams/1/kicks"], "teams/1"),
]
df = process(df, identifiers, [datetime.timedelta(days=365), None], "dt")
This will produce a dataframe that contains the new sports related features.
The project is available under the MIT License.
FAQs
A library for processing sports features over a dataframe containing sports data.
We found that sportsfeatures demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.