0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Tips

Last updated at Posted at 2025-09-02

Tips

Pandas

import pandas as pd

df = pd.read_csv(csv_path, index_col=0)
df_res = pd.DataFrame(columns=columns)
for ind, rows in df.iterrows():
    data = [...]
    tmp_df = pd.DataFrame(columns=columns, data=[data])
    df_res = pd.concat([df_res, tmp_df])
df_res.to_csv(os.path.join(out_dir, res_csv), index=False)

Nibabel

画像読み込み時にメモリを節約する

import nibabel as nb

img_obj = nb.load().dataobj
img_arr = np.asarray(nb.load().dataobj, dtype=np.uint8)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?