labels port manager columns if they are not layer 3 columns

This commit is contained in:
Dipti
2021-02-11 01:30:43 -08:00
parent 5e4cca4c5c
commit 283ad29523
2 changed files with 14 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ from LANforge.LFUtils import *
from LANforge import LFRequest
import LANforge.LFRequest
import csv
import pandas as pd
class LFCliBase:
@@ -618,7 +619,7 @@ class LFCliBase:
#================ Pandas Dataframe Functions ======================================
#takes any dataframe and returns the specified outputfile format of it
#takes any dataframe and returns the specified file extension of it
def df_to_file(self, dataframe=None, output_f=None):
df = dataframe
if output_f == 'hdf':
@@ -638,13 +639,14 @@ class LFCliBase:
# return exec('df.to_' + x + '("'+file_name'")')
#takes any format of a file and returns a dataframe of it
def file_to_df(file_name):
def file_to_df(self,file_name):
return pd.read_csv(file_name)
def compare_two_df(dataframe_one=None,dataframe_two=None):
pass
def compare_two_df(self,dataframe_one=None,dataframe_two=None):
pass
#return compared_df
def append_df_to_file(dataframe, file_name):
def append_df_to_file(self,dataframe, file_name):
pass
# ~class