I'm sort of new to using pandas in Python for data visualization, and have this code so far:
import pandas as pd
data = pd.read_csv(r'/Users/ephemeralhappiness/Desktop/Packet/Fake Data.csv')
df = pd.DataFrame(data, columns=['A', 'B'])
print(df)
So I have created this DataFrame from reading Fake Data.csv with columns A and B. For example, how would I retrieve the 5th value of column A so I can store it into the variable. How would I remove the 5th value of column A?
I tried the following code for my first question:
print(df.iat(4,0))
In theory, this should return the fifth value of column A, but I get the following error:
TypeError: '_AtIndexer' object is not callable
Before/after picture but the 5th value removed from column A needs to be stored in a variable first