Last answered:

28 Mar 2022

Posted on:

22 Mar 2022

0

sns.Implort() supporting only string values?

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)
Instructor
Posted on:

28 Mar 2022

1

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

Submit an answer