简体   繁体   中英

Put the data in a data structure (list, dict, etc.) In Python

I don't even know where to start.

https://corgis-edu.github.io/corgis/datasets/python/electricity/electricity.py https://corgis-edu.github.io/corgis/datasets/python/electricity/electricity.data

import electricity
utility = electricity.get_utility()

You should considere to explain your problem before ask a question. In anycase, I think you want to pass the information in electricity.data into a variable in Python, in order to do that you should use Pandas

pip install pandas 

Pandas Documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM