from chainer import datasets
from chainer.datasets import tuple_dataset
import numpy as np
import matplotlib.pyplot as plt
import chainer
import pandas as pd
import math
У меня есть файл CSV, содержащий 40300 данных.
df =pd.read_csv("Myfile.csv", header = None)
в этой области я удаляю игнорируемые строки и столбцы
columns = [0,1]
rows = [0,1,2]
df.drop(columns, axis = 1, inplace = True) #drop the two first columns that no need to the code
df.drop(rows, axis = 0, inplace = True) #drop the two first rwos that no need to the code
в этой области я хочуудалить строку, если встречается строковый тип данных, НО она не работает
df[~df.E.str.contains("Intf Shut")]~this part is not working with me
df.to_csv('summary.csv', index = False, header = False)
df.head()