Q:

The return of my function is a pandas dataframe object, but I recieve a tuple.  What is happening and how can i recieve the object as DataFrame? 

I have created a function where I make an pandas DataFrame object, that I place in the return part of the code, when i print type() i get   <class 'pandas.core.frame. DataFrame'>, but when i print the type() in the receiving code I get <class 'tuple'> 
Is it supposed to be like this or am I doing anything wrong?  
Removed Code after i got help and it was answered
The resolve was that I had included a bool statement in addition to the pandas data frame in the return statement

A:

In the receiver code, you may have to change the following ( check the index in e ) - 
while True:
    c=c+1
    e = tl.extractdata(rawlink,c)
    if e:
        print(type(e[1]),e[1])

The reason is that the extract_data function is actually returning a tuple ( True, horsetable). 