We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from the timeseries realease example: http://pandas.pydata.org/pandas-docs/version/0.19.0/whatsnew.html#merge-asof-for-asof-style-time-series-joining making ticker as category:
trades.ticker = trades.ticker.astype('category') quotes.ticker = quotes.ticker.astype('category') merge = pd.merge_asof(trades, quotes, on='time', by='ticker')
merge.dtypes Out[31]: time datetime64[ns] ticker category price float64 quantity int64 bid float64 ask float64
geting : time datetime64[ns] ticker object price float64 quantity int64 bid float64 ask float64
The text was updated successfully, but these errors were encountered:
Yes, this would be nice to support and is essentially a special case of #10409.
Sorry, something went wrong.
xref this to the duplicate issue.
No branches or pull requests
from the timeseries realease example: http://pandas.pydata.org/pandas-docs/version/0.19.0/whatsnew.html#merge-asof-for-asof-style-time-series-joining
making ticker as category:
Expected Output
merge.dtypes
Out[31]:
time datetime64[ns]
ticker category
price float64
quantity int64
bid float64
ask float64
geting :
time datetime64[ns]
ticker object
price float64
quantity int64
bid float64
ask float64
The text was updated successfully, but these errors were encountered: