According to the docs, the pandas hist method to create a dataframe can take a parameter ax
to presumably pass some kind plotting parameters to the ax
object. What I want to know is how I pass these parameters. Here is some code:
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.normal(0,100,size=(100, 2)), columns=['col1', 'col2'])
pd.DataFrame.hist(df,column='col1', ax={ylim(-1000,1000), set_title('new title')})
The above code seeks to modify the y-axis limits and title using the ax
parameter, but I'm not sure of the syntax to use.