-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hey, was using your script which is working to fine until it reaches the point to add PLayer URL. I checked if code and RealGm URL are same.
I'm new into Python for a year and was mainly into Pandas and looking forward to play with some Basketball data. I would appreciate your help.
Code fine until this point:
`## runs over all player details store each of them into one file
write_player_details_files(df_player_season_data['Player_URL'])
go over all player details files and store them into dictionary
player_details_dictionary = read_player_details(df_player_season_data['Player_URL'].unique())
add all player details columns into the dataframe
set_player_details_dataframe(player_details_dictionary)`
I did dnot change anything before; the csv on my hard drive is ok and contains the col with Player URL. I get the error message:
`---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
in
1 ## runs over all player details store each of them into one file
----> 2 write_player_details_files(df_player_season_data['Player_URL'])
3
4 ## go over all player details files and store them into dictionary
5 player_details_dictionary = read_player_details(df_player_season_data['Player_URL'].unique())
in write_player_details_files(player_url_series)
7 player_details_dictionary = {}
8 player_details_dictionary[player_url] = get_player_details(player_url)
----> 9 write_file_player_details(player_details_dictionary)
in write_file_player_details(i_player_details)
4 player_file_name = 'player_details/'+ player_file_name
5
----> 6 f = open(player_file_name,"w")
7 f.write( str(i_player_details) )
8 f.close()
FileNotFoundError: [Errno 2] No such file or directory: 'player_details/_player_James-Harden_Summary_1598.txt'`
thx
Philipp