Given the coming deprecation of df.ix[...]
How can i replace .ix in this piece of code?
df_1 = df.ix[:, :datetime.time(16, 50)]
df_2 = df.ix[:, datetime.time(17, 0) : ]
df_3 = df2.shift(periods = 1)
df_4 = pd.concat([df3, df1], axis = 1)
For reference, this is some background on that piece of code
Replacing ix
in your code base is a 4-step process as follows:
Spend developer time on upgrading the production version of pandas to 0.19.x that is compatible with ix
and expose loc
iloc
replacements as you would use them now. The impact in your code is adapations for other parts of your pandas code base that will have breaking changes due to other changes in pandas 0.19 vs 0.18
Install you new qualified version in production
Migrate ix
in your code base
Deploy in production
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With