python/ray/tune/analysis/experiment_analysis.py
def fetch_trial_dataframes(self) -> Dict[str, DataFrame]:
        """Fetches trial dataframes from files.

        Returns:
            A dictionary containing "trial dir" to Dataframe.
        """
        fail_count = 0
        force_dtype = {"trial_id": str}  # Never convert trial_id to float.
        for path in self._get_trial_paths():
            try:
                if self._file_type == "json":
                    with open(os.path.join(path, EXPR_RESULT_FILE), "r") as f:
                        json_list = [json.loads(line) for line in f if line]
                    df = pd.json_normalize(json_list, sep="/")
                elif self._file_type == "csv":
                    df = pd.read_csv(
                        os.path.join(path, EXPR_PROGRESS_FILE), dtype=force_dtype
                    )
                self.trial_dataframes[path] = df
            except Exception:
                fail_count += 1

        if fail_count:
            logger.debug("Couldn't read results from {} paths".format(fail_count))
        return self.trial_dataframes
Fetches trial dataframes from files.

        Returns:
            A dictionary containing "trial dir" to Dataframe.
        
Fetches trial dataframes from files.
Fetches trial dataframes from files .
def fetch_trial_dataframes(self) -> Dict[str, DataFrame]:
        fail_count = 0
        force_dtype = {"trial_id": str}  
        for path in self._get_trial_paths():
            try:
                if self._file_type == "json":
                    with open(os.path.join(path, EXPR_RESULT_FILE), "r") as f:
                        json_list = [json.loads(line) for line in f if line]
                    df = pd.json_normalize(json_list, sep="/")
                elif self._file_type == "csv":
                    df = pd.read_csv(
                        os.path.join(path, EXPR_PROGRESS_FILE), dtype=force_dtype
                    )
                self.trial_dataframes[path] = df
            except Exception:
                fail_count += 1
        if fail_count:
            logger.debug("Couldn't read results from {} paths".format(fail_count))
        return self.trial_dataframes
def fetch_trial_dataframes ( self ) -> Dict [ str , DataFrame ] : fail_count = 0 force_dtype = { "trial_id" : str } for path in self . _get_trial_paths ( ) : try : if self . _file_type == "json" : with open ( os . path . join ( path , EXPR_RESULT_FILE ) , "r" ) as f : json_list = [ json . loads ( line ) for line in f if line ] df = pd . json_normalize ( json_list , sep = "/" ) elif self . _file_type == "csv" : df = pd . read_csv ( os . path . join ( path , EXPR_PROGRESS_FILE ) , dtype = force_dtype ) self . trial_dataframes [ path ] = df except Exception : fail_count += 1 if fail_count : logger . debug ( "Couldn't read results from {} paths" . format ( fail_count ) ) return self . trial_dataframes
Fetches trial dataframes from files.
Fetches trial dataframes from files .
"""Fetches trial dataframes from files.

        Returns:
            A dictionary containing "trial dir" to Dataframe.
        """ # Never convert trial_id to float.
A dictionary containing "trial dir" to Dataframe.
A dictionary containing " trial dir " to Dataframe .
self