santosjorge / cufflinks

Productivity Tools for Plotly + Pandas
MIT License
3.02k stars 675 forks source link

why the different formats of dates in quant_figure? #274

Open ghost opened 2 years ago

ghost commented 2 years ago

hi, i first want to thank you and tell you how great cufflinks is. i am completely new to coding so please excuse this if it is my lack of knowledge. I've been trying to add trendline to a qf chart but the date key keeps throwing an error. i looked at the code and noticed the following: def _get_trendline(self,date0=None,date1=None,on=None,kind='trend',to_strfmt='%Y-%m-%d',from_strfmt='%d%b%y',**kwargs):

it seems to me that the to and from dates are formatted differently. it is the same in def _get_sliced(self,slice,df=None,to_strfmt='%Y-%m-%d',from_strfmt='%d%b%y')

are these correct?

ghost commented 2 years ago

it doesn't matter how i format the date, it throws an error. even if i paste the example from your slide presentation of and line overlay support, resistance, trendline. any help?