So i have been trying to plot a .csv file with pandas in the below code , i needed to skip 262 rows and a few cols.
import pandas as pd
import matplotlib.pyplot as plt
import csv
file_name= 'SM2_D1_Id_Vg_6.csv'
data = pd.read_csv(file_name,skiprows=262 ,usecols=[1,4])
data.columns()
The out out is here
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[115], line 6
4 file_name= 'SM2_D1_Id_Vg_6.csv'
5 data = pd.read_csv(file_name,skiprows=262 ,usecols=[1,4],sep=r"s+")
----> 6 data.columns()
TypeError: 'Index' object is not callable
Now i can read the file perfectly :
import pandas as pd
import matplotlib.pyplot as plt
import csv
file_name= 'SM2_D1_Id_Vg_6.csv'
data = pd.read_csv(file_name,skiprows=262 ,usecols=[1,4])
data
I am not able to debug the code , basically i am not able to extract my row and cols into x and y and plot them.
1