0% found this document useful (0 votes)
2 views

Presentation 5

The document discusses the export and import of data using Python and R, highlighting various file formats such as CSV, Excel, JSON, text, Pickle, and HDF5. Each format is described in terms of its usage, advantages, and suitability for different types of data management and analysis. The document serves as a guide for selecting appropriate file types based on data structure and requirements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Presentation 5

The document discusses the export and import of data using Python and R, highlighting various file formats such as CSV, Excel, JSON, text, Pickle, and HDF5. Each format is described in terms of its usage, advantages, and suitability for different types of data management and analysis. The document serves as a guide for selecting appropriate file types based on data structure and requirements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

CHAIB Mohamed

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

Note that usage files vary according to


the size, structure, and accessibility of the
data. Therefore, it is necessary to identify
the main file types used in Python and R.
First :Python
and R files
Application:
1-
• When it comes to data storage and
CSV management, it's common practice
(Comma- to organize data in tables with
Separated rows and columns.
• When managing data, it is often
Values ) files necessary to keep files lightweight
and readable.
• This type of representation is
particularly well-suited for data
generated by probability and
descriptive statistics, such as
frequency tables and conditional
probabilities.
CSV Files with python
EXPORT IMPORT
CSV Files in R

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:

•When data is not organized in a table, such


4-Text (.txt) as nested data or relationships between
random variables.
files
•When data needs to be sent via APIs or
stored on the web.
• For storing the results of probabilistic
simulations or Markov models.
Txt Files with python
EXPORT IMPORT
Txt Files in R
EXPORT

IMPORT
Usage:

To store statistical or machine-learning


models.

5 - Pickle
Files (.pkl) When you need to store complex data such
as dictionaries or multidimensional matrices.

Suitable for storing results of probabilistic


analysis or Bayesian models.
Pickle Files with python
EXPORT IMPORT
6- HDF5 Usage :
(Hierarchic
al Data
• Suitable for processing Markov chain data
Format) or analyzing data from large statistical
files experiments.

• When working with large data that cannot


be fully loaded.
HDF5 Files in Python

You might also like