Skip to content

Commit

Permalink
Do not preserve index.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Dec 13, 2024
1 parent 96d8e1b commit b506988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiled/serialization/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


@serialization_registry.register(StructureFamily.table, APACHE_ARROW_FILE_MIME_TYPE)
def serialize_arrow(df, metadata, preserve_index=True):
def serialize_arrow(df, metadata, preserve_index=False):
import pyarrow

if isinstance(df, dict):
Expand All @@ -30,7 +30,7 @@ def deserialize_arrow(buffer):
# There seems to be no official Parquet MIME type.
# https://issues.apache.org/jira/browse/PARQUET-1889
@serialization_registry.register(StructureFamily.table, "application/x-parquet")
def serialize_parquet(df, metadata, preserve_index=True):
def serialize_parquet(df, metadata, preserve_index=False):
import pyarrow.parquet

table = pyarrow.Table.from_pandas(df, preserve_index=preserve_index)
Expand Down

0 comments on commit b506988

Please sign in to comment.