Skip to content

Django Exif Data: ‘IFDRational’ object is not subscriptable

I got an issue with the code: ‘IFDRational’ object is not subscriptable Here is the trace: the is issue is: Variable Value dms (45.0, 46.0, 34.29) ref ‘N’ That what I get from an image for instance. I think the code assimilate GPSLatitudeRef to degrees = dms[0][0] / dms[0][1]. The thin…

python pandas get distinct matches in columns

I have a dataframe which looks a bit like what this code gives: What I want to end up with is a list of lists or dataframe or something similar which tells me the distinct matches across both columns in both directions. It’d be something like this: I have tried to do it but I can’t get it to go

Appending two lists with multiple dicts Python

I have five dictionaries dic1, dict2, dict3, dict4, dict5. I’m trying to append dict-keys to two lists list1, list2. Output The first three dictionaries are to be appended for both the lists and fourth dictionary dict4 to the list1 and fifth dict5 to the list2. So far I did in this approach, I’m l…