cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Reading excel file using pandas on spark api not rendering #N/A values correctly

aa_204
New Contributor II

I am trying to read a .xlsx file using ps.read_excel() and having #N/A as a value for string type columns. But in the dataframe, i am getting "null" inplace of #N/A . Is there any option , using which we can read #N/A as a string in .xlsx file

 

3 REPLIES 3

daniel_sahal
Esteemed Contributor

aa_204
New Contributor II

Thanks @daniel_sahal  . I have tried 

na_Filter=False and na_values=['NA'],keep_default_na=False as well. But still not able to manipulate #N/A as string . . Each time it is getting converted to null or nan

vishwanath_1
New Contributor III

i am facing the same issue currently even after setting 

keep_default_na = False still #N/A is being converted as null
does anyone know the solution here?
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.