Index¶
-
class
FilesIndex
(*args, path=None, name=None)[source]¶ Index of local files.
Builds a DataFrame containing file paths and indexed by filnames.
- Parameters
-
index_merge
(x)¶ Merge on left and right indexes.
-
property
indices
¶ Unique indices.
-
shuffle
(seed=None)¶ Randomly shuffle indices.
- Parameters
seed (int) – Seed for the random number generator.
- Returns
index – BaseIndex with shuffled indices.
- Return type
BaseIndex
-
train_test_split
(train_ratio=0.8, shuffle=True, seed=None)¶ Splits index into train and test subsets.
- Parameters
- Returns
(train, test) – Train and test indices.
- Return type
-
class
RemoteFilesIndex
(*args, url=None, ext=None, name=None)[source]¶ Index of remote files.
Builds a DataFrame containing urls and indexed by filnames.
- Parameters
-
index_merge
(x)¶ Merge on left and right indexes.
-
property
indices
¶ Unique indices.
-
shuffle
(seed=None)¶ Randomly shuffle indices.
- Parameters
seed (int) – Seed for the random number generator.
- Returns
index – BaseIndex with shuffled indices.
- Return type
BaseIndex
-
train_test_split
(train_ratio=0.8, shuffle=True, seed=None)¶ Splits index into train and test subsets.
- Parameters
- Returns
(train, test) – Train and test indices.
- Return type
-
class
KislovodskFilesIndex
(*args, series=None, start_date=None, end_date=None, ext=None)[source]¶ Index for the archive of the Kislovodsk Mountain Astonomical Station.
Builds a DataFrame containing urls and indexed by filnames.
- Parameters
-
index_merge
(x)¶ Merge on left and right indexes.
-
property
indices
¶ Unique indices.
-
shuffle
(seed=None)¶ Randomly shuffle indices.
- Parameters
seed (int) – Seed for the random number generator.
- Returns
index – BaseIndex with shuffled indices.
- Return type
BaseIndex
-
train_test_split
(train_ratio=0.8, shuffle=True, seed=None)¶ Splits index into train and test subsets.
- Parameters
- Returns
(train, test) – Train and test indices.
- Return type