That tutorial says

Exploratory Data Analysis (EDA) is an approach to analyzing datasets to summarize their main characteristics. It is used to understand data, get some context regarding it, understand the variables and the relationships between them, and formulate hypotheses that could be useful when building predictive models.

enter image description here

Both "to doing" and "to do" are used in this sentence, "an approach to analyzing datasets to summarize their main characteristics".

By "to doing" and "to do", I mean "to analyzing" and "to summarize" respectively.

I know "doing (in this case, analyzing data sets)" is a gerund that could be the subject or object of sentences, but when should I use "to doing"? This kind of usage confuses me, so I searched these keywords.

This post discussed "to doing" but didn't give a doable guide when to use which. I guess that's why the asker didn't mark any of the answer as accepted.

Leave a general talking alone, consider this particular case, is that tutorial use "to doing" the right way? When should I use "to doing"?

Note: I am asking what situation should I use "to doing" rather than what is gerund.

  • "To doing" what? What words are you talking about?
    – Hot Licks
    Sep 28, 2019 at 1:35
  • When you write "to doing" and "to do" do you mean "to analyzing" and "to summarize"? Sep 28, 2019 at 1:59
  • @DJClayworth Yes, I've updated.
    – JJJohn
    Sep 28, 2019 at 2:03
  • To be clear, you are not asking about the literal text "to doing" versus "to do." I spent several minutes looking at the quotation in the question without finding that text, and being quite confused. (I edited the title of your question to make it more obvious to anyone else.) In short, what you're really asking is when to use the infinitive and when to use the present participle. (It's not a gerund in this case; to summarize is not being used as a noun.) Sep 29, 2019 at 20:27
  • @JasonBassford the quotation is right at the first paragraph of the link, I uploaded the screenshot just now.
    – JJJohn
    Sep 29, 2019 at 21:53