We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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'
The text was updated successfully, but these errors were encountered:
@shivanesh31 Maybe the below change can help you on this!
df_vaex['CARRIER_NAME'] = df_vaex['CARRIER_NAME'].astype('category')
Sorry, something went wrong.
No branches or pull requests
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'
The text was updated successfully, but these errors were encountered: