pyeda31.check_csv ================= .. py:module:: pyeda31.check_csv Functions --------- .. autoapisummary:: pyeda31.check_csv.check_csv Module Contents --------------- .. py:function:: check_csv(file_path) Check if the given file has a CSV file extension and whether it can be read by the pandas library. :param file_path: Path to the file. :type file_path: str :returns: True if the file has a CSV extension and can be read by the pandas library. False otherwise (e.g., incorrect file extension or read error). :rtype: bool .. rubric:: Examples >>> from pyeda31.check_csv import check_csv >>> check_csv("../data/raw/data.csv") True >>> check_csv("../data/raw/data.txt") False