how to limit datetime in x axis
I've had a similar problem to putting in x limits to date time data. To combat this, I normally extract the subset of the data which fall in the limits you want to review in further detail.
To do this, you can do something like this:
df_subset = df[(df[&quot;Date&quot;] &lt; end_date) &amp; (df[&quot;Date&quot;] &gt; start_end)]

And then plot this subset.