Go to the inbox and click the gear-icon button in the upper-right corner and click Settings. Next, click Accounts and Import at the top of the page and then click Import mail and contacts. Here, you can enter your Yahoo email address and import your Yahoo data to Gmail.