Skip to content

Commit bfcef95

Browse files
committed
BUG: fix bug that all TIMESTAMP fileds become 00 secconds.
1 parent 369959a commit bfcef95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas_gbq/_load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def encode_chunk(dataframe):
1515
csv_buffer = six.StringIO()
1616
dataframe.to_csv(
1717
csv_buffer, index=False, header=False, encoding='utf-8',
18-
date_format='%Y-%m-%d %H:%M')
18+
date_format='%Y-%m-%d %H:%M:%S.%f')
1919

2020
# Convert to a BytesIO buffer so that unicode text is properly handled.
2121
# See: https://github.com/pydata/pandas-gbq/issues/106

0 commit comments

Comments
 (0)