Posts by Otávio Simões Silveira • 3 points
2 posts
-
0
votes2
answers345
viewsQ: Web scraping with Beautifulsoup - find_next does not return text
I want to extract the text from the section below: <div class="matchDate renderMatchDateContainer" data-kickoff="1583784000000">Mon 9 Mar 2020</div> the text would be "Mon 9 Mar 2020".…
-
0
votes1
answer126
viewsQ: Values are not converted to np.Nan
I have the function: def zero_to_null(x): if x == 0: x = np.nan return x Uso series.apply: Series.apply(zero_to_null) However, the values 0 are not converted to np.Nan: Series.value_counts() 0 35 2…