I am using pandas to scrape a website but it returns a whole column with 'nan' values instead of the proper ones. I have tried changing several read_html() parameters, such as flavor, converters, and na_values without success. I noticed that the html code of the troubled column differs in that the rest of them are 'td class=' type, while the one not being read properly reads 'td data-behavior='. When I simply copy/paste the table into excel, everything is pasted ok. I would kindly appreciate any help.
I tried changing some parameters on read_html() without success. I have also tried to get the table using lxml/xpath and didn't succeed either.
week_data = pd.read_html('https://www.espn.co.uk/nfl/fixtures/_/week/2/seasontype/1',
converters={'time': str})
The column should have strings containing the time of the match.