Skip to content
Snippets Groups Projects
Commit f32ed386 authored by Andre Grosset's avatar Andre Grosset
Browse files

some python updates

parent 00ee2492
No related branches found
No related tags found
No related merge requests found
import sys import sys
import argparse import argparse
import matplotlib #import matplotlib
import numpy as np import numpy as np
import pandas as pd import pandas as pd
import dask.dataframe as dd #import dask.dataframe as dd
def create_dataframe(file_name, var_names, ranks=[]): def create_dataframe(file_name, var_names, ranks=[]):
...@@ -50,4 +50,4 @@ halo_df = create_dataframe(halo_file_name, halo_selected_scalars) ...@@ -50,4 +50,4 @@ halo_df = create_dataframe(halo_file_name, halo_selected_scalars)
filtered_halo_df = halo_df[(halo_df['fof_halo_count'] > int(value))] filtered_halo_df = halo_df[(halo_df['fof_halo_count'] > int(value))]
print(filtered_halo_df) print(filtered_halo_df)
# python cookbook/largesthalo.py /home/pascal/projects/genericio/python /bigData/b0168/m001-499.fofproperties 500000 # python cookbook/largesthalo.py /home/pascal/projects/genericio/python /bigData/b0168/m001-499.fofproperties 500000
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment