I keep getting:
File "app.py", line 59
df = pd.DataFrame(list(db.mycol.find({}))), inconsistent use of tabs and spaces in indentation
I don't know what's causing the problem. I already tried to detab it. I'm using sublime text. Any advice?
def gen_wind_speed(interval):
now = dt.datetime.now()
sec = now.second
minute = now.minute
hour = now.hour
total_time = (hour * 3600) + (minute * 60) + (sec)
client = MongoClient(port=27017)
db = client.one
mycol = client['coll']
df = pd.DataFrame(list(db.mycol.find({})))