import cufflinks as cf
import plotly.offline
import numpy as np
import pandas as pd
cf.go_offline()
cf.set_config_file(offline=False, world_readable=True)
y_chr = np.resize(np.array(list('abc')),5)
y_num = np.array([22000,1,3,5000,3])
df = pd.DataFrame({'chr':y_chr,'num':y_num})
df.iplot()
The num column of the plotted dataframe is treated as categorical: y-axis represents numbers in the order they appeared in the num column.
Iβd like the βnumβ column to be plotted as numerical.
How can it be done?
Thank you!