You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the latest update, RR.read_rms() and RR.read_stores() return PyArrow tables rather than pandas dataframes. In the example script, this causes the error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Input In [7], in <cell line: 4>()
1 # %% Next, RMS Versions, which you can combine later with sales or products
2 # to get detailed UPC information separated by versions
3 RR.read_rms()
----> 4 print(RR.df_rms.head())
AttributeError: 'pyarrow.lib.Table' object has no attribute 'head'
And similarly:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Input In [9], in <cell line: 6>()
1 # note the filtering comes after the reading in the case of stores
2 # unlike for sales
3 RR.filter_stores(keep_channels = KEEP_CHANNELS, keep_states = KEEP_STATES)
----> 6 print(RR.df_stores.head())
AttributeError: 'pyarrow.lib.Table' object has no attribute 'head'
I believe the intent is to return dataframes, as with RR.read_extra() and RR.read_products(). Solved in the example by adding:
Upon further investigation, converting rms and stores to pandas seems to break RR.read_sales(). Perhaps the most prudent solution is to eliminate the lines calling the head() function in the example script! (Lines 67 and 79 in Example.py, maybe also line 83)
Following the latest update, RR.read_rms() and RR.read_stores() return PyArrow tables rather than pandas dataframes. In the example script, this causes the error:
And similarly:
I believe the intent is to return dataframes, as with RR.read_extra() and RR.read_products(). Solved in the example by adding:
The text was updated successfully, but these errors were encountered: