How to Save a DataFrame
Before we start: This Python tutorial is a part of our series of Python Package tutorials. The steps explained ahead are related to the sample project introduced here.
Saving a DataFrame
In our DataFrame examples, we’ve been using a Grades.CSV file that contains information about students and their grades for each lecture they’ve taken:
When we are done dealing with our data we might want to save it as a CSV file so that it can be shared with a coworker or stored as a record.
This can be simple done by:
You know how to save your DataFrame using Python’s Pandas library, but there’s lots of other things you can do with Pandas:
Get The Machine Learning Packages You Need – No Configuration Required
We’ve built the hard-to-build packages so you don’t have to waste time on configuration…get started right away!
Some Popular ML Packages You Get Pre-compiled – With ActivePython
- TensorFlow (deep learning with neural networks)*
- scikit-learn (machine learning algorithms)
- keras (high-level neural networks API)
- pandas (data analysis)
- NumPy (multidimensional arrays)
- SciPy (algorithms to use with numpy)
- HDF5 (store & manipulate data)
- matplotlib (data visualization)
- cryptography (recipes and primitives)
- pyOpenSSL (python interface to OpenSSL)
- passlib and bcrypt (password hashing)
- requests-oauthlib (Oauth support)
- ecdsa (cryptographic signature)
- PyCryptodome (PyCrypto replacement)
- service_identity (prevents pyOpenSSL man-in-the-middle attacks)
With deep roots in open source, and as a founding member of the Python Foundation, ActiveState actively contributes to the Python community. We offer the convenience, security and support that your enterprise needs while being compatible with the open source distribution of Python.
Download ActiveState Python to get started or contact us to learn more about using ActiveState Python in your organization.
You can also start by trying our mini ML runtime for Linux or Windows that includes most of the popular packages for Machine Learning and Data Science, pre-compiled and ready to for use in projects ranging from recommendation engines to dashboards.