python - How to stop program from crashing - "The version of Tcl/Tk (8.5.9) in use may be unstable" -


beginner python learner here!

my idle keeps crashing after input code:

import pandas pd import pickle import quandl  quandl.apiconfig.api_key = "vsq61-wrwp_m_hwh5bv9"   fiftystates = pd.read_html('https://simple.wikipedia.org/wiki/list_of_u.s._states') main_df = pd.dataframe()  abbv in fiftystates[0][0][1:]:     query = "fmac/hpi_"+str(abbv)     df = quandl.get(query)     df.columns = [str(abbv)]      if main_df.empty:         main_df = df     else:         main_df = main_df.join(df) 

i think has line of code: df.columns = [str(abbv)], didn't crash until after inserted it.

everytime try save code, crashes. i've installed http://www.activestate.com/activetcl/downloads activetcl 8.6.4, everytime save code, still crashes.

here's info computer: i'm using python 2.7.13 (and prefer not install python 3, because find 2.7.13 works better me). have macos sierra 10.12.1.

furthermore, here's window looks after force quit idle (after crashes):

print screen of unstable version

please let me know can fix allow code run without crashing.

many thanks,

tina


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -