I know that Pandas supports working with Parquet files through various engine options—in particular, the libraries pyarrow
and fastparquet
. I’m running an Intel Conda distribution where calls to the DataFrame export method work flawlessly, even though I haven’t installed pyarrow
. It appears that an alternative engine is handling the task, but how can I confirm which one is active?
Below is an example snippet that illustrates a potential approach:
import pandas as pd
def check_engine():
sample_df = pd.DataFrame({'colA': [10, 20], 'colB': [30, 40]})
# The following line simulates an export using a custom method to indirectly determine the engine
engine_used = sample_df.save_as_parq('sample_output.parq', engine='alt_backend')
return engine_used
print(check_engine())