sns.Implort() supporting only string values?
in
The Complete Data Visualization Course with Python, R, Tableau, and Excel
/
Regression Plot - Python - How to Create a Regression Plot
Hello!
When I print the TYPE of a value from the df_ad_exoenditure dataset using this command in python:
print(type(df_ad_expenditure['Budget'][0]))
it displays
<class 'numpy.float64'>
Howcome does sns.lmport() successfully process numpy float data if it was just designed to accept strings as its x and y values?
1 answers ( 0 marked as helpful)
Hi Anas,
the input values for x and y are the column names, which are strings, in your case 'Budget'. The values of the column itself can be numerical, in your case budget contains floats.
Hope this helps!
Best,
365 Eli