Computational Biology log
Programming
Python
general
Statistics
Pandas
Machine Learning
NetworkX
igraph
Visualization
Bash & HPC
Latex
Git
Julia
R
Other info
Data science notes
Work
Readings
Research life
Projects
About me / CV
Search
the best through menu creator from swimbi.com. All Rights Reserved
News
New paper!
Thursday, December 21, 2017
Pandas: Save DataFrame with nan
Wondering why NaN is not saved by pd.to_csv?? Without the keyword na_rep, NaN (np.nan) will not be saved.
df
.
to_csv
(
'netAnalysis_sd5n_new.txt'
,
sep
=
' '
,
na_rep
=
'nan'
)
Newer Post
Older Post
Home