We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20bd962 commit 6775444Copy full SHA for 6775444
pins/drivers.py
@@ -76,6 +76,11 @@ def load_data(
76
77
return pd.read_csv(fs.open(path_to_file))
78
79
+ elif meta.type == "arrow":
80
+ import pandas as pd
81
+
82
+ return pd.read_feather(fs.open(path_to_file))
83
84
elif meta.type == "feather":
85
import pandas as pd
86
@@ -123,6 +128,14 @@ def save_data(
123
128
124
129
obj.to_csv(final_name, index=False)
125
130
131
+ elif type == "arrow":
132
+ # NOTE: R pins accepts the type arrow, and saves it as feather.
133
+ # we allow reading this type, but raise an error for writing.
134
+ raise NotImplementedError(
135
+ "Writing pin type 'arrow' is unsupported. "
136
+ "Use 'feather' or 'parquet' instead."
137
+ )
138
126
139
elif type == "feather":
127
140
_assert_is_pandas_df(obj)
141
0 commit comments