edmundsj / xsugar

Framework for experimental design, data analysis, plotting in python
MIT License
0 stars 0 forks source link

Switch from using dictionaries to using pandas dataframes #34

Open edmundsj opened 3 years ago

edmundsj commented 3 years ago

As much as I love python dictionaries, there's good reasons not to use them as the core data-handling framework:

  1. They do not preserve ordering - this is pretty annoying
  2. Extracting data is a pain - you need the specific data key, not just the relevant set of conditions
  3. Worknig directly with dictionaries is kinda annoying
  4. Converting back and forth between DataFrames and dicts is this package's main speed bottleneck. Changing this would help alleviate that issue.
edmundsj commented 3 years ago

I believe this is supported by the "multi-index" in pandas, which seems a little complex - something I need to learn more about in order to take full advantage.