validmind.cnn_dailymail
display_nice
defdisplay_nice(df,num_rows=None):
Primary function to format and display a DataFrame.
load_data
defload_data(source:str='online',dataset_size:Optional[str]=None) → Tuple[pd.DataFrame, pd.DataFrame]:
Load data from either online source or offline files.
Arguments
source
: 'online' for online data, 'offline' for offline data. Defaults to 'online'.dataset_size
: Applicable if source is 'offline'. '300k' or '500k' for dataset size. Defaults to None.
Returns
- Tuple containing (train_df, test_df) DataFrames with the loaded data.