I sugested pyCharm. My student loves it! No looking back, goodbye VS and parallels for her. We keep the infrastructure threshold low. The rest is plain sailing.that's python IDE is easier
import pandas as pd from pandas import datetime, period_range #compiles #myRange = pd.period_range('2000-01-01', periods=12, freq='T') #ts = pd.Series(range(12), index=myRange) #NOT compile range = pd.period_range('2000-01-01', periods=12, freq='T') ts = pd.Series(range(12), index=range) ts.index = ts.index.astype('datetime64[ns]') data_higher_freq = ts.resample('5T').sum()
def range(i): print ("range") return 1/0
Python allows built-in functions overloading. Bad or good is mental masturbation. That's just the way it is. Programmer is supposed to have come through the list of these built-in functions at some point, and understands it is usually bad practice to use those name to create object/functions/etc. To somewhat circumvent the issue, programmer can use scope/namespace tricks.range is a function, not an objectIsn't python, it is the developer. What about using a square bracket instead of a parenthese .....Is this a bug in Python?
import builtins builtins.range(10) #range(0, 10)