Skip to content

Commit

Permalink
implemented append method in the client side
Browse files Browse the repository at this point in the history
  • Loading branch information
Seher Karakuzu authored and danielballan committed Mar 14, 2024
1 parent bf807f9 commit 331acf6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tiled/client/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,15 @@ def write_partition(self, dataframe, partition):
)
)

def append_partition(self, dataframe, partition):
handle_error(
self.context.http_client.patch(
self.item["links"]["partition"].format(index=partition),
content=bytes(serialize_arrow(dataframe, {})),
headers={"Content-Type": APACHE_ARROW_FILE_MIME_TYPE},
)
)

def export(self, filepath, columns=None, *, format=None):
"""
Download data in some format and write to a file.
Expand Down

0 comments on commit 331acf6

Please sign in to comment.