Skip to content

Commit ac6bbaf

Browse files
committed
Fixed build_table_schema to return the correct pandas version
1 parent 9dc6de3 commit ac6bbaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/json/_table_schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
is_timedelta64_dtype,
2020
)
2121

22+
import pandas
2223
from pandas import DataFrame
2324
from pandas.api.types import CategoricalDtype
2425
import pandas.core.common as com
@@ -264,7 +265,7 @@ def build_table_schema(data, index=True, primary_key=None, version=True):
264265
schema["primaryKey"] = primary_key
265266

266267
if version:
267-
schema["pandas_version"] = "0.20.0"
268+
schema["pandas_version"] = pandas.__version__
268269
return schema
269270

270271

0 commit comments

Comments
 (0)