import pandas as pd
import polars as pl
import numpy as np
import math
str_cols = [
"Name",
"LongName",
"playerUrl",
"photoUrl",
]
initial_category_cols_pl = [
"Nationality",
"Preferred Foot",
"Best Position",
"A/W",
"D/W"
]
category_cols = [*initial_category_cols_pl, "Club"]
date_cols = [
"Joined",
"Loan Date End"
]
# these all start with the euro symbol and end with 0, M or K
money_cols = [
"Value",
"Wage",
"Release Clause"
]
star_cols = [
"W/F",
"SM",
"IR",
]
# Contract col is a range of years
# Positions is a list of positions
# Height is in cm
# Weight is in kg
# Hits is numbers with K and M
messy_cols = [
"Contract",
"Positions",
"Height",
"Weight",
"Hits"
]
initially_str_cols = str_cols + date_cols + money_cols + star_cols + messy_cols
initially_str_cols_pl = [*initially_str_cols, "Club"]
u32_cols = [
"ID",
"Total Stats"
]
u8_cols = [
'Age',
'↓OVA',
'POT',
'BOV',
'Crossing',
'Finishing',
'Heading Accuracy',
'Short Passing',
'Volleys',
'Dribbling',
'Curve',
'FK Accuracy',
'Long Passing',
'Ball Control',
'Acceleration',
'Sprint Speed',
'Agility',
'Reactions',
'Balance',
'Shot Power',
'Jumping',
'Stamina',
'Strength',
'Long Shots',
'Aggression',
'Interceptions',
'Positioning',
'Vision',
'Penalties',
'Composure',
'Marking',
'Standing Tackle',
'Sliding Tackle',
'GK Diving',
'GK Handling',
'GK Kicking',
'GK Positioning',
'GK Reflexes',
'PAC',
'SHO',
'PAS',
'DRI',
'DEF',
'PHY'
]
u16_cols = [
'Attacking',
'Skill',
'Movement',
'Power',
'Mentality',
'Defending',
'Goalkeeping',
'Total Stats',
'Base Stats'
]