Basic usage documentation
BlobStorageExtended
Bases: BlobStorageBase
local_base_path: local folder where data will be downloaded if path is not specified
get_file_as_pandas_df
Get a blob & load it as a pandas DataFrame
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
container_name |
str
|
Name of the container |
required |
remote_file_name |
str
|
Name of the blob |
required |
**kwargs |
Optional[Dict]
|
add any kwarg that you would put in pd.read_* methods. |
{}
|
get_image_as_numpy_array
Get an image file from blob & load it as numpy array
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
container_name |
str
|
Name of the container |
required |
remote_file_name |
str
|
Name of the blob |
required |
upload_image_bytes_as_jpg_file
Upload an in memory image numpy array as a jpg file
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
img |
np.ndarray
|
a RGB numpy array |
required |
container_name |
str
|
Name of the container |
required |
remote_file_name |
str
|
Name of the blob where image will be uploaded |
required |
overwrite |
Optional[bool]
|
set to True if needed |
False
|
upload_pandas_df
Upload a in memory pandas DataFrame to a blob
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df |
pd.DataFrame
|
a pandas DataFrame |
required |
container_name |
str
|
Name of the container |
required |
remote_file_name |
str
|
Name of the blob where the dataframe will be uploaded |
required |
overwrite |
Optional[bool]
|
set to True if needed |
False
|
**kwargs |
Optional[Dict]
|
add any kwarg that you would put in pd.to_* methods. |
{}
|