Python code for creating summaries of input CSV file by translating a lua code to python.
Lua is a lightweight, high-level, multi-paradigm programming language designed primarily for embedded use in applications. The features of the lua programming language include:
- simple
- efficient
- portable
- Suitable for use as an embedded language within a host application
The goal is to write some code to read a CSV file and generate summaries of columns (medians and standard deviation for numerics; mode and entropy for symbolic columns).
Ensure python is installed. You can check the version of python in the system using:
python --version
Check if pip is installed. This can be done with the command:
pip --version
The csv file can be accessed in the Data folder
Clone this repository using
git clone https://github.com/akshat22/SE_HW2345.git
You can download all the dependencies required to run the file using:
pip install -r requirements.txt
The implementations for only Sym
and Num
classes are done so far in this repo.
The implementation of different util functions are also done like - coerce
, per
, probability
The scripts for test cases sym
, num
are also prepared here.
The Lua classes and corresponding python implementation scripts are listed below:
Class | Corresponding python script |
---|---|
Num | Num |
Sym | Sym |
This project is licensed under MIT license.