James McCool
Refactor import statements across multiple files to replace 'fuzzywuzzy' with 'rapidfuzz' for improved performance and consistency in string matching functionality. Additionally, clean up unused imports in app.py and related global functions to enhance code clarity and maintainability.
d9db89f
import streamlit as st | |
import numpy as np | |
import pandas as pd | |
import time | |
def clean_player_name(name): | |
# Handle colon case first (remove everything before colon) | |
if ':' in name: | |
name = name.split(':')[1].strip() | |
# Handle parentheses case (remove everything after opening parenthesis) | |
if '(' in name: | |
name = name.split('(')[0].strip() | |
return name |