mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
labels port manager columns if they are not layer 3 columns
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user