Extract left and right limit from a Series of pandas Intervals
问题 I want to get interval margins of a column with pandas intervals and write them in columns 'left', 'right'. Iterrows does not work (documentation says it would not be use for writing data) and, anyway it would not be the better solution. import pandas as pd i1 = pd.Interval(left=85, right=94) i2 = pd.Interval(left=95, right=104) i3 = pd.Interval(left=105, right=114) i4 = pd.Interval(left=115, right=124) i5 = pd.Interval(left=125, right=134) i6 = pd.Interval(left=135, right=144) i7 = pd