Handling missing data while reading

The read_excel method has a list of values that it will consider as missing and will then set the values to NaN. We can add this when passing a list of values by using the na_values parameter, as shown in the following code:

df = pd.read_excel('IMDB.xlsx', sheetname= 0, na_values=[' '])
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.136.37.247