You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
365 B
Python
18 lines
365 B
Python
import pandas as pd
|
|
import numpy as np
|
|
|
|
#def _is_true(x: pd.Series) -> pd.Series:
|
|
# return x == "t"
|
|
|
|
#def _parse_percentage(x: pd.Series) -> pd.Series:
|
|
# x = x.str.replace("%", "")
|
|
# x = x.astype(float) / 100
|
|
# return x
|
|
|
|
def preprocess_actors(actors: pd.DataFrame) -> pd.DataFrame:
|
|
actors.replace("XXXX", np.NaN)
|
|
return actors
|
|
|
|
#def parse_xsl(
|
|
|