<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 <H1>How to use DataLoader</H1>
<P>This is an example on how to use a DataLoader object</P>
Step1:  <H2>Object creation</H2>
The object loads the connectivity matrices in .syn format and reports the number of files loaded at construction.
Step2:  <H2>Object atttributes</H2>
The object contains a list with all experiments loaded
Step3:  Details of every experiments are given in a list
Step4:  and details fo the recording configurations are provided
Step5:  or the type the number of configurations when two PV-positive cells were recorded
Step6:  <H2> Descriptive statistics </H2>
The stats attribute will return basis statistics of the whole dataset
<ASSISTANT_TASK:>
Python Code:
from __future__ import division
from terminaltables import AsciiTable
import inet
inet.__version__
from inet import DataLoader
Explanation: <H1>How to use DataLoader</H1>
<P>This is an example on how to use a DataLoader object</P>
End of explanation
mydataset = DataLoader('../../data/PV') # create an object with information of all connections
Explanation: <H2>Object creation</H2>
The object loads the connectivity matrices in .syn format and reports the number of files loaded at construction.
End of explanation
len(mydataset.experiment)
mydataset.nIN, mydataset.nPC # number of PV cells and GC cells recorded
mydataset.configuration # number of recording configurations
print(mydataset.motif) # number of connections tested and found for every type
Explanation: <H2>Object atttributes</H2>
The object contains a list with all experiments loaded
End of explanation
mydataset.experiment[0] # example of the data from the first experiment
Explanation: Details of every experiments are given in a list
End of explanation
mydataset.experiment[12]['fname'] # mydataset.filename(12)
mydataset.filename(12)
mydataset.experiment[12]['matrix'] 
mydataset.matrix(12)
print(mydataset.experiment[12]['motif'])
mydataset.motifs(12)
Explanation: and details fo the recording configurations are provided
End of explanation
mydataset.IN[2]
Explanation: or the type the number of configurations when two PV-positive cells were recorded
End of explanation
y = mydataset.stats()
print AsciiTable(y).table 
mymotifs = mydataset.motif
info = [
        ['Connection type', 'Value'],
        ['PV-PV chemical synapses', mymotifs.ii_chem_found],
        ['PV-PV electrical synapses', mymotifs.ii_elec_found],
        [' ',' '],
        ['PV-PV bidirectional chemical', mymotifs.ii_c2_found],
        ['PV-PV divergent chemical', mymotifs.ii_div_found],
        ['PV-PV convergent chemical', mymotifs.ii_con_found],
        ['PV-PV linear chemical', mymotifs.ii_lin_found],
        [''],
        ['PV-PV one chemical with electrical', mymotifs.ii_c1e_found],
        ['PV-PV bidirectional chemical with electrical', mymotifs.ii_c2e_found],
        [' ',' '],
        ['P(PV-PV) chemical synapse', mymotifs.ii_chem_found/mymotifs.ii_chem_tested],
        ['P(PV-PV) electrical synapse', mymotifs.ii_elec_found/mymotifs.ii_elec_tested],
        [''],
        ['P(PV-PV) bidirectional chemical synapse', mymotifs.ii_c2_found/mymotifs.ii_c2_tested],
        ['P(div) divergent chemical motifs', mymotifs.ii_div_found/mymotifs.ii_div_tested],
        ['P(div) convergent chemical motifs', mymotifs.ii_con_found/mymotifs.ii_con_tested],  
        ['P(chain) linear chain motifs', mymotifs.ii_lin_found/mymotifs.ii_lin_tested],
        [' ',' '],
        ['P(PV-PV) one chemical with electrical', mymotifs.ii_c1e_found/mymotifs.ii_c1e_tested],
        ['P(PV-PV) bidirectional chemical with electrical', mymotifs.ii_c2e_found/mymotifs.ii_c2e_tested],
        [' ',' '],
        ['PV-GC chemical synapses', mymotifs.ie_found],
        ['GC-PC chemical synapses', mymotifs.ei_found],
        [' ',' '],
        ['P(PV-GC) chemical synapse',mymotifs.ie_found/mymotifs.ie_tested],
        ['P(GC-PC) chemical synapse', mymotifs.ei_found/mymotifs.ei_tested],
        [' ',' '],
        ]
table = AsciiTable(info)
print (table.table)
Explanation: <H2> Descriptive statistics </H2>
The stats attribute will return basis statistics of the whole dataset
End of explanation
<END_TASK>