A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/7935 below:

[pandas/io/stata.py] Importing option for importing specified columns from stata .dta files · Issue #7935 · pandas-dev/pandas · GitHub

It would be great if a columns option could be added to the Stata Reader. Some dta files can be large and I would like to import a few specified columns. Current I am importing the entire file and returning a selection such as:

data = pd.read_stata(fn)[['year', 'exports']]

I would propose pd.read_stata(fn, columns=['year', 'exports'])


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4