I've written a class in its own .py file and I want to be able to use it in other files. I saved the file panel.py in C:\Python27\Lib and then I tried to use import panel in ipython and I got the following error ImportError: No module named panel. I thought I had possibly saved the class in the wrong directory so I tried saving the file here C:\Python27, which also did not work when I tried to import the file. What am I doing wrong? If its useful here's the class I wrote, I deleted everything that the class does which should not impact anything.
import statsmodels.formula.api as sm
import pandas as pd
import numpy as np
import scipy as sp
from math import sqrt
import re
class PanelModel:
    def __init__(self, formula, effects = "random", time_fe = False, entity_fe = False, robust = False, data = None):
        pass
    def balanceChecker(self):
        pass
    def fit(self):
        pass
    def randomEffects(self):
        pass
    def fixedEffects(self):
        pass
    def betasREBalanced(self):
        pass
    def summary(self):
        pass
I'm running python 2.7.9 and ipython 3.0.0
 
     
     
     
    