Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Issue 203]: fix the datetime column format during the import via python sdk #217

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/python/feast/sdk/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ def dump(self, path):
def _convert_timestamp(df, timestamp_col):
"""Converts the given df's timestamp column to ISO8601 format
"""
df[timestamp_col] = pd.to_datetime(df[timestamp_col]).dt \
.strftime("%Y-%m-%dT%H:%M:%S%zZ")
df[timestamp_col] = pd.to_datetime(df[timestamp_col]) \
.apply(lambda dt: dt.isoformat())


def _properties(source, size, require_staging, remote):
Expand Down