David A
David A

Reputation: 191

Can you import a pandas dataframe from a module in the same directory?

eg if I have a module in the same directory called dataframe which has a dataframe called df

Can I do:

import dataframe

print(df) 

Is there a way to do this?

Upvotes: 0

Views: 170

Answers (1)

berkay
berkay

Reputation: 134

Yes you can by :

print(dataframe.df)

Upvotes: 1

Related Questions