Created
June 22, 2017 09:00
-
-
Save piyo7/ed87e829b2c2f816d95645b1640a2ab0 to your computer and use it in GitHub Desktop.
Python Pandasはバッチ処理に向いてない ref: http://qiita.com/piyo7/items/2d4444d3e8e7d385c809
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> s = pd.Series([0, 1, 2]) | |
>>> s[2] | |
2 | |
>>> s[1] = np.nan | |
>>> s[2] | |
2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def do_something(df): | |
foo = df[['bar', 'baz']] # Is foo a view? A copy? Nobody knows! | |
# ... many lines here ... | |
foo['quux'] = value # We don't know whether this will modify df or not! | |
return foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** glibc detected *** /usr/local/anaconda/bin/python: free(): invalid pointer: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fatal Python error: GC object already tracked |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment