Running Python 2.7 and Pandas.
Editor is Sublime Text.
Wrote a program to display two columns from a large csv file. The output seems correct, but truncates after 29 lines and then returns at line 2584504 through to the end. I don't know what is controlling this. Perhaps a setting, or a function of my editor? Any thoughts?
# read specific columns from a csv file using pandas
#
import csv
import pandas as pd
#
df = pd.read_csv('/home/bob/Python_data_sets/phila_crime_incidents_part1_part2.csv', usecols = ['location_block', 'text_general_code'])
print(df)
Editor is Sublime Text.
Wrote a program to display two columns from a large csv file. The output seems correct, but truncates after 29 lines and then returns at line 2584504 through to the end. I don't know what is controlling this. Perhaps a setting, or a function of my editor? Any thoughts?
# read specific columns from a csv file using pandas
#
import csv
import pandas as pd
#
df = pd.read_csv('/home/bob/Python_data_sets/phila_crime_incidents_part1_part2.csv', usecols = ['location_block', 'text_general_code'])
print(df)