Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

No completions for df.reset_index() #806

Closed
Anapo14 opened this issue Mar 21, 2019 · 5 comments
Closed

No completions for df.reset_index() #806

Anapo14 opened this issue Mar 21, 2019 · 5 comments

Comments

@Anapo14
Copy link
Contributor

Anapo14 commented Mar 21, 2019

VSCode Version: 1.32.3
Extension Version: 2019.2.5558
OS: Windows 10
Python 3.7.2
LS Version: 0.2.28.0
Using Conda virtual environment

Was working through this quick, easy tutorial here. Was expecting df.reset_ to at the very least yield df.reset_index(), a common operation when using Pandas. However, I got the following display:

image

@MikhailArkhipov
Copy link

Please provide complete code with imports.

@Anapo14
Copy link
Contributor Author

Anapo14 commented Mar 22, 2019

Apologies, it is here:

import pandas as pd 
import datetime 
import pandas_datareader.data as web 

start = datetime.datetime(2010, 1,1)
end = datetime.datetime.now()

df = web.DataReader("MSFT", "yahoo", start, end)

df.reset_index(inplace = True )
df.set_index("Date", inplace = True)

import matplotlib.pyplot as plt
from matplotlib import style

style.use('fivethirtyeight')


df['High'].plot()

plt.legend()
plt.show()

@MikhailArkhipov
Copy link

image

image

Did analysis actually finished? Duplication probably should be addressed by #620

@Anapo14
Copy link
Contributor Author

Anapo14 commented Mar 25, 2019

Yes. I reproduced the same process this morning and i only get:

image

(I'm using the same virtual environment as in #821.)

@Anapo14
Copy link
Contributor Author

Anapo14 commented Mar 25, 2019

Figured out my issue here as well. Was accidentally using an environment in which the pandas_datareader.data module wasn't detected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants