data_object
Module that defines the data object abstract classes
DataObject
Abstract class that models a DataObject. It defines its data schema including the attributes that compose it.
Source code in multimno/core/data_objects/data_object.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
read(*args, **kwargs)
Method that performs the read operation of the data object dataframe through an IOInterface.
Source code in multimno/core/data_objects/data_object.py
32 33 34 35 36 37 |
|
write(*args, **kwargs)
Method that performs the write operation of the data object dataframe through an IOInterface.
Source code in multimno/core/data_objects/data_object.py
39 40 41 42 43 |
|
GeoParquetDataObject
Bases: PathDataObject
Class that models a DataObject that will use a ParquetInterface for IO operations. It inherits the PathDataObject abstract class.
Source code in multimno/core/data_objects/data_object.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
|
ParquetDataObject
Bases: PathDataObject
Class that models a DataObject that will use a ParquetInterface for IO operations. It inherits the PathDataObject abstract class.
Source code in multimno/core/data_objects/data_object.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
|
PathDataObject
Bases: DataObject
Abstract Class that models DataObjects that will use a PathInterface for IO operations. It inherits the DataObject abstract class.
Source code in multimno/core/data_objects/data_object.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
|
get_num_files()
Returns the number of files of the data object.
Source code in multimno/core/data_objects/data_object.py
111 112 113 114 115 |
|
get_size()
Returns the size of the data object in bytes.
Source code in multimno/core/data_objects/data_object.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
|
get_top_rows(n, truncate=20)
Returns string with top n rows. Same as df.show.
Source code in multimno/core/data_objects/data_object.py
117 118 119 120 121 |
|