I am trying to return values from map function but instead it gives me the memory address. I tried using list, but then it gives me an error stating str object doesn't have an attribute decode. Is there a way out?
Asked
Active
Viewed 70 times
-1
-
Could you post the specific error messages? – Dani Mesejo Oct 30 '18 at 02:27
-
1Could you post an exemple of your dataframe? – vctrd Oct 30 '18 at 02:29
-
posted error and dataframe example – via2 Oct 30 '18 at 02:32
-
well, you should format your example – Hsgao Oct 30 '18 at 02:35
-
done edited exmple – via2 Oct 30 '18 at 02:38
1 Answers
0
The first problem you mentioned is probably because you are accessing an objects name rather than applying a method.
But for this error Error: AttributeError: 'str' object has no attribute 'decode'
This error is already answered in here 'str' object has no attribute 'decode'. Python 3 error?
As it said here you are trying to decode an object that is already decoded. You have a str, there is no need to decode from UTF-8 anymore. If you remove the .decode() method from your chain it will be ok.

Ali Türkay Avci
- 1,038
- 12
- 12