rnalysis.filtering.CountFilter.head

CountFilter.head(n: PositiveInt = 5) DataFrame

Return the first n rows of the Filter object. See pandas.DataFrame.head documentation.

Parameters:

n (positive int, default 5) – Number of rows to show.

Returns:

returns the first n rows of the Filter object.

Examples:
>>> from rnalysis import filtering
>>> d = filtering.Filter("tests/test_files/test_deseq.csv")
>>> d.head()
                   baseMean  log2FoldChange  ...         pvalue           padj
WBGene00000002  6820.755327        7.567762  ...   0.000000e+00   0.000000e+00
WBGene00000003  3049.625670        9.138071  ...  4.660000e-302  4.280000e-298
WBGene00000004  1432.911791        8.111737  ...  6.400000e-237  3.920000e-233
WBGene00000005  4028.154186        6.534112  ...  1.700000e-228  7.800000e-225
WBGene00000006  1230.585240        7.157428  ...  2.070000e-216  7.590000e-213

[5 rows x 6 columns]
>>> d.head(3) # return only the first 3 rows
                   baseMean  log2FoldChange  ...         pvalue           padj
WBGene00000002  6820.755327        7.567762  ...   0.000000e+00   0.000000e+00
WBGene00000003  3049.625670        9.138071  ...  4.660000e-302  4.280000e-298
WBGene00000004  1432.911791        8.111737  ...  6.400000e-237  3.920000e-233

[3 rows x 6 columns]