Quantcast
Channel: Pandas: KeyError when using column names which are included in an index - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by gaw89 for Pandas: KeyError when using column names which are...

Yes, you've created a multi-index DataFrame. From looking at your output (without having access to your data), you should be able to access the days by typing:df['variable']['day']

View Article


Pandas: KeyError when using column names which are included in an index

I have text files that I'm parsing which contain fixed width fields with lines that look like this:USC00142401201703TMAX 211 H 133 H 161 H 194 H 206 H 161 H 244 H 178 H-9999 250 H 78 H 44 H 67 H 50 H...

View Article

Browsing all 2 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>