Created
October 11, 2020 19:15
-
-
Save sjtalkar/4fcb3ac912c525d6637493a0481d1981 to your computer and use it in GitHub Desktop.
Python code in Power BI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#'MetAreaPopAndTeams_df' and 'NHLData_df' hold the input data for this script | |
import pandas as pd | |
MetAreaPopAndTeams_df['Team Name Map'] = MetAreaPopAndTeams_df['NHL Teams'].apply(lambda teamname: NHLData_df[NHLData_df['Team'].str.contains(teamname)]['Team'].any(0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment