vaex icon indicating copy to clipboard operation
vaex copied to clipboard

How do i overcome this issue?

Open shivanesh31 opened this issue 6 months ago • 1 comments

df_vaex['CARRIER_NAME'] = df_vaex.astype('category') df.plot1d(df['CARRIER_NAME'], shape=128, limits='99.7%') plt.title('Number of Flights by Carrier') plt.xlabel('Carrier Name') plt.ylabel('Number of Flights') plt.xticks(rotation=45, ha='right') plt.show()

AttributeError: 'DataFrameLocal' object has no attribute 'astype'

shivanesh31 avatar Dec 20 '23 09:12 shivanesh31

@shivanesh31 Maybe the below change can help you on this!

df_vaex['CARRIER_NAME'] = df_vaex['CARRIER_NAME'].astype('category')

ashsharma96 avatar Dec 26 '23 04:12 ashsharma96