Presentation 5
Presentation 5
Belaid
Export et
Import des
Données
avec
Python et R
1
Exporting and importing data
with python and R
Etudiant :
CHAIB Mohamed Belaid
Introduction
When working with data analysis or
probability models, you may need to
export the results to a file for future use or
sharing with others.
Import/Export File Formats
EXPORT
IMPORT
• When the information is
complicated or covers
several sheets.
• When the data must be
2-Excel analyzed directly in
files (.xlsx)
Usage: Excel.
• Suitable for storing
tables of random
variables and probability
matrices.
Excel Files with python
EXPORT IMPORT
Excel Files in R
EXPORT
IMPORT
Usage:
• When data is not organized in a
table, such as nested data or
3 - Java relationships between random
Script variables..
Object • When data needs to be sent via
Notation APIs or stored on the web.
(JSON) files • Suitable for storing the results of
probabilistic simulations or Markov
models.
JSON Files with python
EXPORT IMPORT
JSON Files in R
EXPORT
IMPORT
Usage:
IMPORT
Usage:
5 - Pickle
Files (.pkl) When you need to store complex data such
as dictionaries or multidimensional matrices.