Fast getting/setting of scalar values using at and iat

If we are certain that we only wish to get/set single values in a DataFrame, we can use the .at and .iat attributes, along with singular labels/integers, respectively. Just remember, the i in .iloc and .iat stands for "integer":

value3 = df3.iat[3,3]
print(value3)

The output is 11.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset