import os
import pandas as pd
from .logger import pydataLogger
[docs]
class Importer:
[docs]
@staticmethod
def read_csv(file_path="", *args, **kwargs) -> pd.DataFrame:
if len(file_path) > 0:
if not os.path.isabs(file_path):
file_path = os.path.abspath(file_path)
df = pd.read_csv(file_path, **kwargs)
else:
df = pd.read_csv(*args, **kwargs)
return df
[docs]
@staticmethod
def test():
print("test")
return "test"