So now I have a csv file here I can access it using python and also I was successful to delete the rows in middle but I am not able to get the remaining data as new csv.
I HAVE TRIED THIS CODE-
import pandas as pd
import csv
df = pd.read_csv('/content/Final_Data.csv',error_bad_lines= False)
df.head()
data = df.drop(columns='-BEGIN HEADER-')
print(data)
with open('example.csv', 'w') as file:
writer = csv.writer(file)
writer.writerow(data)
[THIS IS THE IMAGE LINK OF MY DATA.][1] [1]: https://i.stack.imgur.com/hJPCl.jpg
It is considering the -BEGIN HEADER- as one column but it is accepting only rows till -END HEADER- row. I tried to delete the -BEGIN HEADER- COLUMN but it is only deleting the values till -END HEADER- row. My dataframe is accepting the values only till 11th column.
Please help me to access the remaining data using python.