Базовый интерфейс
Bases: BaseConnection
Implements generic methods for reading and writing dataframe as files.
.. versionadded:: 0.9.0
Source code in onetl/base/base_file_df_connection.py
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 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
check_if_format_supported(format)
abstractmethod
Validate if specific file format is supported. |support_hooks|
.. versionadded:: 0.9.0
Raises
RuntimeError If file format is not supported.
Source code in onetl/base/base_file_df_connection.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
read_files_as_df(paths, format, root=None, df_schema=None, options=None)
abstractmethod
Read files in some paths list as dataframe. |support_hooks|
.. versionadded:: 0.9.0
Source code in onetl/base/base_file_df_connection.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
write_df_as_files(df, path, format, options=None)
abstractmethod
Write dataframe as files in some path. |support_hooks|
.. versionadded:: 0.9.0
Source code in onetl/base/base_file_df_connection.py
124 125 126 127 128 129 130 131 132 133 134 135 136 | |