I have model Status and Station, that have many to many relations.
Following command:
read_frame(Status.objects.values('id', 'stations__id'), verbose=False)
returns:
id stations__id
0 1 NaN
1 2 NaN
2 3 1.0
3 3 2.0
4 3 3.0
5 4 4.0
6 4 5.0
7 4 6.0
Keys must be integers, not floats. It seems like null converts all values in a column into floats.